Skip to content

Commit 7e7e73d

Browse files
committed
update changes
1 parent 15f410b commit 7e7e73d

File tree

5 files changed

+55
-39
lines changed

5 files changed

+55
-39
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# 5.3.0
2+
3+
## New features
4+
- AOT and trimming compatibility
5+
- Base2, Base8, and Base10 support
6+
7+
## Improvements
8+
- `Base58` now uses `DividingCoder` under the hood for less code duplication
9+
- Several implementations now take bytesWritten into account when returning buffers, reducing the possibility of returning a buffer larger than necessary.
10+
111
# 5.2.0
212

313
## New features

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ math worked.
1313
Features
1414
--------
1515
- [Multibase](https://github.com/multiformats/multibase) support. All formats
16-
covered by SimpleBase including a few Base64 variants are supported.
16+
covered by SimpleBase including a few Base64 variants are supported. Base2, Base8, and Base10 are also supported.
1717
- **Base32**: RFC 4648, BECH32, Crockford, z-base-32, Geohash, FileCoin and Extended Hex
1818
(BASE32-HEX) flavors with Crockford character substitution, or any other
1919
custom flavors.

src/PublicAPI.Shipped.txt

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,4 +230,39 @@ static SimpleBase.Base256Emoji.Default.get -> SimpleBase.Base256Emoji!
230230
static SimpleBase.Base36.LowerCase.get -> SimpleBase.Base36!
231231
static SimpleBase.Base36.UpperCase.get -> SimpleBase.Base36!
232232
static SimpleBase.Base36Alphabet.Lower.get -> SimpleBase.Base36Alphabet!
233-
static SimpleBase.Base36Alphabet.Upper.get -> SimpleBase.Base36Alphabet!
233+
static SimpleBase.Base36Alphabet.Upper.get -> SimpleBase.Base36Alphabet!
234+
SimpleBase.Base10
235+
SimpleBase.Base10.Base10(SimpleBase.Base10Alphabet! alphabet) -> void
236+
SimpleBase.Base10Alphabet
237+
SimpleBase.Base10Alphabet.Base10Alphabet(string! alphabet) -> void
238+
SimpleBase.Base2
239+
SimpleBase.Base2.Base2() -> void
240+
SimpleBase.Base2.Decode(System.IO.TextReader! input, System.IO.Stream! output) -> void
241+
SimpleBase.Base2.Decode(System.ReadOnlySpan<char> text) -> byte[]!
242+
SimpleBase.Base2.DecodeAsync(System.IO.TextReader! input, System.IO.Stream! output) -> System.Threading.Tasks.Task!
243+
SimpleBase.Base2.Encode(System.IO.Stream! input, System.IO.TextWriter! output) -> void
244+
SimpleBase.Base2.Encode(System.ReadOnlySpan<byte> bytes) -> string!
245+
SimpleBase.Base2.EncodeAsync(System.IO.Stream! input, System.IO.TextWriter! output) -> System.Threading.Tasks.Task!
246+
SimpleBase.Base2.GetSafeByteCountForDecoding(System.ReadOnlySpan<char> text) -> int
247+
SimpleBase.Base2.GetSafeCharCountForEncoding(System.ReadOnlySpan<byte> buffer) -> int
248+
SimpleBase.Base2.TryDecode(System.ReadOnlySpan<char> input, System.Span<byte> output, out int bytesWritten) -> bool
249+
SimpleBase.Base2.TryEncode(System.ReadOnlySpan<byte> input, System.Span<char> output, out int numCharsWritten) -> bool
250+
SimpleBase.Base8
251+
SimpleBase.Base8.Base8() -> void
252+
SimpleBase.Base8.Decode(System.IO.TextReader! input, System.IO.Stream! output) -> void
253+
SimpleBase.Base8.Decode(System.ReadOnlySpan<char> text) -> byte[]!
254+
SimpleBase.Base8.DecodeAsync(System.IO.TextReader! input, System.IO.Stream! output) -> System.Threading.Tasks.Task!
255+
SimpleBase.Base8.Encode(System.IO.Stream! input, System.IO.TextWriter! output) -> void
256+
SimpleBase.Base8.Encode(System.ReadOnlySpan<byte> bytes) -> string!
257+
SimpleBase.Base8.EncodeAsync(System.IO.Stream! input, System.IO.TextWriter! output) -> System.Threading.Tasks.Task!
258+
SimpleBase.Base8.GetSafeByteCountForDecoding(System.ReadOnlySpan<char> text) -> int
259+
SimpleBase.Base8.GetSafeCharCountForEncoding(System.ReadOnlySpan<byte> buffer) -> int
260+
SimpleBase.Base8.TryDecode(System.ReadOnlySpan<char> input, System.Span<byte> output, out int bytesWritten) -> bool
261+
SimpleBase.Base8.TryEncode(System.ReadOnlySpan<byte> input, System.Span<char> output, out int numCharsWritten) -> bool
262+
SimpleBase.MultibaseEncoding.Base10 = 57 -> SimpleBase.MultibaseEncoding
263+
SimpleBase.MultibaseEncoding.Base2 = 48 -> SimpleBase.MultibaseEncoding
264+
SimpleBase.MultibaseEncoding.Base8 = 55 -> SimpleBase.MultibaseEncoding
265+
static SimpleBase.Base10.Default.get -> SimpleBase.Base10!
266+
static SimpleBase.Base10Alphabet.Default.get -> SimpleBase.Base10Alphabet!
267+
static SimpleBase.Base2.Default.get -> SimpleBase.Base2!
268+
static SimpleBase.Base8.Default.get -> SimpleBase.Base8!

src/PublicAPI.Unshipped.txt

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1 @@
1-
SimpleBase.Base10
2-
SimpleBase.Base10.Base10(SimpleBase.Base10Alphabet! alphabet) -> void
3-
SimpleBase.Base10Alphabet
4-
SimpleBase.Base10Alphabet.Base10Alphabet(string! alphabet) -> void
5-
SimpleBase.Base2
6-
SimpleBase.Base2.Base2() -> void
7-
SimpleBase.Base2.Decode(System.IO.TextReader! input, System.IO.Stream! output) -> void
8-
SimpleBase.Base2.Decode(System.ReadOnlySpan<char> text) -> byte[]!
9-
SimpleBase.Base2.DecodeAsync(System.IO.TextReader! input, System.IO.Stream! output) -> System.Threading.Tasks.Task!
10-
SimpleBase.Base2.Encode(System.IO.Stream! input, System.IO.TextWriter! output) -> void
11-
SimpleBase.Base2.Encode(System.ReadOnlySpan<byte> bytes) -> string!
12-
SimpleBase.Base2.EncodeAsync(System.IO.Stream! input, System.IO.TextWriter! output) -> System.Threading.Tasks.Task!
13-
SimpleBase.Base2.GetSafeByteCountForDecoding(System.ReadOnlySpan<char> text) -> int
14-
SimpleBase.Base2.GetSafeCharCountForEncoding(System.ReadOnlySpan<byte> buffer) -> int
15-
SimpleBase.Base2.TryDecode(System.ReadOnlySpan<char> input, System.Span<byte> output, out int bytesWritten) -> bool
16-
SimpleBase.Base2.TryEncode(System.ReadOnlySpan<byte> input, System.Span<char> output, out int numCharsWritten) -> bool
17-
SimpleBase.Base8
18-
SimpleBase.Base8.Base8() -> void
19-
SimpleBase.Base8.Decode(System.IO.TextReader! input, System.IO.Stream! output) -> void
20-
SimpleBase.Base8.Decode(System.ReadOnlySpan<char> text) -> byte[]!
21-
SimpleBase.Base8.DecodeAsync(System.IO.TextReader! input, System.IO.Stream! output) -> System.Threading.Tasks.Task!
22-
SimpleBase.Base8.Encode(System.IO.Stream! input, System.IO.TextWriter! output) -> void
23-
SimpleBase.Base8.Encode(System.ReadOnlySpan<byte> bytes) -> string!
24-
SimpleBase.Base8.EncodeAsync(System.IO.Stream! input, System.IO.TextWriter! output) -> System.Threading.Tasks.Task!
25-
SimpleBase.Base8.GetSafeByteCountForDecoding(System.ReadOnlySpan<char> text) -> int
26-
SimpleBase.Base8.GetSafeCharCountForEncoding(System.ReadOnlySpan<byte> buffer) -> int
27-
SimpleBase.Base8.TryDecode(System.ReadOnlySpan<char> input, System.Span<byte> output, out int bytesWritten) -> bool
28-
SimpleBase.Base8.TryEncode(System.ReadOnlySpan<byte> input, System.Span<char> output, out int numCharsWritten) -> bool
29-
SimpleBase.MultibaseEncoding.Base10 = 57 -> SimpleBase.MultibaseEncoding
30-
SimpleBase.MultibaseEncoding.Base2 = 48 -> SimpleBase.MultibaseEncoding
31-
SimpleBase.MultibaseEncoding.Base8 = 55 -> SimpleBase.MultibaseEncoding
32-
static SimpleBase.Base10.Default.get -> SimpleBase.Base10!
33-
static SimpleBase.Base10Alphabet.Default.get -> SimpleBase.Base10Alphabet!
34-
static SimpleBase.Base2.Default.get -> SimpleBase.Base2!
35-
static SimpleBase.Base8.Default.get -> SimpleBase.Base8!
1+


src/SimpleBase.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<AssemblyOriginatorKeyFile>..\SimpleBase.snk</AssemblyOriginatorKeyFile>
1313
<DelaySign>false</DelaySign>
1414

15-
<PackageVersion>5.2.0</PackageVersion>
15+
<PackageVersion>5.3.0</PackageVersion>
1616
<DocumentationFile>SimpleBase.xml</DocumentationFile>
1717
<PackageProjectUrl>https://github.com/ssg/SimpleBase</PackageProjectUrl>
1818
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
@@ -25,7 +25,12 @@
2525
<PackageReleaseNotes>
2626
<![CDATA[
2727
## New features
28-
- Multibase support for Base36 (upper and lower)
28+
- AOT and trimming compatibility
29+
- Base2, Base8, and Base10 support
30+
31+
## Improvements
32+
- `Base58` now uses `DividingCoder` under the hood for less code duplication
33+
- Several implementations now take bytesWritten into account when returning buffers, reducing the possibility of returning a buffer larger than necessary.
2934
]]>
3035
</PackageReleaseNotes>
3136
</PropertyGroup>

0 commit comments

Comments
 (0)