Source File
encodeblock_amd64.go
Belonging Package
github.com/klauspost/compress/s2
// Code generated by command: go run gen.go -out ../encodeblock_amd64.s -stubs ../encodeblock_amd64.go -pkg=s2. DO NOT EDIT.//go:build !appengine && !noasm && gc && !noasmpackage s2func _dummy_()// encodeBlockAsm encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 4294967295 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeBlockAsm( []byte, []byte, *[65536]byte) int// encodeBlockAsm4MB encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 4194304 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeBlockAsm4MB( []byte, []byte, *[65536]byte) int// encodeBlockAsm12B encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 16383 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeBlockAsm12B( []byte, []byte, *[16384]byte) int// encodeBlockAsm10B encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 4095 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeBlockAsm10B( []byte, []byte, *[4096]byte) int// encodeBlockAsm8B encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 511 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeBlockAsm8B( []byte, []byte, *[1024]byte) int// encodeBetterBlockAsm encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 4294967295 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeBetterBlockAsm( []byte, []byte, *[589824]byte) int// encodeBetterBlockAsm4MB encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 4194304 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeBetterBlockAsm4MB( []byte, []byte, *[589824]byte) int// encodeBetterBlockAsm12B encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 16383 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeBetterBlockAsm12B( []byte, []byte, *[81920]byte) int// encodeBetterBlockAsm10B encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 4095 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeBetterBlockAsm10B( []byte, []byte, *[20480]byte) int// encodeBetterBlockAsm8B encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 511 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeBetterBlockAsm8B( []byte, []byte, *[5120]byte) int// encodeSnappyBlockAsm encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 4294967295 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeSnappyBlockAsm( []byte, []byte, *[65536]byte) int// encodeSnappyBlockAsm64K encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 65535 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeSnappyBlockAsm64K( []byte, []byte, *[65536]byte) int// encodeSnappyBlockAsm12B encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 16383 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeSnappyBlockAsm12B( []byte, []byte, *[16384]byte) int// encodeSnappyBlockAsm10B encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 4095 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeSnappyBlockAsm10B( []byte, []byte, *[4096]byte) int// encodeSnappyBlockAsm8B encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 511 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeSnappyBlockAsm8B( []byte, []byte, *[1024]byte) int// encodeSnappyBetterBlockAsm encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 4294967295 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeSnappyBetterBlockAsm( []byte, []byte, *[589824]byte) int// encodeSnappyBetterBlockAsm64K encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 65535 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeSnappyBetterBlockAsm64K( []byte, []byte, *[294912]byte) int// encodeSnappyBetterBlockAsm12B encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 16383 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeSnappyBetterBlockAsm12B( []byte, []byte, *[81920]byte) int// encodeSnappyBetterBlockAsm10B encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 4095 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeSnappyBetterBlockAsm10B( []byte, []byte, *[20480]byte) int// encodeSnappyBetterBlockAsm8B encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 511 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc encodeSnappyBetterBlockAsm8B( []byte, []byte, *[5120]byte) int// calcBlockSize encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 4294967295 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc calcBlockSize( []byte, *[32768]byte) int// calcBlockSizeSmall encodes a non-empty src to a guaranteed-large-enough dst.// Maximum input 1024 bytes.// It assumes that the varint-encoded length of the decompressed bytes has already been written.////go:noescapefunc calcBlockSizeSmall( []byte, *[2048]byte) int// emitLiteral writes a literal chunk and returns the number of bytes written.//// It assumes that://// dst is long enough to hold the encoded bytes with margin of 0 bytes// 0 <= len(lit) && len(lit) <= math.MaxUint32////go:noescapefunc emitLiteral( []byte, []byte) int// emitRepeat writes a repeat chunk and returns the number of bytes written.// Length must be at least 4 and < 1<<32////go:noescapefunc emitRepeat( []byte, int, int) int// 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 && offset <= math.MaxUint32// 4 <= length && length <= 1 << 24////go:noescapefunc emitCopy( []byte, int, int) int// emitCopyNoRepeat 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 && offset <= math.MaxUint32// 4 <= length && length <= 1 << 24////go:noescapefunc emitCopyNoRepeat( []byte, int, int) int// matchLen returns how many bytes match in a and b//// It assumes that://// len(a) <= len(b)////go:noescapefunc matchLen( []byte, []byte) int// cvtLZ4Block converts an LZ4 block to S2////go:noescapefunc cvtLZ4BlockAsm( []byte, []byte) ( int, int)// cvtLZ4sBlock converts an LZ4s block to S2////go:noescapefunc cvtLZ4sBlockAsm( []byte, []byte) ( int, int)// cvtLZ4Block converts an LZ4 block to Snappy////go:noescapefunc cvtLZ4BlockSnappyAsm( []byte, []byte) ( int, int)// cvtLZ4sBlock converts an LZ4s block to Snappy////go:noescapefunc cvtLZ4sBlockSnappyAsm( []byte, []byte) ( int, int)
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |