Ejemplo n.º 1
0
        internal static SourceRef ReadBinary(BinDumpReader reader, int sourceID)
        {
            var fromChar = (int)reader.ReadVarUInt32();
            int toChar   = fromChar + reader.ReadVarInt32();
            var fromLine = (int)reader.ReadVarUInt32();
            int toLine   = fromLine + reader.ReadVarInt32();

            return(new SourceRef(sourceID, fromChar, toChar, fromLine, toLine, reader.ReadBoolean()));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Reads a symbolref from a binary stream
        /// </summary>
        internal static SymbolRef ReadBinary(BinDumpReader br)
        {
            SymbolRef that = new SymbolRef();

            that.i_Type  = (SymbolRefType)br.ReadByte();
            that.i_Index = br.ReadVarInt32();
            that.i_Name  = br.ReadString();
            return(that);
        }