public StreamWriteRecord(RecordView <Raw.StreamWriteHeader> record)
        {
            Record = record;

            var slicer         = Record.Payload.Slicer();
            var systemMetadata = slicer.Slice(Record.SubHeader.MetadataSize);

            _event = slicer.Remaining;

            SystemMetadata = StreamWriteSystemMetadata.Parser.ParseFrom(new ReadOnlySequence <byte>(systemMetadata));
        }
示例#2
0
 public static StringPayloadRecord <TSubHeader> Create <TSubHeader>(RecordView <TSubHeader> record)
     where TSubHeader : unmanaged =>