diff options
Diffstat (limited to 'java/src/Ice/InputStream.java')
-rw-r--r-- | java/src/Ice/InputStream.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/java/src/Ice/InputStream.java b/java/src/Ice/InputStream.java index 57f0af31304..4c5b0be5821 100644 --- a/java/src/Ice/InputStream.java +++ b/java/src/Ice/InputStream.java @@ -161,6 +161,16 @@ public interface InputStream int readSize(); /** + * Extracts and check a sequence size from the stream. The check ensures not too much memory will + * be pre-allocated for the sequence. + * + * @param minSize The minimum size of an element of the sequence. + * + * @return The extracted size. + **/ + int readAndCheckSeqSize(int minSize); + + /** * Extracts a proxy from the stream. * * @return The extracted proxy. |