| | |
| | | public Int32 ReadInt32() |
| | | { |
| | | return BitConverter.ToInt32(bytes, offset); |
| | | } |
| | | |
| | | public Int64 ReadInt64() |
| | | { |
| | | return BitConverter.ToInt64(bytes, offset); |
| | | } |
| | | |
| | | }
|
| | |
|
| | | public Int64 ReadInt64()
|
| | | {
|
| | | return BitConverter.ToInt64(bytes, offset);
|
| | | }
|
| | |
|
| | | public BytesAndOffset Add(int add) |
| | | { |
| | | return new BytesAndOffset() {bytes = bytes, offset = offset + add, pointerSize = pointerSize}; |
| | | } |
| | | |
| | | public void WritePointer(UInt64 value) |
| | | { |
| | | for (int i = 0; i < pointerSize; i++) |
| | | { |
| | | bytes[i + offset] = (byte)value; |
| | | value >>= 8; |
| | | } |
| | | {
|
| | | for (int i = 0; i < pointerSize; i++)
|
| | | {
|
| | | bytes[i + offset] = (byte)value;
|
| | | value >>= 8;
|
| | | }
|
| | | } |
| | | |
| | | public BytesAndOffset NextPointer() |