Skip to content

Commit

Permalink
file entry public encoder (#118)
Browse files Browse the repository at this point in the history
* file entry public encoder
  • Loading branch information
ToniRamirezM authored Mar 21, 2024
1 parent 0c30017 commit 5e35df4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions datastreamer/streamfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e35df4

Please sign in to comment.