MCPcopy
hub / github.com/google/uuid / parseBytesUnsafe

Function parseBytesUnsafe

uuid_test.go:659–661  ·  uuid_test.go::parseBytesUnsafe

parseBytesUnsafe is to benchmark using unsafe.

(b []byte)

Source from the content-addressed store, hash-verified

657
658// parseBytesUnsafe is to benchmark using unsafe.
659func parseBytesUnsafe(b []byte) (UUID, error) {
660 return Parse(*(*string)(unsafe.Pointer(&b)))
661}
662
663func BenchmarkParseBytesUnsafe(b *testing.B) {
664 for i := 0; i < b.N; i++ {

Callers 1

Calls 1

ParseFunction · 0.85

Tested by

no test coverage detected