public void Align() { if (dataLength > 0) { BaseStream.WriteByte((byte)data); data = 0; dataLength = 0; } } }