MCPcopy Index your code
hub / github.com/AlekSi/pointer / GetByte

Function GetByte

value.go:24–29  ·  view source on GitHub ↗

GetByte returns the value of the byte pointer passed in or 0 if the pointer is nil.

(b *byte)

Source from the content-addressed store, hash-verified

22
23// GetByte returns the value of the byte pointer passed in or 0 if the pointer is nil.
24func GetByte(b *byte) byte {
25 if b == nil {
26 return 0
27 }
28 return *b
29}
30
31// GetComplex64 returns the value of the complex64 pointer passed in or 0 if the pointer is nil.
32func GetComplex64(c *complex64) complex64 {

Callers 1

TestByteFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestByteFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…