Class ByteCursor

java.lang.Object
ch.so.agi.filegdb.io.ByteCursor

public final class ByteCursor extends Object
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 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

      public String utf16(int characterCount)
      Reads a UTF-16LE string with the given number of UTF-16 code units.
    • utf8

      public String utf8(int byteCount)