MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / Get

Method Get

projects/Go/proto/fbe/FinalModelUUID.go:51–57  ·  view source on GitHub ↗

Get the UUID value

()

Source from the content-addressed store, hash-verified

49
50// Get the UUID value
51func (fm *FinalModelUUID) Get() (UUID, int, error) {
52 if (fm.buffer.Offset() + fm.FBEOffset() + fm.FBESize()) > fm.buffer.Size() {
53 return UUIDNil(), 0, errors.New("model is broken")
54 }
55
56 return ReadUUID(fm.buffer.Data(), fm.buffer.Offset() + fm.FBEOffset()), fm.FBESize(), nil
57}
58
59// Set the UUID value
60func (fm *FinalModelUUID) Set(value UUID) (int, error) {

Callers

nothing calls this directly

Calls 7

FBEOffsetMethod · 0.95
FBESizeMethod · 0.95
UUIDNilFunction · 0.85
ReadUUIDFunction · 0.85
DataMethod · 0.80
OffsetMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected