]> gerrit.simantics Code Review - simantics/platform.git/blob - ByteReader.java
3ce3f6cdbb8c32da89bc9a5dd852643593c5117e
[simantics/platform.git] / ByteReader.java
1 package org.simantics.db.service;
2
3 public interface ByteReader {
4     /*
5      * Reads bytes from data source.
6      * 
7      * Assumes that enough bytes are available.
8      * 
9      * Uses and returns the supplied buffer.
10      * 
11      * Allocates a new buffer if null buffer is supplied.
12      * 
13      */
14     byte[] readBytes(byte[] buffer, int amount);
15 }