appendUInt8
Appends an 8-bit unsigned integer to this ByteStringBuilder.
This function appends the value as a single byte to the end of this ByteStringBuilder. It also validates that the provided value is within the specified validRange. By default the valid range is from UByte.MIN_VALUE to UByte.MAX_VALUE.
Return
This ByteStringBuilder instance, allowing for chaining of operations.
Parameters
The unsigned byte value to append.
The valid range for the unsigned byte value. Defaults to UByte.MIN_VALUE..UByte.MAX_VALUE.
Throws
if the value is outside the validRange.
Appends an 8-bit unsigned integer to this ByteStringBuilder.
This function appends the value as a single byte to the end of this ByteStringBuilder. It also validates that the provided value is within the specified validRange. By default, the valid range is from UByte.MIN_VALUE to UByte.MAX_VALUE.
Return
This ByteStringBuilder instance, allowing for chaining of operations.
Parameters
The unsigned integer value to append.
The valid range for the unsigned integer value. Defaults to UByte.MIN_VALUE..UByte.MAX_VALUE.
Throws
if the value is outside the validRange.
Appends an 8-bit unsigned integer to this ByteStringBuilder.
This function appends the value as a single byte to the end of this ByteStringBuilder. It also validates that the provided value is within the specified validRange. By default, the valid range is from UByte.MIN_VALUE to UByte.MAX_VALUE.
Return
This ByteStringBuilder instance, allowing for chaining of operations.
Parameters
The integer value to append.
The valid range for the unsigned integer value. Defaults to UByte.MIN_VALUE..UByte.MAX_VALUE.
Throws
if the value is outside the validRange.