Package ch.so.agi.filegdb.io
Class ByteCursor
java.lang.Object
ch.so.agi.filegdb.io.ByteCursor
Little endian cursor over a byte array.
Provides the primitives used by the file geodatabase binary format: fixed width integers, IEEE doubles and the LEB128 style varints.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]bytes(int count) floatf32()doublef64()shorti16()inti32()longi64()intposition()intvoidskip(int count) intu16()longu32()intu8()utf16(int characterCount) Reads a UTF-16LE string with the given number of UTF-16 code units.utf8(int byteCount) longSigned delta varint: low six bits magnitude, bit six sign, continuation bit seven.longlong
-
Constructor Details
-
ByteCursor
public ByteCursor(byte[] data) -
ByteCursor
public ByteCursor(byte[] data, int offset, int length)
-
-
Method Details
-
position
public int position() -
remaining
public int remaining() -
skip
public void skip(int count) -
u8
public int u8() -
u16
public int u16() -
i16
public short i16() -
u32
public long u32() -
i32
public int i32() -
i64
public long i64() -
f32
public float f32() -
f64
public double f64() -
bytes
public byte[] bytes(int count) -
varUInt32
public long varUInt32() -
varUInt64
public long varUInt64() -
varIntDelta
public long varIntDelta()Signed delta varint: low six bits magnitude, bit six sign, continuation bit seven. -
utf16
Reads a UTF-16LE string with the given number of UTF-16 code units. -
utf8
-