first sketch of byte buffer related interfaces.

Signed-off-by: Nikolay Fiykov <nikolai.fiikov@gmail.com>