Add Blob.Handle()

This commit is contained in:
Alexander Weiss 2020-07-17 22:13:23 +02:00 committed by Alexander Neumann
parent 581d90cf91
commit ce7d613749
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@ func (b Blob) String() string {
b.Type, b.ID.Str(), b.Offset, b.Length)
}
func (b Blob) Handle() BlobHandle {
return BlobHandle{ID: b.ID, Type: b.Type}
}
// PackedBlob is a blob stored within a file.
type PackedBlob struct {
Blob