Browse Source

Added helper property to get the field offset in bytes.

pull/1/head
triton 12 years ago
parent
commit
18c553b9c3
  1. 5
      src/Bridge/Field.cs

5
src/Bridge/Field.cs

@ -12,6 +12,11 @@ namespace Cxxi
public uint Offset { get; set; } public uint Offset { get; set; }
public Class Class { get; set; } public Class Class { get; set; }
public uint OffsetInBytes
{
get { return Offset / (sizeof (byte) * 8); }
}
public Field() public Field()
{ {
Offset = 0; Offset = 0;

Loading…
Cancel
Save