0xd4d / dnlib

Reads and writes .NET assemblies and modules
MIT License
2.14k stars 583 forks source link

Add additional read methods to `DataStream` to allow further customization of `DataReader` behavior #512

Closed ElektroKill closed 1 year ago

ElektroKill commented 1 year ago

Added methods for signed integers, bool, char, and decimal.

The methods for bool and char contain a note in the documentation about the length of the data that should be read. The code for reading a decimal was modified to remove an unnecessary array allocation every time a decimal was being read.

fixes https://github.com/0xd4d/dnlib/issues/509