MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / writeByte

Function writeByte

pkg/shared/control.go:71–74  ·  view source on GitHub ↗

Helper functions for reading/writing

(w io.Writer, b byte)

Source from the content-addressed store, hash-verified

69
70// Helper functions for reading/writing
71func writeByte(w io.Writer, b byte) error {
72 _, err := w.Write([]byte{b})
73 return err
74}
75
76func writeUint64(w io.Writer, v uint64) error {
77 buf := make([]byte, 8)

Callers 3

WritePingFunction · 0.85
WritePongFunction · 0.85
WriteShutdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected