iscVaxInteger method

int iscVaxInteger(
  1. Pointer<Uint8> buffer,
  2. int byteCnt, [
  3. int offset = 0
])

Converts a fragment of a native buffer to a platform-specific integer.

Integer values returned by Firebird are encoded as so-called "VAX" integers, which use little endian representation that is platform independent. iscVaxInteger takes a byte sequence of length byteCnt from the buffer, starting at offset, and converts it from "VAX" representation to a native integer (valid for the current platform).

Implementation

int iscVaxInteger(Pointer<Uint8> buffer, int byteCnt, [int offset = 0]) {
  return _iscVaxInteger(
      Pointer<Uint8>.fromAddress(buffer.address + offset), byteCnt);
}