mlugg
51595d6b75
lib: correct unnecessary uses of 'var'
2023-11-19 09:55:07 +00:00
Andrew Kelley
3fc6fc6812
std.builtin.Endian: make the tags lower case
...
Let's take this breaking change opportunity to fix the style of this
enum.
2023-10-31 21:37:35 -04:00
Jacob Young
d890e81761
mem: fix ub in writeInt
...
Use inline to vastly simplify the exposed API. This allows a
comptime-known endian parameter to be propogated, making extra functions
for a specific endianness completely unnecessary.
2023-10-31 21:37:35 -04:00
mlugg
f26dda2117
all: migrate code to new cast builtin syntax
...
Most of this migration was performed automatically with `zig fmt`. There
were a few exceptions which I had to manually fix:
* `@alignCast` and `@addrSpaceCast` cannot be automatically rewritten
* `@truncate`'s fixup is incorrect for vectors
* Test cases are not formatted, and their error locations change
2023-06-24 16:56:39 -07:00
dweiller
32cf1d7cbf
std.compress.zstandard: fix error sets for streaming API
2023-02-21 22:06:25 +11:00
dweiller
c7c35bf9e6
std.RingBuffer: add (non-concurrent) RingBuffer implementation
2023-02-21 12:58:34 +11:00
dweiller
1a862175d5
std.compress.zstandard: fix zstandardStream content size validation
2023-02-20 09:09:06 +11:00
dweiller
ee5af3c74c
std.compress.zstandard: cleanup high-level api docs and error sets
2023-02-20 09:09:06 +11:00
dweiller
55e6e9409c
std.compress.zstandard: fix content size check
2023-02-20 09:09:06 +11:00
dweiller
6d48b055af
std.compress.zstandard: add decodeFrameHeader
...
Also do some other minor API cleanup
2023-02-20 09:09:06 +11:00
dweiller
77ca1f7859
std.compress.zstandard: remove UnusedBitSet error
2023-02-20 09:09:06 +11:00
dweiller
d9a90e1818
std.compress.zstandard: fix decodeAlloc() and remove decodeFrameAlloc()
2023-02-20 09:09:06 +11:00
dweiller
2134769436
std.compress.zstandard: validate skippable frame size
2023-02-20 09:09:06 +11:00
dweiller
98bbd959b0
std.compress.zstandard: improve block size validation
2023-02-20 09:09:06 +11:00
dweiller
ece52e0771
std.compress.zstandard: verify content size and fix crash
2023-02-20 09:09:06 +11:00
dweiller
06ab5a2cd2
std.compress.zstandard: add multi-frame decoding functions
2023-02-20 09:09:06 +11:00
dweiller
596a97fb55
std.compress.zstandard: fix crashes
2023-02-20 09:09:06 +11:00
dweiller
a651704876
std.compress.zstandard: free allocated result on error
2023-02-20 09:09:06 +11:00
dweiller
3f1c4306ca
std.compress.zstandard: fix capitalisation of Zstandard
2023-02-20 09:09:06 +11:00
dweiller
ddeabc9aa7
std.compress.zstandard: add decodeFrameAlloc()
2023-02-20 09:09:06 +11:00
dweiller
89f9c5cb37
std.compress.zstandard: improve doc comments
2023-02-20 09:09:06 +11:00
dweiller
7e2755646f
std.compress.zstandard: split decompressor into multiple files
2023-02-20 09:09:06 +11:00
dweiller
6e3e72884b
std.compress.zstandard: fix crashes
2023-02-20 09:09:06 +11:00
dweiller
5723291444
std.compress.zstandard: add decodeBlockReader
2023-02-20 09:09:06 +11:00
dweiller
947ad3e268
std.compress.zstandard: add FrameContext and add literals into DecodeState
2023-02-20 09:09:06 +11:00
dweiller
e92575d3d4
std.compress.zstandard: verify checksum in decodeFrameAlloc()
2023-02-20 09:09:06 +11:00
dweiller
3bfba36548
std.compress.zstandard: clean up error sets and line lengths
2023-02-20 09:09:06 +11:00
dweiller
1e5b8be509
std.compress.zstandard: add window size limit param
2023-02-20 09:09:06 +11:00
dweiller
e2306ef0a0
std.compress.zstandard: add integer casts u64 -> usize
2023-02-20 09:09:06 +11:00
dweiller
7558bf6451
std.compress.zstandard: minor cleanup and add doc comments
2023-02-20 09:09:06 +11:00
dweiller
ab18adf5c3
std.compress.zstandard: remove debug logging
2023-02-20 09:09:06 +11:00
dweiller
d40b135e95
std.compress.zstandard: properly track consumed count in decodeFrameBlocks
2023-02-20 09:09:06 +11:00
dweiller
774e2f5a5c
std.compress.zstandard: add input length safety checks
2023-02-20 09:09:06 +11:00
dweiller
31d1cae8c6
std.compress.zstandard: validate fse table value count
2023-02-20 09:09:06 +11:00
dweiller
95953e1ee6
std.compress.zstandard: fix dictionary field size
2023-02-20 09:09:06 +11:00
dweiller
6b85373875
std.compress.zstandard: validate sequence lengths
2023-02-20 09:09:06 +11:00
dweiller
082acd7f17
std.compress.zstandard: clean up integer casts
2023-02-20 09:09:06 +11:00
dweiller
fc64c279a4
std.compress.zstandard: clean up api
2023-02-20 09:09:06 +11:00
dweiller
cbfaa876d4
std.compress.zstandard: cleanup ReverseBitReader
2023-02-20 09:09:05 +11:00
dweiller
c819e58c20
std.compress.zstandard: add decodeZStandardFrameAlloc
...
This is a convenience wrapper - best to use `decodeZStandardFrame()` if
the content size is known, or directly use `decodeBlockRingBuffer()`.
2023-02-20 09:09:05 +11:00
dweiller
05e63f241e
std.compress.zstandard: add functions decoding into ring buffer
...
This supports decoding frames that do not declare the content size or
decoding in a streaming fashion.
2023-02-20 09:09:05 +11:00
dweiller
18091723d5
std.compress.zstandard: cleanup decodeBlock
2023-02-20 09:09:05 +11:00
dweiller
61cb514387
std.compress: add zstandard decompressor
2023-02-20 09:09:05 +11:00