public void WritePad(int alignment) { int needed = Protocol.PadNeeded((int)stream.Position, alignment); stream.Write(nullBytes, 0, needed); }