Commit Graph

68 Commits

Author SHA1 Message Date
Mikhail Yakshin d8d5e251ad Merge branch 'master' of https://github.com/kaitai-io/kaitai_struct_csharp_runtime 2019-04-17 15:25:52 +01:00
Mikhail Yakshin f8ead93c5a Fixed problem demonstrated by RepeatEosBit test + bumped copyrights 2019-04-17 15:25:44 +01:00
Mikhail Yakshin 3b94aa4643
Merge pull request #13 from spyapalli/master
Kaitai b32 result is inconsistent for some payload because of overflo…
2019-01-31 17:05:33 +00:00
PYAPALLI,SAI KISHORE 0c13bfc90c Kaitai b32 result is inconsistent for some payload because of overflow #12 2019-01-31 12:00:11 -05:00
Mikhail Yakshin 86c9b7dccb Fix EOL whitespace 2018-05-09 07:04:31 +01:00
Mikhail Yakshin a2a40ef0d8
Merge pull request #11 from bibekdw/master
Added ReadBitsIntLe method for algorithm specified @ issue#155
2018-05-09 06:51:26 +01:00
bibekdw b63c530ef0 Added ReadBitsIntLe method for algorithm specified @ issue#155 2018-05-08 13:57:31 -04:00
Mikhail Yakshin e8bb20a700
Merge pull request #9 from kaitai-io/patch-conditionalcompilation
Patch conditional compilation
2018-02-05 11:12:02 +00:00
Arkadiusz Bulski 632bde8f8a using static IsLittleEndian (thanks @Arlorean) 2018-02-04 15:34:18 +01:00
Arkadiusz Bulski 77a748f2f9 EnsureFixedContents: array compare more proper style, better errormsg 2018-01-22 20:00:29 +01:00
Arkadiusz Bulski 5a9d8f36dd ByteArrayCompare: array.Length field proper, not Count() LINQ 2018-01-22 19:56:02 +01:00
Arkadiusz Bulski eed912a781 cleanup 2018-01-22 19:55:20 +01:00
Mikhail Yakshin c610cfa0dd
Merge pull request #7 from Arlorean/master
Add NuGet package configuration details for KaitaiStruct.Runtime.CSharp.
2018-01-22 16:55:55 +00:00
Adam Davidson b25036f3a8 Correct spelling of Kaitai. 2018-01-22 16:54:09 +00:00
Adam Davidson 9b4585469a Update assembly name to Kaitai.Struct.Runtime.
Update default namespace to Kaitai.
Generate XML documentation for project nuget.
2018-01-22 16:46:02 +00:00
Adam Davidson 0456f06046 Add NuGet package configuration details for KaitaiStruct.Runtime.CSharp. 2018-01-21 16:06:18 +00:00
Mikhail Yakshin bb266f3731 Added CustomDecoder interface 2017-09-06 21:10:59 +03:00
Mikhail Yakshin fc2f9a48f1 Fix BytesStripRight running into negative indexes 2017-07-22 16:03:45 +03:00
Mikhail Yakshin fcb7bade37 Added ReadBytes() with ulong argument, added more checks on long arguments before int conversion 2017-05-17 13:32:27 +03:00
Mikhail Yakshin d425f77f0b Implemented ByteArrayCompare 2017-04-07 08:13:57 +03:00
Mikhail Yakshin 7c923d3fb2 Pumped copyright year and fixed links 2017-03-30 14:00:05 +03:00
Mikhail Yakshin 4915c068a4 Merge pull request #5 from kaitai-io/feature/csharp-v2
Move down to C# 2.0 features
2017-03-30 13:51:15 +03:00
Daniel Walder c9af27b536 Break early on error 2017-03-30 20:45:36 +10:00
Daniel Walder 83ed516ca3 Move down to C# 2.0 features
Fixes kaitai-io/kaitai_struct#74
2017-03-30 20:13:32 +10:00
Mikhail Yakshin f925128b6b Implemented same workaround for mask length == 64 as in most other languages 2017-03-01 01:54:56 +03:00
Mikhail Yakshin edb7b09c96 BytesTerminate: implemented support for includeTerminator 2017-02-15 00:22:32 +03:00
Mikhail Yakshin a707442149 Implemented BytesStripRight + BytesTerminate 2017-02-14 20:38:33 +03:00
Mikhail Yakshin 27f4502e5c Removed string handling methods, added readBytesTerm 2017-02-14 16:18:08 +03:00
Mikhail Yakshin 814bd5355f Added AlignToByte(); fixed formatting according to C# standards 2017-02-02 03:18:49 +03:00
Mikhail Yakshin 65f746c2c8 Ported ReadBitsInt to C# 2017-01-08 12:45:46 +03:00
Mikhail Yakshin 923e9c9fc3 EnsureFixedContents: derive length from expected, not pass it as argument 2016-11-22 14:01:26 +03:00
Daniel Walder 07063813c1 Made KaitaiStream.IsEof a property
Also minor code cleanup on other properties
2016-10-29 10:37:38 +10:00
Mikhail Yakshin bd1e9af42c Added long version of Mod 2016-10-13 21:01:04 +03:00
Daniel Walder 5767488867 Add Mod function
See kaitai-io/kaitai_struct#33
2016-10-08 18:19:22 +10:00
Mikhail Yakshin 9104c76b4c Merge branch 'master' of https://github.com/kaitai-io/kaitai_struct_csharp_runtime 2016-08-10 11:02:19 +03:00
Mikhail Yakshin 52c8d896d8 Added standard runtime library README 2016-08-10 11:01:58 +03:00
Morgan Gangwere 0138a8bb8d Apache -> MIT
Stupid GPL compatibility matrix.

