MCPcopy Create free account
hub / github.com/segmentio/encoding / makeBytes

Function makeBytes

proto/bytes.go:54–60  ·  view source on GitHub ↗
(p unsafe.Pointer, n int)

Source from the content-addressed store, hash-verified

52}
53
54func makeBytes(p unsafe.Pointer, n int) []byte {
55 return *(*[]byte)(unsafe.Pointer(&sliceHeader{
56 Data: p,
57 Len: n,
58 Cap: n,
59 }))
60}
61
62type sliceHeader struct {
63 Data unsafe.Pointer

Callers 3

byteArraySizeFuncOfFunction · 0.85
byteArrayEncodeFuncOfFunction · 0.85
byteArrayDecodeFuncOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…