-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable
public class MMBRomBuffer extends RomBuffer
A read-only mapped buffer which supports files 2GB .
-
-
Constructor Summary
Constructors Constructor Description MMBRomBuffer(MMapBuffer mapped, Long position, Long limit)
-
Method Summary
Modifier and Type Method Description MMBRomBufferduplicate(Long position, Long limit)Returns a new buffer sharing the data with its parent. Unitclose()ByteArrayreadBytes(Integer size)BytereadByte()ShortreadShort()IntArrayreadInts(Integer size)IntegerreadInt()LongreadLong()FloatArrayreadFloats(Integer size)FloatreadFloat()DoublereadDouble()StringreadCString()LonggetMaxLength()ByteOrdergetOrder()LonggetPosition()LonggetLimit()UnitsetPosition(Long position)UnitsetLimit(Long limit)-
Methods inherited from class org.jetbrains.bio.MMBRomBuffer
checkHeader, hasRemaining, readUnsignedByte, readUnsignedShort -
Methods inherited from class java.lang.AutoCloseable
equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
duplicate
MMBRomBuffer duplicate(Long position, Long limit)
Returns a new buffer sharing the data with its parent.
-
readFloats
FloatArray readFloats(Integer size)
-
readDouble
Double readDouble()
-
readCString
String readCString()
-
getMaxLength
Long getMaxLength()
-
getPosition
Long getPosition()
-
setPosition
Unit setPosition(Long position)
-
-
-
-