generateByteTupleFrom

fun generateByteTupleFrom(size: Int, generator: (Int) -> Int): AvailObject

Create an object of the appropriate size, whose descriptor is an instance of ByteTupleDescriptor. Run the generator for each position in ascending order to produce the unsigned bytes (as Ints in the range [0..255]) with which to populate the tuple.

Return

The new tuple.

Parameters

size

The size of byte tuple to create.

generator

A generator to provide unsigned bytes to store.