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

Function wireProcessVersionByte

lib/wire.go:677–679  ·  view source on GitHub ↗

wireReadVersionByte reads the initial byte of a stream to validate version

(version byte)

Source from the content-addressed store, hash-verified

675
676// wireReadVersionByte reads the initial byte of a stream to validate version
677func wireProcessVersionByte(version byte) (isValid bool, headerLength int) {
678 return wireProcessVersionByteTrace(version, false)
679}
680
681// wireProcessVersionByteTrace processes version byte with optional verbose debugging output
682func wireProcessVersionByteTrace(version byte, trace bool) (isValid bool, headerLength int) {

Callers 1

WireReadRequestFunction · 0.85

Calls 1

Tested by

no test coverage detected