Feedback

  • Contents
 

BufferGetInteger

This Buffer tool retrieves an integer from the binary buffer.

Inputs

Buffer Handle

The buffer handle that contains the integer.

Offset

The integer value for the offset in the buffer. Offsets are in bytes and 0 based.

Encoding

How we encode the integer. The endianness is the byte ordering in memory used to represent some kind of data.

  • Little Endian

  • Big Endian

Bits

The number of bits to store the integer. If the integer is greater than the storage, it is simply truncated. E.g. 0x1234 stored on 8 bits will give 0x34.

The values are 8, 16, 32.

Outputs

Integer

The integer value from the buffer.

Updated Offset

This integer contains the original offset, updated by the size of what was read. Offsets are in bytes and 0 based.

Exit Paths

Success

This step takes this path on success.

Invalid Handle

The tool takes this path, if the buffer handles was invalid.

Invalid Offset

This step takes this path if the offset did not point inside the buffer.