MCPcopy Create free account
hub / github.com/coder/hnsw / multiBinaryWrite

Function multiBinaryWrite

encode.go:104–114  ·  view source on GitHub ↗
(w io.Writer, data ...any)

Source from the content-addressed store, hash-verified

102}
103
104func multiBinaryWrite(w io.Writer, data ...any) (int, error) {
105 var written int
106 for _, d := range data {
107 n, err := binaryWrite(w, d)
108 written += n
109 if err != nil {
110 return written, err
111 }
112 }
113 return written, nil
114}
115
116func multiBinaryRead(r io.Reader, data ...any) (int, error) {
117 var read int

Callers 1

ExportMethod · 0.85

Calls 1

binaryWriteFunction · 0.85

Tested by

no test coverage detected