Esempio n. 1
0
 public SourceDebugExtensionAttribute Parse(Stream attributeDataStream, uint attributeDataLength, ClassReaderState readerState, AttributeScope scope)
 {
     return(new SourceDebugExtensionAttribute
     {
         Value = ModifiedUtf8Helper.Decode(attributeDataStream.ReadBytes(attributeDataLength))
     });
 }
Esempio n. 2
0
        public Utf8Entry(Stream stream)
        {
            var data = new byte[Binary.BigEndian.ReadUInt16(stream)];

            stream.Read(data);
            String = ModifiedUtf8Helper.Decode(data);
        }