bitoffset

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 0 Imported by: 1

README

bitoffset

This repository contains code to get and set integers at (unaligned) bit offsets in Go. Unaligned offsets are commonly used in low-bandwidth applications to reduce transmission size.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int32

func Int32(buf []byte, pos uint32, len uint8) int32

func SetUint32

func SetUint32(buf []byte, pos uint32, len uint8, val uint32)

func SetUint8

func SetUint8(buf []byte, pos uint32, len uint8, val uint8)

func Uint32

func Uint32(buf []byte, pos uint32, len uint8) uint32

func Uint8

func Uint8(buf []byte, pos uint32, len uint8) uint8

Types

This section is empty.

Jump to

Keyboard shortcuts

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