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