-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dataset processing, allow only conversion
- Loading branch information
Showing
14 changed files
with
257 additions
and
452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Text.Json; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace VDFParse.Cli; | ||
|
||
public class BytesToBase64JsonConverter : JsonConverter<byte[]> | ||
{ | ||
public override byte[] Read(ref Utf8JsonReader reader, | ||
Type typeToConvert, JsonSerializerOptions options) | ||
{ | ||
return reader.GetBytesFromBase64(); | ||
} | ||
|
||
|
||
public override void Write(Utf8JsonWriter writer, | ||
byte[] value, JsonSerializerOptions options) | ||
{ | ||
writer.WriteBase64StringValue(value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.