MCPcopy Create free account

hub / github.com/pquerna/ffjson / functions

Functions575 in github.com/pquerna/ffjson

↓ 92 callersMethodFatalf
(format string, args ...interface{})
tests/goser/goser_test.go:88
↓ 72 callersFunctiontestType
(t *testing.T, base interface{}, ff interface{})
tests/ff_test.go:259
↓ 58 callersFunctiontestTypeFuzz
Fuzz test for 1000 iterations
tests/fuzz_test.go:401
↓ 56 callersMethodWriteByte
WriteByte appends the byte c to the buffer, growing the buffer as needed. The returned error is always nil, but is included to match bufio.Writer's Wr
fflib/v1/buffer.go:265
↓ 35 callersFunctiontestExpectedError
(t *testing.T, expected error, xval string, ff json.Unmarshaler)
tests/ff_test.go:382
↓ 22 callersMethodString
()
fflib/v1/buffer.go:28
↓ 20 callersMethodWrite
Write appends the contents of p to the buffer, growing the buffer as needed. The return value n is the length of p; err is always nil. If the buffer b
fflib/v1/buffer.go:176
↓ 19 callersFunctiontestStrQuoted
(t *testing.T, str string)
tests/ff_string_test.go:148
↓ 17 callersFunctiontestCycle
(t *testing.T, base interface{}, ff interface{})
tests/ff_test.go:328
↓ 17 callersFunctiontplStr
(t *template.Template, data interface{})
inception/template.go:53
↓ 15 callersFunctionNewFFLexer
(input []byte)
fflib/v1/lexer.go:110
↓ 14 callersMethodreadByte
()
fflib/v1/lexer.go:174
↓ 14 callersFunctiontestExpectedXValBare
(t *testing.T, expected interface{}, xval string, ff interface{})
tests/ff_test.go:370
↓ 12 callersMethodBytes
Bytes returns a slice of the contents of the unread portion of the buffer; len(b.Bytes()) == b.Len(). If the caller changes the contents of the retur
fflib/v1/buffer.go:92
↓ 12 callersMethodFlush
Flush will return all queued writes, and return "" (empty string) in nothing has been queued "buf.WriteByte('" + byte + "')" + '\n' if one bute has be
inception/writerstack.go:35
↓ 12 callersMethodUnmarshalJSON
UnmarshalJSON umarshall json to ip
tests/goser/ff/goser.go:176
↓ 12 callersFunctiontestSameMarshal
(t *testing.T, base interface{}, ff interface{})
tests/ff_test.go:277
↓ 11 callersMethodWrite
Write will add a string to be written
inception/writerstack.go:11
↓ 11 callersFunctionassertTokensEqual
(t *testing.T, a []FFTok, b []FFTok)
fflib/v1/lexer_test.go:40
↓ 11 callersFunctionscanAll
(ffl *FFLexer)
fflib/v1/lexer_test.go:27
↓ 10 callersFunctiontestExpectedXVal
(t *testing.T, expected interface{}, xval string, ff interface{})
tests/ff_test.go:378
↓ 9 callersFunctionnewLogFFRecord
()
tests/ff_test.go:46
↓ 8 callersMethodReset
()
fflib/v1/buffer.go:23
↓ 7 callersMethodBytes
()
fflib/v1/buffer.go:27
↓ 7 callersMethodShift
Binary shift left (k > 0) or right (k < 0).
fflib/v1/internal/atof.go:836
↓ 7 callersMethodTruncate
Truncate discards all but the first n unread bytes from the buffer. It panics if n is negative or greater than the length of the buffer.
fflib/v1/buffer.go:110
↓ 7 callersMethodWriteFlush
WriteFlush will add a string and return the Flush result for the queue
inception/writerstack.go:54
↓ 7 callersFunctionequalIgnoreCase
can change for testing
fflib/v1/internal/atof.go:36
↓ 6 callersMethodContains
Contains reports whether a comma-separated list of options contains a particular substr flag. substr must be surrounded by a string boundary or commas
generator/tags.go:42
↓ 6 callersMethodEncode
Encode the data in the supplied value to the stream given on creation. When the function returns the output has been written to the stream.
ffjson/encoder.go:58
↓ 6 callersMethodNormalize
Normalize normalizes f so that the highest bit of the mantissa is set, and returns the number by which the mantissa was left-shifted.
fflib/v1/extfloat.go:199
↓ 6 callersMethodNormalize
Normalize normalizes f so that the highest bit of the mantissa is set, and returns the number by which the mantissa was left-shifted.
fflib/v1/internal/extfloat.go:199
↓ 6 callersMethodSliceString
(out DecodingBuffer)
fflib/v1/reader.go:223
↓ 6 callersMethodUnmarshalJSON
UnmarshalJSON func
tests/ff.go:997
↓ 6 callersFunctionrangeError
(fn, str string)
fflib/v1/internal/atoi.go:51
↓ 6 callersFunctionscanToTok
(ffl *FFLexer, targetTok FFTok)
fflib/v1/lexer_test.go:56
↓ 5 callersMethodLen
Len returns the number of bytes of the unread portion of the buffer; b.Len() == len(b.Bytes()).
fflib/v1/buffer.go:106
↓ 5 callersMethodMarshalJSON
MarshalJSON func
tests/ff.go:1036
↓ 5 callersMethodMarshalJSON
MarshalJSON set ip to json
tests/goser/ff/goser.go:163
↓ 5 callersMethodMultiply
Multiply sets f to the product f*g: the result is correctly rounded, but not normalized.
fflib/v1/extfloat.go:235
↓ 5 callersMethodMultiply
Multiply sets f to the product f*g: the result is correctly rounded, but not normalized.
fflib/v1/internal/extfloat.go:235
↓ 5 callersMethodPos
()
fflib/v1/reader.go:47
↓ 5 callersMethodWrite
(buf []byte)
tests/ff_test.go:110
↓ 5 callersMethodWriteString
(s string)
fflib/v1/buffer.go:36
↓ 5 callersMethodhandleError
(err error)
inception/inception.go:123
↓ 5 callersFunctionmax
(a, b int)
fflib/v1/internal/ftoa.go:470
↓ 5 callersFunctionnewLogRecord
()
tests/ff_test.go:39
↓ 5 callersFunctionnewffReader
(d []byte)
fflib/v1/reader.go:35
↓ 5 callersFunctiontDouble
(t *testing.T, input string, target float64)
fflib/v1/lexer_test.go:210
↓ 5 callersMethodunreadByte
()
fflib/v1/lexer.go:186
↓ 4 callersMethodDeleteLast
DeleteLast will delete the last added write
inception/writerstack.go:16
↓ 4 callersMethodError
()
fflib/v1/lexer.go:139
↓ 4 callersMethodRound
Round a to nd digits (or fewer). If nd is zero, it means we're rounding just to the left of the digits, as in 0.09 -> 0.1.
fflib/v1/decimal.go:317
↓ 4 callersMethodRound
Round a to nd digits (or fewer). If nd is zero, it means we're rounding just to the left of the digits, as in 0.09 -> 0.1.
fflib/v1/internal/atof.go:875
↓ 4 callersMethodString
String returns the contents of the unread portion of the buffer as a string. If the Buffer is a nil pointer, it returns "<nil>".
fflib/v1/buffer.go:96
↓ 4 callersFunctionbuildTokens
(containsOptional bool, optional string, required ...string)
inception/decoder.go:297
↓ 4 callersMethodfloatBits
(flt *floatInfo)
fflib/v1/internal/atof.go:275
↓ 4 callersFunctiongetAllowTokens
(name string, tokens ...string)
inception/decoder.go:248
↓ 4 callersMethodgrow
grow grows the buffer to guarantee space for n more bytes. It returns the index where bytes should be written. If the buffer can't grow it will panic
fflib/v1/buffer.go:126
↓ 4 callersFunctionmakeSlice
makeSlice allocates a slice of size n -- it will attempt to use a pool'ed instance whenever possible.
fflib/v1/buffer_pool.go:93
↓ 4 callersFunctionmax
(a, b int)
fflib/v1/ftoa.go:455
↓ 4 callersFunctiontInt
(t *testing.T, input string, target int64)
fflib/v1/lexer_test.go:241
↓ 4 callersFunctiontrim
trim trailing zeros from number. (They are meaningless; the decimal point is tracked independent of the number of digits.)
fflib/v1/decimal.go:71
↓ 4 callersFunctiontrim
trim trailing zeros from number. (They are meaningless; the decimal point is tracked independent of the number of digits.)
fflib/v1/internal/atof.go:629
↓ 3 callersMethodAssign
Assign v to a.
fflib/v1/decimal.go:81
↓ 3 callersMethodAssign
Assign v to a.
fflib/v1/internal/atof.go:639
↓ 3 callersMethodExecute
()
inception/inception.go:128
↓ 3 callersFunctionPool
Send a buffer to the Pool to reuse for other instances. You may no longer utilize the content of the buffer, since it may be used by other goroutines.
fflib/v1/buffer_pool.go:67
↓ 3 callersMethodScan
()
fflib/v1/lexer.go:390
↓ 3 callersMethodShift
Binary shift left (k > 0) or right (k < 0).
fflib/v1/decimal.go:278
↓ 3 callersMethodUnmarshalJSONFFLexer
(l *fflib.FFLexer, state fflib.FFParseState)
ffjson/marshal.go:32
↓ 3 callersFunctionWriteJson
** * Function ported from encoding/json: func (e *encodeState) string(s string) (int, error) */
fflib/v1/jsonstring.go:48
↓ 3 callersFunctionbigFtoa
bigFtoa uses multiprecision computations to format a float.
fflib/v1/ftoa.go:148
↓ 3 callersFunctionbigFtoa
bigFtoa uses multiprecision computations to format a float.
fflib/v1/internal/ftoa.go:155
↓ 3 callersFunctiongetBaseData
(b fatalF)
tests/goser/goser_test.go:91
↓ 3 callersFunctiongetNumberHandler
(ic *Inception, name string, takeAddr bool, typ reflect.Type, parsefunc string)
inception/decoder.go:255
↓ 3 callersFunctionpoolNum
This returns the pool number that will give a buffer of at least 'i' bytes.
fflib/v1/buffer_pool.go:28
↓ 3 callersFunctionsyntaxError
(fn, str string)
fflib/v1/internal/atoi.go:47
↓ 3 callersFunctiontestTypeFuzzN
Fuzz test for N iterations
tests/fuzz_test.go:406
↓ 3 callersFunctiontypeInInception
(ic *Inception, typ reflect.Type, f shared.Feature)
inception/encoder.go:27
↓ 3 callersMethodwantBytes
(want []byte, iftrue FFTok)
fflib/v1/lexer.go:190
↓ 2 callersMethodAssignDecimal
AssignDecimal sets f to an approximate value mantissa*10^exp. It returns true if the value represented by f is guaranteed to be the best approximation
fflib/v1/internal/extfloat.go:262
↓ 2 callersMethodContains
Contains reports whether a comma-separated list of options contains a particular substr flag. substr must be surrounded by a string boundary or commas
inception/tags.go:43
↓ 2 callersMethodDecode
Decode the data in the supplied data slice.
ffjson/decoder.go:41
↓ 2 callersMethodEncode
(interface{})
fflib/v1/buffer.go:48
↓ 2 callersMethodEncodeFast
EncodeFast will unmarshal the data if fast marshall is available. This function can be used if you want to be sure the fast marshal is used or in test
ffjson/encoder.go:79
↓ 2 callersMethodGetQueued
GetQueued will return the current queued content without flushing.
inception/writerstack.go:60
↓ 2 callersMethodHasFeature
(f Feature)
shared/options.go:38
↓ 2 callersMethodMarshalJSONBuf
(buf fflib.EncodingBuffer)
ffjson/marshal.go:28
↓ 2 callersMethodPosWithLine
Calculates the Position with line and line offset, because this isn't counted for performance reasons, it will iterate the buffer from the beginning,
fflib/v1/reader.go:62
↓ 2 callersMethodReadByte
ReadByte reads and returns the next byte from the buffer. If no byte is available, it returns error io.EOF.
fflib/v1/buffer.go:334
↓ 2 callersMethodReset
Reset resets the buffer so it has no content. b.Reset() is the same as b.Truncate(0).
fflib/v1/buffer.go:121
↓ 2 callersMethodRoundDown
Round a down to nd digits (or fewer).
fflib/v1/decimal.go:329
↓ 2 callersMethodRoundDown
Round a down to nd digits (or fewer).
fflib/v1/internal/atof.go:887
↓ 2 callersMethodRoundUp
Round a up to nd digits (or fewer).
fflib/v1/decimal.go:338
↓ 2 callersMethodRoundUp
Round a up to nd digits (or fewer).
fflib/v1/internal/atof.go:896
↓ 2 callersMethodSlice
(start, stop int)
fflib/v1/reader.go:43
↓ 2 callersMethodToError
TODO(pquerna): return line number and offset.
fflib/v1/lexer.go:574
↓ 2 callersFunctionWriteJsonString
(buf JsonStringWriter, s string)
fflib/v1/jsonstring.go:41
↓ 2 callersMethodWriteRune
(r rune)
fflib/v1/buffer.go:32
next →1–100 of 575, ranked by callers