MCPcopy Create free account
hub / github.com/imroc/req / writeUint16

Method writeUint16

internal/http2/frame.go:405–405  ·  view source on GitHub ↗
(v uint16)

Source from the content-addressed store, hash-verified

403func (h2f *Framer) writeBytes(v []byte) { h2f.wbuf = append(h2f.wbuf, v...) }
404
405func (h2f *Framer) writeUint16(v uint16) { h2f.wbuf = append(h2f.wbuf, byte(v>>8), byte(v)) }
406
407func (h2f *Framer) writeUint32(v uint32) {
408 h2f.wbuf = append(h2f.wbuf, byte(v>>24), byte(v>>16), byte(v>>8), byte(v))

Callers 1

WriteSettingsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected