Skip to content

alecthomas/unsafeslice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Unsafe zero-copy slice casts for Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages