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
buffer
byte[]The source buffer array to split.
delimiter
byteThe delimiter byte.
ignoreEmpty
boolIndicates whether to ignore empty segments.
endsWithDelimiter
boolIndicates whether the source array ends with the delimiter.
Returns
- byte[][]
An array of byte arrays representing the segments.