GetByte returns the value of the byte pointer passed in or 0 if the pointer is nil.
(b *byte)
| 22 | |
| 23 | // GetByte returns the value of the byte pointer passed in or 0 if the pointer is nil. |
| 24 | func 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. |
| 32 | func GetComplex64(c *complex64) complex64 { |