public SourceDebugExtensionAttribute Parse(Stream attributeDataStream, uint attributeDataLength, ClassReaderState readerState, AttributeScope scope) { return(new SourceDebugExtensionAttribute { Value = ModifiedUtf8Helper.Decode(attributeDataStream.ReadBytes(attributeDataLength)) }); }
public Utf8Entry(Stream stream) { var data = new byte[Binary.BigEndian.ReadUInt16(stream)]; stream.Read(data); String = ModifiedUtf8Helper.Decode(data); }
internal override byte[] Save(ClassWriterState writerState, AttributeScope scope) { return(ModifiedUtf8Helper.Encode(Value)); }
public override void Write(Stream stream) { Binary.BigEndian.Write(stream, ModifiedUtf8Helper.GetBytesCount(String)); stream.Write(ModifiedUtf8Helper.Encode(String)); }