encode

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: BSD-3-Clause Imports: 0 Imported by: 4

Documentation

Overview

Package encode defines all encodings used in Mute.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToByte1

func ToByte1(u uint8) []byte

ToByte1 converts the uint8 u to a byte slice of length 1.

func ToByte2

func ToByte2(u uint16) []byte

ToByte2 converts the uint16 u to a byte slice of length 2.

func ToByte8

func ToByte8(u uint64) []byte

ToByte8 converts the uint64 u to a byte slice of length 8.

func ToUint16

func ToUint16(b []byte) (u uint16)

ToUint16 converts the byte slice b of length 2 to an uint16. If b does not have length 2 the function panics.

func ToUint64

func ToUint64(b []byte) (u uint64)

ToUint64 converts the byte slice b of length 8 to an uint64. If b does not have length 8 the function panics.

Types

This section is empty.

Directories

Path Synopsis
Package base64 implements base64 helper functions for Mute.
Package base64 implements base64 helper functions for Mute.

Jump to

Keyboard shortcuts

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