public int AddPadding( byte[] input, int inOff) { byte code = (byte)(input.Length - inOff); while (inOff < input.Length) { input[inOff] = code; inOff++; } return code; }