]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db/src/org/simantics/db/service/ByteReader.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / service / 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 }