MIT makes things easy. Honestly, I don't care. Let's make it MIT.

signed off by Morgan ``Indrora'' Gangwere <morgan.gangwere@gmail.com>
2016-08-09 10:37:08 -07:00
Mikhail Yakshin a5e95294a0 Added nested regions 2016-08-09 12:28:21 +03:00
Mikhail Yakshin 1498255c03 Made KaitaiStream.Pos a property, not a method 2016-08-09 12:07:00 +03:00
Mikhail Yakshin c4f278f634 More method + region rearranging 2016-08-09 11:48:58 +03:00
Mikhail Yakshin 8f5fd252ef Some method rearranging, adding recommended regions 2016-08-09 11:43:41 +03:00
Mikhail Yakshin d0e68f7708 Added safeguard against reading past end-of-stream, as per method contract 2016-08-08 17:03:20 +03:00
Mikhail Yakshin 0fe8997f1e Added KaitaiStream#Size; added region and partially rearranged methods 2016-08-08 12:37:55 +03:00
Daniel Walder f9f863de73 Add support for reading floating point formats 2016-07-24 18:29:54 +10:00
Daniel Walder 9f60c18de7 Implemented multi-byte XOR processing 2016-07-24 17:05:00 +10:00
Daniel Walder e3b89666cd Fix the ProcessZlib implementation
This will pass the ZlibWithHeader78 test. .NET's
DeflateStream does not expect zlib's header to be
present in the stream. Trimming it off fixes
the issue.
2016-07-20 22:39:57 +10:00
Daniel Walder 3122ca220a Detect system endianness when reading values
The BitConverter functions use the endianness of
the current system to convert bytes into values.
So when reading LE data on LE system it should not
change, but on a BE system it must be reversed.
2016-07-19 22:23:08 +10:00
Mikhail Yakshin 72e01779ad Merge pull request #2 from LogicAndTrick/master
Completed runtime based on BinaryReader and .NET naming standards
2016-07-19 12:39:37 +03:00
Daniel Walder ab67f5ff47 Revert naming changes and a few other corrections 2016-07-18 21:11:58 +10:00
Daniel Walder 6e36771ef8 Add ProcessXorInt implementation 2016-07-17 12:35:31 +10:00