1 package org.simantics.db.service;
\r
3 public interface ByteReader {
\r
5 * Reads bytes from data source.
\r
7 * Assumes that enough bytes are available.
\r
9 * Uses and returns the supplied buffer.
\r
11 * Allocates a new buffer if null buffer is supplied.
\r
14 byte[] readBytes(byte[] buffer, int amount);
\r