private void StartRecord(Stream aOut, short aRecordType) { LittleEndianHelper.WriteShortU(aOut, aRecordType); int aVal = this.m_recordSize[this.m_count++] - 4; LittleEndianHelper.WriteShortU(aOut, aVal); }
public void WriteHeaderData(Stream aOut, bool aCompressed) { if (aCompressed) { this.m_grbit &= 254; } else { this.m_grbit |= 1; } LittleEndianHelper.WriteShortU(aOut, this.m_rgb.Length); aOut.WriteByte(this.m_grbit); if (this.m_runsList != null) { if ((this.m_grbit & 8) != 0) { LittleEndianHelper.WriteShortU(aOut, this.m_runsList.Count); } } else if ((this.m_grbit & 8) != 0) { LittleEndianHelper.WriteShortU(aOut, 0); } }