MCPcopy Create free account
hub / github.com/segmentio/encoding / uintStringsAreSorted

Function uintStringsAreSorted

json/codec.go:1047–1050  ·  view source on GitHub ↗
(u0, u1 uint64)

Source from the content-addressed store, hash-verified

1045}
1046
1047func uintStringsAreSorted(u0, u1 uint64) bool {
1048 var b0, b1 [32]byte
1049 return string(strconv.AppendUint(b0[:0], u0, 10)) < string(strconv.AppendUint(b1[:0], u1, 10))
1050}
1051
1052func stringToBytes(s string) []byte {
1053 return *(*[]byte)(unsafe.Pointer(&sliceHeader{

Callers 1

constructMapCodecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…