public void IntLSBMSB(int i, int start, int end) { BeginField(start); this.generator.Bytes(ConvertTo.Int2LSB(i)); this.generator.Bytes(ConvertTo.Int2MSB(i)); EndField(end); }
private void susp_base_ce(MemoryStream m) // IEEE P1282 SUSP ( 5.1 ) { int start = (int)m.Length; m.WriteByte((byte)'C'); m.WriteByte((byte)'E'); m.WriteByte(28); // LEN_CE m.WriteByte(1); // version m.Write(ConvertTo.Int2LSB(ContinuationBlock), 0, 4); m.Write(ConvertTo.Int2MSB(ContinuationBlock), 0, 4); m.Write(ConvertTo.Int2LSB(0), 0, 4); // Continuation Offset m.Write(ConvertTo.Int2MSB(0), 0, 4); // Continuation Offset m.Write(ConvertTo.Int2LSB(ContinuationLength), 0, 4); m.Write(ConvertTo.Int2MSB(ContinuationLength), 0, 4); System.Diagnostics.Debug.Assert((m.Length - start) == 28); }