Hunny Software Library Reference

ByteString.Substring Method (Int32, Int32)

Gets a substring from this instance

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

Parameters

startIndex
The index of the start of the substring.
length
The length of the substring

Return Value

A ByteString equivalent to the substring of length length that begins at startIndex in this instance.
-or-
Empty if startIndex is equal to the length of this instance and length is zero.

Exceptions

Exception TypeCondition
ArgumentOutOfRangeExceptionstartIndex + length > Length
- or -
startIndex < 0
length < 0

See Also

ByteString Class | Hunny.Base Namespace | ByteString.Substring Overload List