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