Пример #1
0
        public byte[] Write()
        {
            MemoryStream stream = new MemoryStream(Size);
            BinaryWriter writer = new BinaryWriter(stream, System.Text.Encoding.Unicode);

            writer.Write(Size);
            nFirstIndex.Write(writer);
            Column.WriteData(writer, oData, tTable);
            writer.Write(Pos);

            Changed = false;
            return(stream.ToArray());
        }
Пример #2
0
        public void Write(BinaryWriter writer)
        {
            if (Trace.AssertEnabled)
            {
                Trace.Assert(iBalance != -2);
            }

            writer.Write(iBalance);
            writer.Write(iLeft);
            writer.Write(iRight);
            writer.Write(iParent);

            if (nNext != null)
            {
                nNext.Write(writer);
            }
        }