MCPcopy Create free account
hub / github.com/3NailsInfoSec/DCVC2 / chunk_buffer

Function chunk_buffer

server.go:68–79  ·  view source on GitHub ↗
(buf []byte, lim int)

Source from the content-addressed store, hash-verified

66}
67
68func chunk_buffer(buf []byte, lim int) [][]byte {
69 var chunk []byte
70 chunks := make([][]byte, 0, len(buf)/lim+1)
71 for len(buf) >= lim {
72 chunk, buf = buf[:lim], buf[lim:]
73 chunks = append(chunks, chunk)
74 }
75 if len(buf) > 0 {
76 chunks = append(chunks, buf[:len(buf)])
77 }
78 return chunks
79}
80
81func main() {
82 //auth bot

Callers 2

playSoundFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected