org.xerial.mlpress
Class MemoryBlock
java.lang.Object
org.xerial.mlpress.MemoryBlock
public class MemoryBlock
- extends Object
The byte size of MemoryBlock dinamically expands from
256 to 512, 1024, 2048, 4096, 8192, 16384, 32768 and 65536.
- Author:
- leo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryBlock
public MemoryBlock(int id,
MemoryBlockManager manager)
size
public int size()
getID
public int getID()
write
public void write(int byteValue)
write
public void write(byte[] data,
int offset,
int len)
writeTo
public void writeTo(OutputStream out)
throws IOException
- Throws:
IOException
resize
public void resize()

This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.