Esempio n. 1
0
 public unsafe BinaryDataWriter Write(ExportedDataTypes type)
 {
     CheckAndResizeBuffer(sizeof(byte));
     *(byte *)_buffer.Ref = (byte)type;
     _buffer.Skip();
     return(this);
 }
Esempio n. 2
0
        public unsafe ExportedDataTypes ReadNext()
        {
            if (EOF)
            {
                return(ExportedDataTypes.none);
            }

            var result = (ExportedDataTypes)(*_buffer.Ref);

            _buffer.Skip();
            return(result);
        }