appendUInt64Le

fun ByteStringBuilder.appendUInt64Le(value: ULong, validRange: ULongRange = ULong.MIN_VALUE..ULong.MAX_VALUE): ByteStringBuilder

Appends a 64-bit unsigned integer to this ByteStringBuilder in Little-Endian order.

This function appends the value as eight bytes 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 ULong.MIN_VALUE to ULong.MAX_VALUE.

The bytes are appended in Little-Endian order.

Return

This ByteStringBuilder instance, allowing for chaining of operations.

Parameters

value

The unsigned long value to append.

validRange

The valid range for the unsigned integer value. Defaults to ULong.MIN_VALUE..ULong.MAX_VALUE.

Throws


fun ByteStringBuilder.appendUInt64Le(value: Long, validRange: ULongRange = ULong.MIN_VALUE..ULong.MAX_VALUE): ByteStringBuilder

Appends a 64-bit unsigned integer to this ByteStringBuilder in Little-Endian order.

This function appends the value as eight bytes 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 ULong.MIN_VALUE to ULong.MAX_VALUE.

The bytes are appended in Little-Endian order.

Return

This ByteStringBuilder instance, allowing for chaining of operations.

Parameters

value

The Long value to append.

validRange

The valid range for the unsigned integer value. Defaults to ULong.MIN_VALUE..ULong.MAX_VALUE.

Throws