MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / ByteSlicePut

Function ByteSlicePut

IceFireDB-SQLite/utils/byte_slice_pool.go:30–36  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

28}
29
30func ByteSlicePut(data []byte) {
31 select {
32 case byteSliceChan <- data:
33 default:
34 byteSlicePool.Put(data) //nolint:staticcheck
35 }
36}

Callers 3

writeCommandBufMethod · 0.92
readResultMethod · 0.92
readResultStreamingMethod · 0.92

Calls 1

PutMethod · 0.45

Tested by

no test coverage detected