MCPcopy Create free account
hub / github.com/divan/txqr / frame

Method frame

encode.go:51–53  ·  view source on GitHub ↗
(blockCode int64, total int, data []byte)

Source from the content-addressed store, hash-verified

49}
50
51func (e *Encoder) frame(blockCode int64, total int, data []byte) string {
52 return fmt.Sprintf("%d/%d/%d|%s", blockCode, e.chunkLen, total, string(data))
53}
54
55func numberOfChunks(length, chunkLen int) int {
56 n := length / chunkLen

Callers 2

EncodeMethod · 0.95
app.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected