com.udpwork.ssdb
Class MemoryStream

java.lang.Object
  extended by com.udpwork.ssdb.MemoryStream

public class MemoryStream
extends Object


Field Summary
 byte[] buf
           
 int data
           
 int size
           
 int slot
           
 
Constructor Summary
MemoryStream()
           
MemoryStream(byte[] copy)
           
MemoryStream(byte[] copy, int off, int len)
           
MemoryStream(int capacity)
           
 
Method Summary
 void decr(int num)
           
 int memchr(byte b, int offset)
           
 int memchr(int b, int offset)
           
 void nice()
           
 String repr()
           
static String repr(byte[] bs)
           
 int space()
           
 byte[] toArray()
           
 void write(byte b)
           
 void write(byte[] bs)
           
 void write(byte[] bs, int start, int len)
           
 void write(int b)
           
 void write(String s)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

public int data

slot

public int slot

size

public int size

buf

public byte[] buf
Constructor Detail

MemoryStream

public MemoryStream()

MemoryStream

public MemoryStream(int capacity)

MemoryStream

public MemoryStream(byte[] copy)

MemoryStream

public MemoryStream(byte[] copy,
                    int off,
                    int len)
Method Detail

toArray

public byte[] toArray()

repr

public static String repr(byte[] bs)

repr

public String repr()

space

public int space()

nice

public void nice()

decr

public void decr(int num)

write

public void write(int b)

write

public void write(byte b)

write

public void write(String s)

write

public void write(byte[] bs)

write

public void write(byte[] bs,
                  int start,
                  int len)

memchr

public int memchr(int b,
                  int offset)

memchr

public int memchr(byte b,
                  int offset)