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

Function copyBytes

driver/hybriddb/db.go:125–132  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

123}
124
125func copyBytes(b []byte) []byte {
126 if b == nil {
127 return nil
128 }
129 c := make([]byte, len(b))
130 copy(c, b)
131 return c
132}
133
134func (db *DB) initOpts() {
135 db.opts = newOptions(db.cfg)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected