Class ByteArrayExtensions
- Namespace
 - OneImlx.Terminal.Extensions
 
- Assembly
 - OneImlx.Terminal.dll
 
Provides extension methods for byte arrays.
[Performance("Check and improve performance.", Version = "6.x")]
public static class ByteArrayExtensions
  - Inheritance
 - 
      
      ByteArrayExtensions
 
- Inherited Members
 
Methods
Split(byte[], byte, bool, out bool)
Splits a byte array into segments based on a delimiter.
public static byte[][] Split(this byte[] buffer, byte delimiter, bool ignoreEmpty, out bool endsWithDelimiter)
  Parameters
bufferbyte[]The source buffer array to split.
delimiterbyteThe delimiter byte.
ignoreEmptyboolIndicates whether to ignore empty segments.
endsWithDelimiterboolIndicates whether the source array ends with the delimiter.
Returns
- byte[][]
 An array of byte arrays representing the segments.