public class FixedArray { public byte[] array; public int count; public FixedArray(int max) { array = new byte[max]; count = 0; } }