Skip to content

Commit

Permalink
Mark EnsureFixedContents() as obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
generalmimon committed Oct 3, 2020
1 parent 4fa7e16 commit 8e944f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions KaitaiStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ public byte[] ReadBytesTerm(byte terminator, bool includeTerminator, bool consum
/// </summary>
/// <param name="expected">The expected result</param>
/// <returns></returns>
[Obsolete("use explicit \"if\" using ByteArrayCompare method instead")]
public byte[] EnsureFixedContents(byte[] expected)
{
byte[] bytes = ReadBytes(expected.Length);
Expand Down

0 comments on commit 8e944f8

Please sign in to comment.