private static byte[] GenPad(byte b, int count) { byte[] padding = new byte[count]; Arrays.Fill(padding, b); return padding; } }