gioui.orggioui.org/internal/byteslice Index | Files

package byteslice

import "gioui.org/internal/byteslice"

Package byteslice provides byte slice views of other Go values such as slices and structs.

Index

Functions

func Slice

func Slice(s interface{}) []byte

Slice returns a byte slice view of a slice.

func Struct

func Struct(s interface{}) []byte

Struct returns a byte slice view of a struct.

func Uint32

func Uint32(s []uint32) []byte

Uint32 returns a byte slice view of a uint32 slice.

Source Files

byteslice.go

Version
v0.8.0 (latest)
Published
Jan 14, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
14 seconds ago

Tools for package owners.