MCPcopy
hub / github.com/tinylib/msgp / getBytespec

Function getBytespec

msgp/elsize_tinygo.go:10–12  ·  view source on GitHub ↗

for tinygo, getBytespec just calls calcBytespec a simple/slow function with a switch statement - doesn't require any heap alloc, moves the space requirements into code instad of ram

(v byte)

Source from the content-addressed store, hash-verified

8// requirements into code instad of ram
9
10func getBytespec(v byte) bytespec {
11 return calcBytespec(v)
12}

Callers 5

peekExtensionFunction · 0.70
getNextSizeFunction · 0.70
getTypeFunction · 0.70
NextTypeFunction · 0.70
getSizeFunction · 0.70

Calls 1

calcBytespecFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…