Skip to content

yehan2002/fastbytes

Repository files navigation

Test Go Report Card codecov Go Reference

FastBytes

FastBytes is a go package for translating between slices with fixed-size integers/floats and byte slices.

Supported Types

Floats and all signed/unsigned integers except uint and int can be translated by this package. uint and int are not supported since their size is platform dependent.

Usage

GoDoc

Usage of assembly code

This package uses assembly for copying data on certain platforms. To disable the usage of assembly set the purego build tag when building.

Usage of unsafe.Pointer

This package uses the unsafe package to covert between slice/array types and to extract pointers from any values. To disable the usage of unsafe set the no_unsafe build tag when building. Note that this also disables the usage of assembly.

About

A packge for reading and writing byte slices

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •