All Projects → alecthomas → unsafeslice

alecthomas / unsafeslice

Licence: MIT license
Unsafe zero-copy slice casts for Go

Programming Languages

go
31211 projects - #10 most used programming language

Unsafe zero-copy slice casts for Go

Convenience functions for casting raw bytes to typed arrays without copying.

Usage:

b := []byte{1, 2, 3, 4}
v := unsafeslice.Uint32SliceFromByteSlice(b)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].