@@ -8,7 +8,7 @@ pub const compressed_block = types.compressed_block;
88const RingBuffer = @import ("zstandard/RingBuffer.zig" );
99pub const decompress = @import ("zstandard/decompress.zig" );
1010
11- pub fn ZstandardStream (
11+ pub fn Stream (
1212 comptime ReaderType : type ,
1313 comptime verify_checksum : bool ,
1414 comptime window_size_max : usize ,
@@ -232,19 +232,19 @@ pub fn ZstandardStream(
232232 };
233233}
234234
235- pub fn zstandardStream (
235+ pub fn stream (
236236 allocator : Allocator ,
237237 reader : anytype ,
238238 comptime window_size_max : usize ,
239- ) ZstandardStream (@TypeOf (reader ), true , window_size_max ) {
240- return ZstandardStream (@TypeOf (reader ), true , 8 * (1 << 20 )).init (allocator , reader );
239+ ) Stream (@TypeOf (reader ), true , window_size_max ) {
240+ return Stream (@TypeOf (reader ), true , 8 * (1 << 20 )).init (allocator , reader );
241241}
242242
243243fn testDecompress (data : []const u8 ) ! []u8 {
244244 var in_stream = std .io .fixedBufferStream (data );
245- var stream = zstandardStream (std .testing .allocator , in_stream .reader (), 1 << 23 );
246- defer stream .deinit ();
247- const result = stream .reader ().readAllAlloc (std .testing .allocator , std .math .maxInt (usize ));
245+ var zstd_stream = stream (std .testing .allocator , in_stream .reader (), 1 << 23 );
246+ defer zstd_stream .deinit ();
247+ const result = zstd_stream .reader ().readAllAlloc (std .testing .allocator , std .math .maxInt (usize ));
248248 return result ;
249249}
250250
0 commit comments