Versions in this module Expand all Collapse all v0 v0.1.1 Apr 25, 2016 v0.1.0 Apr 12, 2016 Changes in this version + var ErrTooLarge = errors.New("fflib.v1.Buffer: too large") + func AppendFloat(dst EncodingBuffer, val float64, fmt byte, prec, bitSize int) + func AsciiEqualFold(s, t []byte) bool + func EqualFoldRight(s, t []byte) bool + func FormatBits(scratch *FormatBitsScratch, dst FormatBitsWriter, u uint64, base int, neg bool) + func FormatBits2(dst FormatBitsWriter, u uint64, base int, neg bool) + func ParseFloat(s []byte, bitSize int) (f float64, err error) + func ParseInt(s []byte, base int, bitSize int) (i int64, err error) + func ParseUint(s []byte, base int, bitSize int) (n uint64, err error) + func Pool(b []byte) + func SimpleLetterEqualFold(s, t []byte) bool + func UnquoteBytes(s []byte) (t []byte, ok bool) + func WriteJson(buf JsonStringWriter, s []byte) + func WriteJsonString(buf JsonStringWriter, s string) + type Buffer struct + func NewBuffer(buf []byte) *Buffer + func NewBufferString(s string) *Buffer + func (b *Buffer) Bytes() []byte + func (b *Buffer) Encode(v interface{}) error + func (b *Buffer) Grow(n int) + func (b *Buffer) Len() int + func (b *Buffer) Next(n int) []byte + func (b *Buffer) Read(p []byte) (n int, err error) + func (b *Buffer) ReadByte() (c byte, err error) + func (b *Buffer) ReadBytes(delim byte) (line []byte, err error) + func (b *Buffer) ReadFrom(r io.Reader) (n int64, err error) + func (b *Buffer) ReadRune() (r rune, size int, err error) + func (b *Buffer) ReadString(delim byte) (line string, err error) + func (b *Buffer) Reset() + func (b *Buffer) Rewind(n int) error + func (b *Buffer) String() string + func (b *Buffer) Truncate(n int) + func (b *Buffer) Write(p []byte) (n int, err error) + func (b *Buffer) WriteByte(c byte) error + func (b *Buffer) WriteRune(r rune) (n int, err error) + func (b *Buffer) WriteString(s string) (n int, err error) + func (b *Buffer) WriteTo(w io.Writer) (n int64, err error) + type DecodingBuffer interface + type EncodingBuffer interface + type FFErr int + const FFErr_e_ok + const FFErr_incomplete_comment + const FFErr_invalid_char + const FFErr_invalid_string + const FFErr_io + const FFErr_missing_integer_after_decimal + const FFErr_missing_integer_after_exponent + const FFErr_missing_integer_after_minus + const FFErr_string_invalid_escaped_char + const FFErr_string_invalid_hex_char + const FFErr_string_invalid_json_char + const FFErr_string_invalid_utf8 + const FFErr_unallowed_comment + const FFErr_unexpected_token_type + func (err FFErr) ToError() error + type FFLexer struct + BigError error + Error FFErr + Output DecodingBuffer + Token FFTok + func NewFFLexer(input []byte) *FFLexer + func (ffl *FFLexer) CaptureField(start FFTok) ([]byte, error) + func (ffl *FFLexer) Reset(input []byte) + func (ffl *FFLexer) Scan() FFTok + func (ffl *FFLexer) SkipField(start FFTok) error + func (ffl *FFLexer) WrapErr(err error) error + type FFParseState int + const FFParse_after_value + const FFParse_map_start + const FFParse_want_colon + const FFParse_want_key + const FFParse_want_value + func (state FFParseState) String() string + type FFTok int + const FFTok_bool + const FFTok_colon + const FFTok_comma + const FFTok_comment + const FFTok_double + const FFTok_eof + const FFTok_error + const FFTok_init + const FFTok_integer + const FFTok_left_brace + const FFTok_left_bracket + const FFTok_null + const FFTok_right_brace + const FFTok_right_bracket + const FFTok_string + func (tok FFTok) String() string + type FormatBitsScratch struct + type FormatBitsWriter interface + type JsonStringWriter interface + type LexerError struct + func (le *LexerError) Error() string