]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Possibility to skip bytes when reading InputStream in SCL 54/154/1
authorJussi Koskela <jussi.koskela@semantum.fi>
Mon, 21 Nov 2016 12:53:42 +0000 (14:53 +0200)
committerJussi Koskela <jussi.koskela@semantum.fi>
Mon, 21 Nov 2016 12:53:42 +0000 (14:53 +0200)
Lift InputStream.skip() to SCL API.

refs #6821
Change-Id: I2462d9474b4eedb5010deb8737cccb507905ba11

bundles/org.simantics.scl.runtime/scl/Stream.scl

index cd0d4588af02a7f483e0dfac6973168b378a61a5..150d55e6c9462ce3ca129f3c969e250b632ec0f2 100644 (file)
@@ -12,6 +12,7 @@ importJava "java.io.InputStream" where
     @private
     @JavaName close
     closeInputStream :: InputStream -> <Proc> ()
+    skip :: InputStream -> Long -> <Proc> Long
     
 instance Closeable InputStream where
     close = closeInputStream