ByteArea(size: Int, offset: Int = 0)
Constructs new ByteArray with specified size and ByteArea over it.
ByteArea(inline buffer: ByteArray, size: Int, offset: Int = 0)
Represents area inside byte array buffer with specified offset and size.
offset - start index in buffer.
IllegalArgumentException - if offset is negative, size is zero or negative, buffer is empty or area is out of bounds.
Author
Alexander Kornilov (akornilov.82@gmail.com).