val creates an instruction to read from a field we're marshaling
(conv func(unsafe.Pointer, *Buffer))
| 431 | |
| 432 | // val creates an instruction to read from a field we're marshaling |
| 433 | func (e *StructEncoder) val(conv func(unsafe.Pointer, *Buffer)) { |
| 434 | |
| 435 | e.flunk() // flush any chunk data we've buffered |
| 436 | e.instructions = append(e.instructions, instruction{leapFun: conv, offset: e.f.Offset}) |
| 437 | } |
| 438 | |
| 439 | // ptrval creates an instruction to read from a pointer field we're marshaling |
| 440 | func (e *StructEncoder) ptrval(conv func(unsafe.Pointer, *Buffer)) { |
no test coverage detected