Files
rbheap/entry.go

21 lines
307 B
Go

package main
func NewEntry(inputJSON []byte) (*Entry, error) {
obj, err := NewObject(inputJSON)
if err != nil {
return nil, err
}
return &Entry{
Object: obj,
Index: obj.Index(),
}, err
}
// Entry is a parsed heap item object
type Entry struct {
Object *Object
Offset int64
Index string
}