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)); }
public static StringPayloadRecord <TSubHeader> Create <TSubHeader>(RecordView <TSubHeader> record) where TSubHeader : unmanaged =>