MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / QuickSetBytes

Function QuickSetBytes

pkg/util/dbutil/dbutil.go:103–112  ·  view source on GitHub ↗
(bval *[]byte, m map[string]any, name string)

Source from the content-addressed store, hash-verified

101}
102
103func QuickSetBytes(bval *[]byte, m map[string]any, name string) {
104 v, ok := m[name]
105 if !ok {
106 return
107 }
108 sqlBytes, ok := v.([]byte)
109 if ok {
110 *bval = sqlBytes
111 }
112}
113
114func getByteArr(m map[string]any, name string, def string) ([]byte, bool) {
115 v, ok := m[name]

Callers 1

FromDBMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected