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

Method Uint

json/token.go:268–271  ·  view source on GitHub ↗

Uint returns a byte slice containing the value of the json number that the tokenizer is currently pointing at. This method must only be called after checking the kind of the token via a call to Kind. If the tokenizer is not positioned on a positive integer, the behavior is undefined.

()

Source from the content-addressed store, hash-verified

266// If the tokenizer is not positioned on a positive integer, the behavior is
267// undefined.
268func (t *Tokenizer) Uint() uint64 {
269 u, _, _ := t.parseUint(t.Value, uint64Type)
270 return u
271}
272
273// Float returns a byte slice containing the value of the json number that the
274// tokenizer is currently pointing at.

Callers 1

constructMapCodecFunction · 0.45

Calls 1

parseUintMethod · 0.80

Tested by

no test coverage detected