Пример #1
0
        public EnhancementHeader Read()
        {
            var header = new EnhancementHeader();

            header.Prefix  = _reader.ReadString();
            header.Version = _reader.ReadSingle();
            header.Count   = _reader.ReadInt32();
            return(header);
        }
 public void Write(EnhancementHeader header)
 {
     _writer.Write(header.Prefix);
     _writer.Write(header.Version);
     _writer.Write(header.Count);
 }