MCPcopy
hub / github.com/nirui/sshwifty / Set

Method Set

application/command/header.go:101–107  ·  view source on GitHub ↗

Set set a new value of the Header

(data byte)

Source from the content-addressed store, hash-verified

99
100// Set set a new value of the Header
101func (p *Header) Set(data byte) {
102 if data > headerDataCutter {
103 panic("data must not be greater than 0x3f")
104 }
105
106 *p |= (headerDataCutter & Header(data))
107}
108
109// Set set a new value of the Header
110func (p Header) String() string {

Callers 2

handleControlMethod · 0.45
handleCloseMethod · 0.45

Calls 1

HeaderTypeAlias · 0.70

Tested by

no test coverage detected