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

Method Int

json/token.go:255–258  ·  view source on GitHub ↗

Int 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 an integer, the behavior is undefined.

()

Source from the content-addressed store, hash-verified

253//
254// If the tokenizer is not positioned on an integer, the behavior is undefined.
255func (t *Tokenizer) Int() int64 {
256 i, _, _ := t.parseInt(t.Value, int64Type)
257 return i
258}
259
260// Uint returns a byte slice containing the value of the json number that the
261// tokenizer is currently pointing at.

Callers 5

encodeInt8Function · 0.45
encodeInt16Function · 0.45
encodeInt32Function · 0.45
encodeInt64Function · 0.45
constructMapCodecFunction · 0.45

Calls 1

parseIntMethod · 0.80

Tested by

no test coverage detected