Table of Contents

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 byte

The delimiter byte.

ignoreEmpty bool

Indicates whether to ignore empty segments.

endsWithDelimiter bool

Indicates whether the source array ends with the delimiter.

Returns

byte[][]

An array of byte arrays representing the segments.