Uses of Interface
org.apache.datasketches.memory.Buffer

  • Uses of Buffer in org.apache.datasketches.memory

    Modifier and Type
    Interface
    Description
    interface 
    Defines the writable API for relative positional access to a resource
    Methods in org.apache.datasketches.memory that return Buffer
    Modifier and Type
    Method
    Description
    default Buffer
    Memory.asBuffer()
    Returns a new Buffer view of this object.
    Memory.asBuffer(ByteOrder byteOrder)
    Returns a new Buffer view of this object, with the given byte order.
    default Buffer
    Buffer.duplicate()
    Returns a read-only duplicate view of this Buffer with the same byte order, but independent values of start, position and end.
    Buffer.duplicate(ByteOrder byteOrder)
    Returns a read-only duplicate view of this Buffer with the same but independent values of start, position and end, but with the specified byteOrder.
    default Buffer
    Buffer.region()
    A region is a read-only view of this object from position to end and with the same byte order.
    Buffer.region(long offsetBytes, long capacityBytes, ByteOrder byteOrder)
    A region is a read-only view of this object from offsetBytes and with a length of capacityBytes and with the given byte order.
    static Buffer
    Buffer.wrap(ByteBuffer byteBuffer)
    Provides a view of the given ByteBuffer for read-only operations.
    static Buffer
    Buffer.wrap(ByteBuffer byteBuffer, ByteOrder byteOrder)
    Provides a view of the given ByteBuffer for read-only operations.
    Methods in org.apache.datasketches.memory with parameters of type Buffer
    Modifier and Type
    Method
    Description
    int
    Buffer.compareTo(long thisOffsetBytes, long thisLengthBytes, Buffer that, long thatOffsetBytes, long thatLengthBytes)
    Compares the bytes of this Buffer to that Buffer.