Class SqlJetByteArrayBuffer

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void allocate​(int size)
      Allocate chunk of memory.
      byte[] asArray()  
      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 free()
      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.
      ISqlJetMemoryPointer 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 getSize()
      Size of allocated memory chunk.
      boolean isAllocated()
      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