Class SqlJetByteArrayBuffer

java.lang.Object
org.tmatesoft.sqljet.core.internal.memory.SqlJetByteArrayBuffer
All Implemented Interfaces:
ISqlJetMemoryBuffer

public class SqlJetByteArrayBuffer extends java.lang.Object implements ISqlJetMemoryBuffer
Author:
TMate Software Ltd., Sergey Scherbina (sergey.scherbina@gmail.com)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    allocate(int size)
    Allocate chunk of memory.
    byte[]
     
    int
    compareTo(int pointer, ISqlJetMemoryBuffer buffer, int bufferPointer)
     
    void
    copyFrom(int dstPos, ISqlJetMemoryBuffer src, int srcPos, int count)
     
    void
    fill(int from, int count, byte value)
     
    void
    Fries chunk of memory.
    byte
    getByte(int pointer)
    Read byte at pointer.
    void
    getBytes(int pointer, byte[] bytes, int to, int count)
     
    int
    getByteUnsigned(int pointer)
    Read unsigned byte at pointer.
    int
    getInt(int pointer)
    Read int at pointer.
    long
    getIntUnsigned(int pointer)
    Read unsigned int at pointer.
    long
    getLong(int pointer)
    Read long at pointer.
    getPointer(int pointer)
    Returns pointer in memory chunk at passed offset.
    short
    getShort(int pointer)
    Read short at pointer.
    int
    getShortUnsigned(int pointer)
    Read unsigned short at pointer.
    int
    Size of allocated memory chunk.
    boolean
    Returns true if memory is allocated.
    void
    putByte(int pointer, byte value)
    Write byte at pointer.
    void
    putBytes(int pointer, byte[] bytes, int from, int count)
     
    void
    putByteUnsigned(int pointer, int value)
    Write unsigned byte at pointer.
    void
    putInt(int pointer, int value)
    Write int at pointer.
    void
    putIntUnsigned(int pointer, long value)
    Write unsigned int at pointer.
    void
    putLong(int pointer, long value)
    Write long at pointer.
    void
    putShort(int pointer, short value)
    Write short at pointer.
    void
    putShortUnsigned(int pointer, int value)
    Write unsigned short at pointer.
    int
    readFromFile(int pointer, java.io.RandomAccessFile file, long position, int count)
    Read from file into memory chunk at pointer.
    int
    writeToFile(int pointer, java.io.RandomAccessFile file, long position, int count)
    Write from memory chunk at pointer to file.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait