-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRomBuffer.Companion
-
Constructor Summary
Constructors Constructor Description RomBuffer()
-
Method Summary
Modifier and Type Method Description abstract RomBufferduplicate(Long position, Long limit)Returns a new buffer sharing the data with its parent. final UnitcheckHeader(Integer leMagic)abstract IntArrayreadInts(Integer size)abstract FloatArrayreadFloats(Integer size)abstract ByteArrayreadBytes(Integer size)abstract BytereadByte()final IntegerreadUnsignedByte()abstract ShortreadShort()final IntegerreadUnsignedShort()abstract IntegerreadInt()abstract LongreadLong()abstract FloatreadFloat()abstract DoublereadDouble()abstract StringreadCString()final BooleanhasRemaining()abstract LonggetPosition()abstract ByteOrdergetOrder()abstract LonggetMaxLength()LonggetLimit()abstract UnitsetPosition(Long position)UnitsetLimit(Long limit)-
-
Method Detail
-
duplicate
abstract RomBuffer duplicate(Long position, Long limit)
Returns a new buffer sharing the data with its parent.
-
checkHeader
final Unit checkHeader(Integer leMagic)
-
readFloats
abstract FloatArray readFloats(Integer size)
-
readUnsignedByte
final Integer readUnsignedByte()
-
readUnsignedShort
final Integer readUnsignedShort()
-
readDouble
abstract Double readDouble()
-
readCString
abstract String readCString()
-
hasRemaining
final Boolean hasRemaining()
-
getPosition
abstract Long getPosition()
-
getMaxLength
abstract Long getMaxLength()
-
setPosition
abstract Unit setPosition(Long position)
-
-
-
-