- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NewBytesWithCopyOf (0.14 sec)
-
internal/grid/types.go
// When returned as response, the handler also gives up ownership of the byte slice. func NewBytesWith(b []byte) *Bytes { bb := Bytes(b) return &bb } // NewBytesWithCopyOf returns a new byte slice with a copy of the provided content. func NewBytesWithCopyOf(b []byte) *Bytes { if b == nil { bb := Bytes(nil) return &bb } bb := NewBytesCap(len(b)) *bb = append(*bb, b...) return bb }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 15.5K bytes - Viewed (0) -
cmd/peer-rest-server.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Oct 04 11:32:32 UTC 2024 - 53.2K bytes - Viewed (0)