Back to index

wims  3.65+svn20090927
Package Functions | Private Attributes
org.javia.arity.ByteStack Class Reference

List of all members.

Package Functions

void clear ()
void push (byte b)
void pop (int cnt)
byte[] toArray ()
void clear ()
void push (byte b)
void pop (int cnt)
byte[] toArray ()

Private Attributes

byte[] data = new byte[8]
int size = 0

Detailed Description

Definition at line 19 of file ByteStack.java.


Member Function Documentation

void org.javia.arity.ByteStack.clear ( ) [inline, package]

Definition at line 23 of file ByteStack.java.

                 {
        size = 0;
    }

Here is the caller graph for this function:

void org.javia.arity.ByteStack.clear ( ) [inline, package]

Definition at line 23 of file ByteStack.java.

                 {
        size = 0;
    }
void org.javia.arity.ByteStack.pop ( int  cnt) [inline, package]

Definition at line 36 of file ByteStack.java.

                      {
        size -= cnt;
    }
void org.javia.arity.ByteStack.pop ( int  cnt) [inline, package]

Definition at line 36 of file ByteStack.java.

                      {
        size -= cnt;
    }

Here is the caller graph for this function:

void org.javia.arity.ByteStack.push ( byte  b) [inline, package]

Definition at line 27 of file ByteStack.java.

                      {
        if (size >= data.length) {
            byte[] newData = new byte[data.length << 1];
            System.arraycopy(data, 0, newData, 0, data.length);
            data = newData;
        }
        data[size++] = b;
    }

Here is the caller graph for this function:

void org.javia.arity.ByteStack.push ( byte  b) [inline, package]

Definition at line 27 of file ByteStack.java.

                      {
        if (size >= data.length) {
            byte[] newData = new byte[data.length << 1];
            System.arraycopy(data, 0, newData, 0, data.length);
            data = newData;
        }
        data[size++] = b;
    }
byte [] org.javia.arity.ByteStack.toArray ( ) [inline, package]

Definition at line 40 of file ByteStack.java.

                     {
        byte[] trimmed = new byte[size];
        System.arraycopy(data, 0, trimmed, 0, size);
        return trimmed;
    }

Here is the caller graph for this function:

byte [] org.javia.arity.ByteStack.toArray ( ) [inline, package]

Definition at line 40 of file ByteStack.java.

                     {
        byte[] trimmed = new byte[size];
        System.arraycopy(data, 0, trimmed, 0, size);
        return trimmed;
    }

Member Data Documentation

byte [] org.javia.arity.ByteStack.data = new byte[8] [private]

Definition at line 20 of file ByteStack.java.

int org.javia.arity.ByteStack.size = 0 [private]

Definition at line 21 of file ByteStack.java.


The documentation for this class was generated from the following files: