Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coderforlife/ms-compress
/ functions
Functions
127 in github.com/coderforlife/ms-compress
⨍
Functions
127
◇
Types & classes
35
↓ 24 callers
Function
_ptr
(buf, off=0)
test/compressors.py:40
↓ 14 callers
Function
_get_buf
(buf, default_size=10*1024*1024)
test/compressors.py:27
↓ 11 callers
Function
_prep
(f, args)
test/compressors.py:137
↓ 6 callers
Function
HashUpdate
include/mscomp/XpressDictionary.h:60
↓ 5 callers
Method
Fill
Fills the dictionary, ready to start a new chunk This should also be called before any Find
include/mscomp/LZNT1Dictionary.h:93
↓ 5 callers
Function
WindowPos
include/mscomp/XpressDictionary.h:54
↓ 4 callers
Method
Find
include/mscomp/LZNT1Dictionary.h:114
↓ 3 callers
Method
EncodeSymbol
include/mscomp/HuffmanEncoder.h:228
↓ 3 callers
Function
lznt1_decompress_chunk
////////////// Decompression Functions ///////////////////////////////////
src/lznt1_decompress.cpp:37
↓ 3 callers
Function
set_bits_are_highest
This function checks that a number is of the form 1..10..0 - basically all 1 bits are more significant than all 0 bits (also allowed are all 1s and al
src/xpress_decompress.cpp:41
↓ 2 callers
Method
Compress
(self, input, output_buf=None)
test/compressors.py:154
↓ 2 callers
Method
CreateCodes
include/mscomp/HuffmanEncoder.h:58
↓ 2 callers
Method
CreateCodesSlow
include/mscomp/HuffmanEncoder.h:129
↓ 2 callers
Method
DecodeSymbol
include/mscomp/HuffmanDecoder.h:93
↓ 2 callers
Method
Decompress
(self, input, output_buf=None)
test/compressors.py:160
↓ 2 callers
Function
GetMatchLength
include/mscomp/XpressDictionary.h:74
↓ 2 callers
Function
decompress
(fullpath, data, compressed, name1, compressor, name2)
test/test_accuracy.py:38
↓ 2 callers
Function
decompress_stream
(fullpath, data, compressed, name1, compressor, name2)
test/test_accuracy.py:49
↓ 2 callers
Function
lznt1_is_possible_stream_end
src/lznt1_decompress.cpp:225
↓ 2 callers
Function
merge_sort
T is either uint32_t or byte
include/mscomp/sorting.h:43
↓ 2 callers
Function
xh_calc_compressed_len
src/xpress_huff_compress.cpp:181
↓ 2 callers
Function
xh_calc_compressed_len_no_matching
src/xpress_huff_compress.cpp:189
↓ 2 callers
Function
xh_compress_encode
src/xpress_huff_compress.cpp:195
↓ 2 callers
Function
xh_compress_lz77
src/xpress_huff_compress.cpp:52
↓ 2 callers
Function
xh_compress_no_matching
src/xpress_huff_compress.cpp:155
↓ 1 callers
Method
CompressStream
(self, input, output, input_buf=None, output_buf=None)
test/compressors.py:338
↓ 1 callers
Method
DecodeSymbolFast
include/mscomp/HuffmanDecoder.h:105
↓ 1 callers
Method
DecompressStream
(self, input, output, input_buf=None, output_buf=None)
test/compressors.py:353
↓ 1 callers
Function
INFLATE_FAST
src/xpress_decompress.cpp:420
↓ 1 callers
Method
SetCodeLengths
include/mscomp/HuffmanDecoder.h:42
↓ 1 callers
Method
add
include/mscomp/LZNT1Dictionary.h:46
↓ 1 callers
Method
data
include/mscomp/Array.h:56
↓ 1 callers
Function
insertion_sort
T is either uint32_t or byte
include/mscomp/sorting.h:28
↓ 1 callers
Function
xpress_huff_decompress_chunk
///////////////////////// Decompression Functions /////////////////////////////////////////////
src/xpress_huff_decompress.cpp:39
Function
Add
include/mscomp/XpressDictionary.h:120
Method
Array
include/mscomp/Array.h:40
Method
Compress
Compress and return the input data. If output_buf is provided, it is used to store the output data temporarily (otherwise a buffer is
test/compressors.py:68
Method
Compress
(self, input, output_buf=None)
test/compressors.py:246
Method
Compress
(self, input, output_buf=None)
test/compressors.py:328
Method
Compress
(self, input, output_buf=None)
test/compressors.py:376
Method
CompressStream
Compresses the data from the file-like object input to the file-like object output. The input object must support the method readinto
test/compressors.py:92
Method
CompressStream
(self, input, output, input_buf=None, output_buf=None)
test/compressors.py:260
Method
Decompress
Decompress and return the input data. If output_buf is provided, it is used to store the output data temporarily (otherwise a buffer
test/compressors.py:76
Method
Decompress
(self, input, output_buf=None)
test/compressors.py:253
Method
Decompress
(self, input, output_buf=None)
test/compressors.py:333
Method
Decompress
(self, input, output_buf=None)
test/compressors.py:382
Method
DecompressStream
Decompresses the data from the file-like object input to the file-like object output. The input object must support the method readin
test/compressors.py:101
Method
DecompressStream
(self, input, output, input_buf=None, output_buf=None)
test/compressors.py:283
Function
FORCE_INLINE byte_swap
include/mscomp/internal.h:289
Function
FORCE_INLINE count_bits_set
include/mscomp/internal.h:232
Function
FORCE_INLINE count_leading_zeros
include/mscomp/internal.h:236
Function
FORCE_INLINE log2
include/mscomp/internal.h:240
Function
FORCE_INLINE rotl
include/mscomp/internal.h:227
Function
Fill
include/mscomp/XpressDictionary.h:104
Method
Fill
include/mscomp/LZNT1Dictionary_SA.h:407
Function
Find
include/mscomp/XpressDictionary.h:145
Method
Find
include/mscomp/LZNT1Dictionary_SA.h:428
Function
Finish
include/mscomp/Bitstream.h:143
Method
LMSsort
include/mscomp/LZNT1Dictionary_SA.h:56
Method
LZNT1Dictionary
include/mscomp/LZNT1Dictionary_SA.h:406
Method
LZNT1Dictionary
include/mscomp/LZNT1Dictionary.h:79
Function
MSCompStatus lznt1_compress
src/lznt1_compress.cpp:233
Function
MSCompStatus lznt1_decompress
NOTE: the "optimized" version is actually slower!
src/lznt1_decompress.cpp:293
Function
MSCompStatus ms_compress
src/mscomp.cpp:113
Function
MSCompStatus ms_decompress
src/mscomp.cpp:128
Function
MSCompStatus xpress_compress
src/xpress_compress.cpp:240
Function
MSCompStatus xpress_decompress
src/xpress_decompress.cpp:405
Function
MSCompStatus xpress_deflate
src/xpress_compress.cpp:75
Function
MSCompStatus xpress_huff_compress
src/xpress_huff_compress.cpp:247
Function
MSCompStatus xpress_huff_decompress
src/xpress_huff_decompress.cpp:136
Function
MaskIsZero
we can't do a single shift because if n is 0 then a shift by 32 is undefined Check if all pre-read bits are 0, essentially Peek(AvailableBits()) == 0
include/mscomp/Bitstream.h:58
Method
MaxCompressedSize
(self, input_len)
test/compressors.py:241
Function
Peek
Peeking Functions ///// Peek at the next n bits of the stream Assumption: n <= 16 && n <= this->bits
include/mscomp/Bitstream.h:55
Function
RawStream
include/mscomp/Bitstream.h:34
Function
ReadBits
Reading Functions ///// Read the next n bits of the stream, where n <= 16 (essentially Peek(n); Skip(n)) Assumption: n <= 16 && n <= this->bits
include/mscomp/Bitstream.h:93
Function
ReadBits_Fast
Fast Reading Functions ///// Equivalent to the reading functions but do not do bounds checks Read the next n bits of the stream, where n <= 16 (essent
include/mscomp/Bitstream.h:99
Function
ReadRawByte
Raw Reading Functions ///// Get the next integer from the underlying stream, not the pre-read bits. These assume that this->RemainingRawBytes() >= siz
include/mscomp/Bitstream.h:104
Function
ReadRawUInt16
include/mscomp/Bitstream.h:105
Function
ReadRawUInt32
include/mscomp/Bitstream.h:106
Function
RemainingRawBytes
Get the remaining number of raw bytes (disregards pre-read bits)
include/mscomp/Bitstream.h:50
Function
Skip
Skipping Functions ///// Skip the next n bits of the stream Assumption: n <= 16 && n <= this->bits
include/mscomp/Bitstream.h:63
Function
Skip_Fast
Skip the next n bits of the stream without bounds checks Assumption: n <= 16
include/mscomp/Bitstream.h:77
Function
WriteBits
include/mscomp/Bitstream.h:126
Function
WriteRawByte
include/mscomp/Bitstream.h:140
Function
WriteRawUInt16
include/mscomp/Bitstream.h:141
Function
WriteRawUInt32
include/mscomp/Bitstream.h:142
Method
__init__
(self, format, engine=CompressionEngine.Maximum)
test/compressors.py:146
Method
__init__
(self, format)
test/compressors.py:238
Method
__init__
(self, format)
test/compressors.py:325
Function
_errchk
(status, func, args)
test/compressors.py:133
Method
calc_lcp
LCP Array Construction ///// Creates the LCP (longest common prefix) array from the suffix array in O(n) time with 4n memory (~16kb). Uses the Phi alg
include/mscomp/LZNT1Dictionary_SA.h:361
Function
capacity
include/mscomp/CircularBuffer.h:46
Function
clear
include/mscomp/CircularBuffer.h:106
Function
copy
First we give some simple no-compression 'compression' functions
src/mscomp.cpp:26
Function
copy
include/mscomp/CircularBuffer.h:48
Function
copy_deflate
src/mscomp.cpp:35
Function
copy_inflate
src/mscomp.cpp:48
Function
copy_max_size
src/mscomp.cpp:33
Function
copy_xxflate_end
src/mscomp.cpp:61
Function
copy_xxflate_init
src/mscomp.cpp:34
next →
1–100 of 127, ranked by callers