public void trimToSize() {if (n < array.length) {byte[] aux = new byte[n];System.arraycopy(array, 0, aux, 0, n);array = aux;}}

public virtual void TrimToSize(){if (n < array.Length){byte[] aux = new byte[n];System.Array.Copy(array, 0, aux, 0, n);array = aux;}}
