MCPcopy Create free account
hub / github.com/blues/note / wireReadHeader

Function wireReadHeader

lib/wire.go:1069–1071  ·  view source on GitHub ↗

wireProcessHeader extracts protocol buffer and binary lengths from the header

(version byte, header []byte)

Source from the content-addressed store, hash-verified

1067
1068// wireProcessHeader extracts protocol buffer and binary lengths from the header
1069func wireReadHeader(version byte, header []byte) (protobufLength int64, binaryLength int64, err error) {
1070 return wireReadHeaderTrace(version, header, false)
1071}
1072
1073// wireReadHeaderTrace extracts protocol buffer and binary lengths with optional verbose debugging output
1074func wireReadHeaderTrace(version byte, header []byte, trace bool) (protobufLength int64, binaryLength int64, err error) {

Callers 1

WireReadRequestFunction · 0.85

Calls 1

wireReadHeaderTraceFunction · 0.85

Tested by

no test coverage detected