diff --git a/datastreamer/streamfile.go b/datastreamer/streamfile.go index b5456dd..247be5a 100644 --- a/datastreamer/streamfile.go +++ b/datastreamer/streamfile.go @@ -56,6 +56,11 @@ type FileEntry struct { Data []byte } +// Encode encodes the file entry to binary bytes +func (e FileEntry) Encode() []byte { + return encodeFileEntryToBinary(e) +} + // StreamFile type to manage a binary stream file type StreamFile struct { fileName string