Hunny Software Library Reference

ByteString.Remove Method 

Removes a specified number of bytes from this instance.

[Visual Basic]
Public Function Remove( _
   ByVal startIndex As Integer, _
   ByVal count As Integer _
) As ByteString
[C#]
public ByteString Remove(
   int startIndex,
   int count
);

Parameters

startIndex
the position in this instance to begin removing bytes
count
number of bytes to remove

Return Value

A new ByteString that is equivalent to this instance with the specified substring removed

Exceptions

Exception TypeCondition
ArgumentOutOfRangeExceptionstartIndex < 0;
- or -
count < 0;
- or -
startIndex + count > Length

See Also

ByteString Class | Hunny.Base Namespace