Companion

object Companion

Properties

Link copied to clipboard
const val HEADER_SIZE: Int = 28

Functions

Link copied to clipboard
fun parse(bytes: ByteArray, offset: Int = 0, extraHeaderBytes: Int = 0): Ogc3dHeader

Parse the header. extraHeaderBytes accounts for a format-specific header extension after the fixed 28 bytes (i3dm's gltfFormat uint32 → pass 4); the tables and payload are shifted by it. Throws IllegalArgumentException when the payload is shorter than the header or the magic / version / sub-lengths fail spec validation.