Documentation
¶
Overview ¶
Code generated by kvo. DO NOT EDIT.
Package valuebench supplies the same fixture before and after value unification.
Index ¶
- Variables
- func Model() (*kvo.Schema, *kvo.Model)
- func StaticR1(v values.Value, present bool, d int) (out int64)
- func StaticR2(v values.Value, present bool, d int) (out string)
- func StaticR3(v values.Value, present bool, d int) (out []uint8)
- func StaticR4(v values.Value, present bool, d int) (out []uint64)
- func StaticR5(v values.Value, present bool, d int) (out uint64)
- func StaticW0(w *row2.Writer, v Row, k uint64, s string, layout row2.Layout, keep bool, ...)
- func StaticW1(w *row2.Writer, v int64, k uint64, s string, layout row2.Layout, keep bool, ...)
- func StaticW2(w *row2.Writer, v string, k uint64, s string, layout row2.Layout, keep bool, ...)
- func StaticW3(w *row2.Writer, v []uint8, k uint64, s string, layout row2.Layout, keep bool, ...)
- func StaticW4(w *row2.Writer, v []uint64, k uint64, s string, layout row2.Layout, keep bool, ...)
- func StaticW5(w *row2.Writer, v uint64, k uint64, s string, layout row2.Layout, keep bool, ...)
- type Row
Constants ¶
This section is empty.
Variables ¶
View Source
var Static = kvo.Generated{Fingerprint: "1ece9bfa07266bee5f9fa3eb3663097fa5365a4cf3de425fcf97d6f9392741a7", Fields: map[reflect.Type]*nativebind.GeneratedFields{ reflect.TypeFor[Row](): &StaticFields0, }, Encode: func(dst []byte, row any, layout row2.Layout) []byte { w := row2.AcquireWriter(dst) defer w.Release() StaticW0(w, *row.(*Row), 0, "", layout, false, 0) return w.BytesWritten() }, Decode: func(raw []byte, row any) { *row.(*Row) = StaticR0(values.Bytes(raw), true, 0) }}
View Source
var StaticFields0 = nativebind.GeneratedFields{Type: reflect.TypeFor[Row](), New: func() unsafe.Pointer { return unsafe.Pointer(new(Row)) }, Fields: []nativebind.GeneratedField{ {Name: "Count", Get: func(p unsafe.Pointer) values.Value { return values.Int(int64((*(Row))(p).Count)) }, Set: func(p unsafe.Pointer, v values.Value) { (*(Row))(p).Count = int64(v.AsInt()) }}, {Name: "Name", Get: func(p unsafe.Pointer) values.Value { return values.String(string((*(Row))(p).Name)) }, Set: func(p unsafe.Pointer, v values.Value) { (*(Row))(p).Name = string(v.AsString()) }}, {Name: "Data", Get: func(p unsafe.Pointer) values.Value { return values.Value{P: unsafe.Pointer(&(*(Row))(p).Data)} }, Set: func(p unsafe.Pointer, v values.Value) { if v.P == nil { var zero []uint8 (*(Row))(p).Data = zero } else { (*(Row))(p).Data = *(*([]uint8))(v.P) } }}, {Name: "Tags", Get: func(p unsafe.Pointer) values.Value { return values.Value{P: unsafe.Pointer(&(*(Row))(p).Tags)} }, Set: func(p unsafe.Pointer, v values.Value) { if v.P == nil { var zero []uint64 (*(Row))(p).Tags = zero } else { (*(Row))(p).Tags = *(*([]uint64))(v.P) } }}, }}
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.