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

Function chunk_buffer

agent.go:102–113  ·  view source on GitHub ↗
(buf []byte, lim int)

Source from the content-addressed store, hash-verified

100}
101
102func chunk_buffer(buf []byte, lim int) [][]byte {
103 var chunk []byte
104 chunks := make([][]byte, 0, len(buf)/lim+1)
105 for len(buf) >= lim {
106 chunk, buf = buf[:lim], buf[lim:]
107 chunks = append(chunks, chunk)
108 }
109 if len(buf) > 0 {
110 chunks = append(chunks, buf[:len(buf)])
111 }
112 return chunks
113}
114
115func run_cmd(command string) {
116 cmd := exec.Command("cmd", "/C", command)

Callers 2

handleVoiceFunction · 0.70
playSoundFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected