BinaryDataView

Random-access view over a byte buffer with explicit endian-aware getters. Mirrors the JS DataView API surface used by earth.worldwind.formats.geotiff.GeoTiffReader / earth.worldwind.formats.geotiff.TiffIFDEntry / earth.worldwind.formats.geotiff.GeoTiffUtil so the same parsing code compiles on every KMP target. Indices and read sizes are validated up front; reads past the end throw IndexOutOfBoundsException.

Constructors

Link copied to clipboard
constructor(bytes: ByteArray)

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Underlying byte array (zero-copy reference). Callers receiving a writer-built buffer can use this to flush into an HTTP response / file / cache without copying.

Link copied to clipboard
fun getFloat32(offset: Int, littleEndian: Boolean): Float
Link copied to clipboard
fun getFloat64(offset: Int, littleEndian: Boolean): Double
Link copied to clipboard
fun getInt16(offset: Int, littleEndian: Boolean): Short
Link copied to clipboard
fun getInt32(offset: Int, littleEndian: Boolean): Int
Link copied to clipboard
fun getInt64(offset: Int, littleEndian: Boolean): Long
Link copied to clipboard
fun getInt8(offset: Int): Byte
Link copied to clipboard
fun getUint16(offset: Int, littleEndian: Boolean): Int
Link copied to clipboard
fun getUint32(offset: Int, littleEndian: Boolean): Long
Link copied to clipboard
fun getUint8(offset: Int): Int
Link copied to clipboard
fun setFloat32(offset: Int, value: Float, littleEndian: Boolean)
Link copied to clipboard
fun setInt8(offset: Int, value: Byte)
Link copied to clipboard
fun setUint16(offset: Int, value: Int, littleEndian: Boolean)
Link copied to clipboard
fun setUint32(offset: Int, value: Int, littleEndian: Boolean)