MCPcopy Create free account

hub / github.com/golang/snappy / functions

Functions117 in github.com/golang/snappy

↓ 24 callersFunctionbenchFile
(b *testing.B, i int, decode bool)
snappy_test.go:1369
↓ 16 callersMethodWrite
(p []byte)
snappy_test.go:1181
↓ 12 callersFunctionbenchWords
(b *testing.B, n int, decode bool)
snappy_test.go:1267
↓ 10 callersFunctioncmp
(a, b []byte)
snappy_test.go:63
↓ 9 callersFunctionDecode
Decode returns the decoded form of src. The returned slice may be a sub- slice of dst if dst was large enough to hold the entire decoded block. Otherw
decode.go:57
↓ 9 callersMethodFlush
Flush flushes the Writer to its underlying io.Writer.
encode.go:269
↓ 9 callersFunctionNewReader
NewReader returns a new Reader that decompresses from r, using the framing format described at https://github.com/google/snappy/blob/master/framing_fo
decode.go:79
↓ 8 callersMethodClose
Close calls Flush and then closes the Writer.
encode.go:282
↓ 8 callersFunctionEncode
Encode returns the encoded form of src. The returned slice may be a sub- slice of dst if dst was large enough to hold the entire encoded block. Otherw
encode.go:20
↓ 7 callersFunctionNewBufferedWriter
NewBufferedWriter returns a new Writer that compresses to w, using the framing format described at https://github.com/google/snappy/blob/master/framin
encode.go:135
↓ 6 callersMethodreadFull
(p []byte, allowEOF bool)
decode.go:111
↓ 5 callersFunctionhash
(u, shift uint32)
encode_other.go:101
↓ 5 callersFunctionload32
(b []byte, i int)
encode_other.go:9
↓ 4 callersMethodWrite
Write satisfies the io.Writer interface.
encode.go:176
↓ 4 callersFunctionroundtrip
(b, ebuf, dbuf []byte)
snappy_test.go:78
↓ 3 callersFunctionMaxEncodedLen
MaxEncodedLen returns the maximum length of a snappy block, given its uncompressed length. It will return a negative value if srcLen is too large to
encode.go:78
↓ 3 callersFunctionNewWriter
NewWriter returns a new Writer that compresses to w. The Writer returned does not buffer writes. There is no need to Flush or Close such a Writer. D
encode.go:121
↓ 3 callersFunctionbenchEncode
(b *testing.B, src []byte)
snappy_test.go:1229
↓ 3 callersFunctioncrc
crc implements the checksum specified in section 3 of https://github.com/google/snappy/blob/master/framing_format.txt
snappy.go:95
↓ 3 callersFunctionextendMatch
extendMatch has the same semantics as in encode_other.go. go:noescape
encode_asm.go:25
↓ 3 callersFunctionreadFile
(b testing.TB, filename string)
snappy_test.go:1246
↓ 3 callersMethodwrite
(p []byte)
encode.go:211
↓ 2 callersFunctionDecodedLen
DecodedLen returns the length of the decoded block.
decode.go:25
↓ 2 callersMethodReset
Reset discards the writer's state and switches the Snappy writer to write to w. This permits reusing a Writer rather than allocating a new one.
encode.go:166
↓ 2 callersMethodReset
Reset discards any buffered data, resets all state, and switches the Snappy reader to read from r. This permits reusing a Reader rather than allocatin
decode.go:103
↓ 2 callersFunctionbenchDecode
(b *testing.B, src []byte)
snappy_test.go:1219
↓ 2 callersFunctiondecodedLen
decodedLen returns the length of the decoded block and the number of bytes that the length header occupied.
decode.go:32
↓ 2 callersFunctiondownloadBenchmarkFiles
(b testing.TB, basename string)
snappy_test.go:1327
↓ 2 callersFunctionemitLiteral
emitLiteral has the same semantics as in encode_other.go. go:noescape
encode_asm.go:15
↓ 2 callersFunctionemitLiteral
emitLiteral writes a literal chunk and returns the number of bytes written. It assumes that: dst is long enough to hold the encoded bytes 1 <= len(
encode_other.go:25
↓ 2 callersMethodfill
()
decode.go:121
↓ 2 callersFunctionrunTestSameEncodingAsCpp
(src []byte)
snappy_test.go:600
↓ 2 callersFunctionskipTestSameEncodingAsCpp
()
snappy_test.go:590
↓ 2 callersFunctiontestOrBenchmark
(b testing.TB)
snappy_test.go:1239
↓ 1 callersMethodRead
Read satisfies the io.Reader interface.
decode.go:237
↓ 1 callersMethodReadByte
ReadByte satisfies the io.ByteReader interface.
decode.go:252
↓ 1 callersFunctiondecode
decode has the same semantics as in decode_other.go. go:noescape
decode_asm.go:15
↓ 1 callersFunctionemitCopy
emitCopy has the same semantics as in encode_other.go. go:noescape
encode_asm.go:20
↓ 1 callersFunctionemitCopy
emitCopy writes a copy chunk and returns the number of bytes written. It assumes that: dst is long enough to hold the encoded bytes 1 <= offset &&
encode_other.go:50
↓ 1 callersFunctionencodeBlock
encodeBlock has the same semantics as in encode_other.go. go:noescape
encode_asm.go:30
↓ 1 callersFunctionexpand
expand returns a slice of length n containing repeated copies of src.
snappy_test.go:1258
↓ 1 callersFunctionload64
(b []byte, i int)
encode_other.go:14
↓ 1 callersFunctionrun
()
cmd/snappytool/main.go:17
FunctionBenchmarkExtendMatch
(b *testing.B)
snappy_test.go:1411
FunctionBenchmarkRandomEncode
(b *testing.B)
snappy_test.go:1291
FunctionBenchmarkWordsDecode1e1
(b *testing.B)
snappy_test.go:1278
FunctionBenchmarkWordsDecode1e2
(b *testing.B)
snappy_test.go:1279
FunctionBenchmarkWordsDecode1e3
(b *testing.B)
snappy_test.go:1280
FunctionBenchmarkWordsDecode1e4
(b *testing.B)
snappy_test.go:1281
FunctionBenchmarkWordsDecode1e5
(b *testing.B)
snappy_test.go:1282
FunctionBenchmarkWordsDecode1e6
(b *testing.B)
snappy_test.go:1283
FunctionBenchmarkWordsEncode1e1
(b *testing.B)
snappy_test.go:1284
FunctionBenchmarkWordsEncode1e2
(b *testing.B)
snappy_test.go:1285
FunctionBenchmarkWordsEncode1e3
(b *testing.B)
snappy_test.go:1286
FunctionBenchmarkWordsEncode1e4
(b *testing.B)
snappy_test.go:1287
FunctionBenchmarkWordsEncode1e5
(b *testing.B)
snappy_test.go:1288
FunctionBenchmarkWordsEncode1e6
(b *testing.B)
snappy_test.go:1289
FunctionBenchmark_UFlat0
Naming convention is kept similar to what snappy's C++ implementation uses.
snappy_test.go:1386
FunctionBenchmark_UFlat1
(b *testing.B)
snappy_test.go:1387
FunctionBenchmark_UFlat10
(b *testing.B)
snappy_test.go:1396
FunctionBenchmark_UFlat11
(b *testing.B)
snappy_test.go:1397
FunctionBenchmark_UFlat2
(b *testing.B)
snappy_test.go:1388
FunctionBenchmark_UFlat3
(b *testing.B)
snappy_test.go:1389
FunctionBenchmark_UFlat4
(b *testing.B)
snappy_test.go:1390
FunctionBenchmark_UFlat5
(b *testing.B)
snappy_test.go:1391
FunctionBenchmark_UFlat6
(b *testing.B)
snappy_test.go:1392
FunctionBenchmark_UFlat7
(b *testing.B)
snappy_test.go:1393
FunctionBenchmark_UFlat8
(b *testing.B)
snappy_test.go:1394
FunctionBenchmark_UFlat9
(b *testing.B)
snappy_test.go:1395
FunctionBenchmark_ZFlat0
(b *testing.B)
snappy_test.go:1398
FunctionBenchmark_ZFlat1
(b *testing.B)
snappy_test.go:1399
FunctionBenchmark_ZFlat10
(b *testing.B)
snappy_test.go:1408
FunctionBenchmark_ZFlat11
(b *testing.B)
snappy_test.go:1409
FunctionBenchmark_ZFlat2
(b *testing.B)
snappy_test.go:1400
FunctionBenchmark_ZFlat3
(b *testing.B)
snappy_test.go:1401
FunctionBenchmark_ZFlat4
(b *testing.B)
snappy_test.go:1402
FunctionBenchmark_ZFlat5
(b *testing.B)
snappy_test.go:1403
FunctionBenchmark_ZFlat6
(b *testing.B)
snappy_test.go:1404
FunctionBenchmark_ZFlat7
(b *testing.B)
snappy_test.go:1405
FunctionBenchmark_ZFlat8
(b *testing.B)
snappy_test.go:1406
FunctionBenchmark_ZFlat9
(b *testing.B)
snappy_test.go:1407
FunctionTestDecode
(t *testing.T)
snappy_test.go:162
FunctionTestDecodeCopy4
(t *testing.T)
snappy_test.go:382
FunctionTestDecodeGoldenInput
(t *testing.T)
snappy_test.go:509
FunctionTestDecodeLengthOffset
TestDecodeLengthOffset tests decoding an encoding of the form literal + copy-length-offset + literal. For example: "abcdefghijkl" + "efghij" + "AB".
snappy_test.go:412
FunctionTestEmitCopy
(t *testing.T)
snappy_test.go:834
FunctionTestEmitLiteral
(t *testing.T)
snappy_test.go:797
FunctionTestEmpty
(t *testing.T)
snappy_test.go:89
FunctionTestEncodeGoldenInput
(t *testing.T)
snappy_test.go:528
FunctionTestEncodeNoiseThenRepeats
TestEncodeNoiseThenRepeats encodes input for which the first half is very incompressible and the second half is very compressible. The encoded form's
snappy_test.go:698
FunctionTestExtendMatch
(t *testing.T)
snappy_test.go:559
FunctionTestExtendMatchGoldenInput
(t *testing.T)
snappy_test.go:544
FunctionTestFlush
(t *testing.T)
snappy_test.go:945
FunctionTestFramingFormat
(t *testing.T)
snappy_test.go:716
FunctionTestInvalidVarint
(t *testing.T)
snappy_test.go:133
FunctionTestMaxEncodedLenOfMaxBlockSize
(t *testing.T)
snappy_test.go:55
FunctionTestNewBufferedWriter
(t *testing.T)
snappy_test.go:902
FunctionTestNumUnderlyingWrites
TestNumUnderlyingWrites tests that each Writer flush only makes one or two Write calls on its underlying io.Writer, depending on whether or not the fl
snappy_test.go:1189
FunctionTestReaderReadByte
(t *testing.T)
snappy_test.go:1040
FunctionTestReaderReset
(t *testing.T)
snappy_test.go:1002
next →1–100 of 117, ranked by callers