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. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Int32(buf []byte, pos uint32, len uint8) int32 func SetUint32(buf []byte, pos uint32, len uint8, val uint32) func SetUint8(buf []byte, pos uint32, len uint8, val uint8) func Uint32(buf []byte, pos uint32, len uint8) uint32 func Uint8(buf []byte, pos uint32, len uint8) uint8 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. Source Files ¶ View all Source files bitoffset.go Click to show internal directories. Click to hide internal directories.