ByteArrayHelper

NuGet Package ID: CodeBits.ByteArrayHelper

General methods

Method Description
ZeroOut Zeroes out all the elements in a byte array
Fill Sets the elements in a byte array to a specific value
IsEqualTo Checks whether two byte arrays are equal based on their content.
IsNullOrEmpty Checks whether a byte array is null or has no elements.
IsNullOrZeroes Checks whether a byte array is null, empty or all it's values are zero.
ToString Creates a string from a byte array that concatenates each item in the array, separated by the specified delimiter.

Byte sequence methods

GetBytesUptoSequence Get all the bytes in a byte array up to a specific sequence of bytes.
IndexOfSequence Returns the index of a byte sequence within a byte array.
IndexOfSequences Returns all the indices of a byte sequence within a byte array.
SplitBySequence Splits a byte array by a specific byte sequence.

Last edited Mar 15, 2013 at 7:32 PM by jeevanjj, version 3

Comments

No comments yet.