Registry / utility / 3job-unsafeconvert

3job-unsafeconvert

JSON →
library1.6.0gogounverified

Provides unsafe type conversion functions for Go, allowing direct memory reinterpretation between compatible types.

go get github.com/3JoB/unsafeConvert
INSTALL
IMPORT
SIG · 3JOB-UNSAFECONVERT
3
3job-unsafeconvert
utilitygov1.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

unsafeConvert
github.com/3JoB/unsafeConvert

Convert a uint64 to a byte slice using unsafe operations.

package main import "github.com/3JoB/unsafeConvert" func main() { var x uint64 = 42 y := unsafeConvert.Uint64ToBytes(x) _ = y }
Debug
Known issues
gotchaUsing unsafe operations can lead to undefined behavior if types are not compatible.
fix
Ensure the source and target types have the same memory layout and size.
affects: all
Upgrade
Version history
1.6.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
56 hits · last 30 days
node
52
OpenAI (training)
1
Resources
3job-unsafeconvert — go get 3job-unsafeconvert · libregistry