From 2f3ee5f87f0bd5d76da6d1a0d9572b50421d561d Mon Sep 17 00:00:00 2001 From: Jussi Koskela Date: Mon, 21 Nov 2016 14:53:42 +0200 Subject: [PATCH 1/1] Possibility to skip bytes when reading InputStream in SCL Lift InputStream.skip() to SCL API. refs #6821 Change-Id: I2462d9474b4eedb5010deb8737cccb507905ba11 --- bundles/org.simantics.scl.runtime/scl/Stream.scl | 1 + 1 file changed, 1 insertion(+) diff --git a/bundles/org.simantics.scl.runtime/scl/Stream.scl b/bundles/org.simantics.scl.runtime/scl/Stream.scl index cd0d4588a..150d55e6c 100644 --- a/bundles/org.simantics.scl.runtime/scl/Stream.scl +++ b/bundles/org.simantics.scl.runtime/scl/Stream.scl @@ -12,6 +12,7 @@ importJava "java.io.InputStream" where @private @JavaName close closeInputStream :: InputStream -> () + skip :: InputStream -> Long -> Long instance Closeable InputStream where close = closeInputStream -- 2.43.2