MCPcopy Create free account
hub / github.com/bet365/jingo / val

Method val

structencoder.go:433–437  ·  view source on GitHub ↗

val creates an instruction to read from a field we're marshaling

(conv func(unsafe.Pointer, *Buffer))

Source from the content-addressed store, hash-verified

431
432// val creates an instruction to read from a field we're marshaling
433func (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
440func (e *StructEncoder) ptrval(conv func(unsafe.Pointer, *Buffer)) {

Callers 6

NewStructEncoderFunction · 0.95
optInstrStringerMethod · 0.95
optInstrEncoderMethod · 0.95
optInstrEncoderWriterMethod · 0.95
optInstrRawMethod · 0.95
optInstrEscapeMethod · 0.95

Calls 1

flunkMethod · 0.95

Tested by

no test coverage detected