valuebench

package
v0.4.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Code generated by kvo. DO NOT EDIT.

Package valuebench supplies the same fixture before and after value unification.

Index

Constants

This section is empty.

Variables

View Source
var Static = kvo.Generated{Fingerprint: "123747ad7e03eba9f02122fe6901f34779138bd3e7dc08b61ca3c647417e4b0c",
	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

func Model

func Model() (*kvo.Schema, *kvo.Model)

func StaticR1

func StaticR1(v values.Value, present bool, d int) (out int64)

func StaticR2

func StaticR2(v values.Value, present bool, d int) (out string)

func StaticR3

func StaticR3(v values.Value, present bool, d int) (out []uint8)

func StaticR4

func StaticR4(v values.Value, present bool, d int) (out []uint64)

func StaticR5

func StaticR5(v values.Value, present bool, d int) (out uint64)

func StaticW0

func StaticW0(w *row2.Writer, v Row, k uint64, s string, layout row2.Layout, keep bool, d int)

func StaticW1

func StaticW1(w *row2.Writer, v int64, k uint64, s string, layout row2.Layout, keep bool, d int)

func StaticW2

func StaticW2(w *row2.Writer, v string, k uint64, s string, layout row2.Layout, keep bool, d int)

func StaticW3

func StaticW3(w *row2.Writer, v []uint8, k uint64, s string, layout row2.Layout, keep bool, d int)

func StaticW4

func StaticW4(w *row2.Writer, v []uint64, k uint64, s string, layout row2.Layout, keep bool, d int)

func StaticW5

func StaticW5(w *row2.Writer, v uint64, k uint64, s string, layout row2.Layout, keep bool, d int)

Types

type Row

type Row struct {
	Count int64    `edb:"count"`
	Name  string   `edb:"name"`
	Data  []byte   `edb:"data"`
	Tags  []uint64 `edb:"tags"`
}

func Sample

func Sample() *Row

func StaticR0

func StaticR0(v values.Value, present bool, d int) (out Row)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL