Hunny Software Library Reference

ByteString Methods

The methods of the ByteString class are listed below. For a complete list of ByteString class members, see the ByteString Members topic.

Public Static (Shared) Methods

CompareOverloaded. Compares two byte strings
Copy Returns its argument.
EqualsOverloaded. Indicates if two specified instances have the same value.
JoinOverloaded. Concatenates ByteString instances.

Public Instance Methods

Clone Returns a new reference to the instance.
CompareToOverloaded. Compares this instance to another object.
CopyTo Copies bytes from this instance to an array of bytes.
EndsWith Indicates if this instance ends with the specified substring.
EqualsOverloaded. Indicates if this instance has the same value as another object.
GetHashCode Returns the hash code for this instance.
GetType (inherited from Object)Gets the Type of the current instance.
IndexOfOverloaded. Reports the index of the first occurrence of the specified ByteString in this instance.
IndexOfAnyOverloaded. Reports the index of the first occurrence of any byte in a specified set of bytes.
Insert Inserts a ByteString instance into this instance.
LastIndexOfOverloaded. Reports the index of the last occurrence of the specified ByteString in this instance.
LastIndexOfAnyOverloaded. Reports the index of the last occurrence of any byte in a specified set of bytes.
PadLeftOverloaded. Right-aligns the bytes in this instance, padding with spaces on the left for a specified total length.
PadRightOverloaded. Left-aligns the bytes in this string, padding with spaces on the right, for a specified total length.
Remove Removes a specified number of bytes from this instance.
ReplaceOverloaded. Replaces all occurrences of a specified byte in this instance with another specified byte.
StartsWith Indicates if this instance starts with the specified substring.
SubstringOverloaded. Gets a substring from this instance.
ToByteArrayOverloaded. Copies the bytes in this instance to a byte array
ToLower Returns a copy of this instance with ASCII characters converted to lowercase
ToString Converts the value of this instance to a String
ToUpper Returns a copy of this instance with ASCII characters converted to uppercase
Trim Removes all occurrences of white space characters from the beginning and end.
TrimEnd Removes all white space characters from the end.
TrimStart Removes all white space characters from the beginning.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

ByteString Class | Hunny.Base Namespace