Read data from the memory buffer based on offset and length.
$offset
$length
offset
The offset.
length
The length.
The data readed from the memory buffer.