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

            stream.Read(data);
            String = ModifiedUtf8Helper.Decode(data);
        }
コード例 #3
0
 internal override byte[] Save(ClassWriterState writerState, AttributeScope scope)
 {
     return(ModifiedUtf8Helper.Encode(Value));
 }
コード例 #4
0
 public override void Write(Stream stream)
 {
     Binary.BigEndian.Write(stream, ModifiedUtf8Helper.GetBytesCount(String));
     stream.Write(ModifiedUtf8Helper.Encode(String));
 }