(n int)
| 154 | } |
| 155 | |
| 156 | func byteArrayEncodeFuncOf(n int) encodeFunc { |
| 157 | return func(b []byte, p unsafe.Pointer, flags flags) (int, error) { |
| 158 | if p != nil { |
| 159 | if v := makeBytes(p, n); flags.has(wantzero) || !isZeroBytes(v) { |
| 160 | return encodeBytes(b, unsafe.Pointer(&v), noflags) |
| 161 | } |
| 162 | } |
| 163 | return 0, nil |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | func byteArrayDecodeFuncOf(n int) decodeFunc { |
| 168 | return func(b []byte, p unsafe.Pointer, _ flags) (int, error) { |
no test coverage detected
searching dependent graphs…