org.egothor.util
Class MemoryBuffer

java.lang.Object
  extended by org.egothor.util.MemoryBuffer

public class MemoryBuffer
extends java.lang.Object

MemoryBuffer.java Created on 8. duben 2006, 18:31

Author:
galambos

Field Summary
 byte[] buffer
           
 
Constructor Summary
MemoryBuffer(int capacity)
           
 
Method Summary
 void clear()
           
 boolean eof()
           
 int getInt()
           
 long getLong()
           
 int length()
           
 boolean lessThan(int ofs1, int ofs2, int length)
           
 void putInt(int l)
           
 void putLong(long l)
           
 void swapbytes(int ofs1, int ofs2, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

public final byte[] buffer
Constructor Detail

MemoryBuffer

public MemoryBuffer(int capacity)
Method Detail

clear

public void clear()

length

public int length()

eof

public boolean eof()

lessThan

public boolean lessThan(int ofs1,
                        int ofs2,
                        int length)

swapbytes

public void swapbytes(int ofs1,
                      int ofs2,
                      int length)

putLong

public void putLong(long l)

putInt

public void putInt(int l)

getLong

public long getLong()

getInt

public int getInt()