Skip to content

Commit dd31ee7

Browse files
committed
Reworked internals
1 parent 1afa0c4 commit dd31ee7

File tree

205 files changed

+6609
-15529
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+6609
-15529
lines changed

src/ZstdSharp/Unsafe/Arrays.cs

Lines changed: 0 additions & 574 deletions
This file was deleted.

src/ZstdSharp/Unsafe/BIT_CStream_t.cs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
1-
using System;
2-
31
namespace ZstdSharp.Unsafe
42
{
53
/*-******************************************
6-
* bitStream encoding API (write forward)
7-
********************************************/
4+
* bitStream encoding API (write forward)
5+
********************************************/
86
/* bitStream can mix input from multiple sources.
97
* A critical property of these streams is that they encode and decode in **reverse** direction.
108
* So the first bit sequence you add will be the last to be read, like a LIFO stack.
119
*/
12-
public unsafe partial struct BIT_CStream_t
10+
public unsafe struct BIT_CStream_t
1311
{
1412
public nuint bitContainer;
15-
1613
public uint bitPos;
17-
1814
public sbyte* startPtr;
19-
2015
public sbyte* ptr;
21-
2216
public sbyte* endPtr;
2317
}
24-
}
18+
}
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
using System;
2-
31
namespace ZstdSharp.Unsafe
42
{
53
public enum BIT_DStream_status
64
{
75
BIT_DStream_unfinished = 0,
86
BIT_DStream_endOfBuffer = 1,
97
BIT_DStream_completed = 2,
10-
BIT_DStream_overflow = 3,
8+
/* result of BIT_reloadDStream() */
9+
BIT_DStream_overflow = 3
1110
}
12-
}
11+
}

src/ZstdSharp/Unsafe/BIT_DStream_t.cs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
1-
using System;
2-
31
namespace ZstdSharp.Unsafe
42
{
53
/*-********************************************
6-
* bitStream decoding API (read backward)
7-
**********************************************/
8-
public unsafe partial struct BIT_DStream_t
4+
* bitStream decoding API (read backward)
5+
**********************************************/
6+
public unsafe struct BIT_DStream_t
97
{
108
public nuint bitContainer;
11-
129
public uint bitsConsumed;
13-
1410
public sbyte* ptr;
15-
1611
public sbyte* start;
17-
1812
public sbyte* limitPtr;
1913
}
20-
}
14+
}

0 commit comments

Comments
 (0)