Merge: File and Bytes
authorJean Privat <jean@pryen.org>
Tue, 26 May 2015 10:09:33 +0000 (06:09 -0400)
committerJean Privat <jean@pryen.org>
Tue, 26 May 2015 10:09:33 +0000 (06:09 -0400)
commitf75737f87c674c902fe401c36c31b5dbe7c35bfb
treeda63289ae7011f063ae753e0ed984e5a0b852014
parent52ecf977412e09bbee42bcf7b4268c393e9a8a3e
parentbf91088ca504078df8e355d410b01bd8a288d3ba
Merge: File and Bytes

A bit of a fix in the context of issues #1267 and #1262.

The bytes module has a `ByteBuffer` class, while it is still working with `Int` at the moment, when Nit correctly supports `Bytes`, we can change it to a real `ByteBuffer`

This class is highly recommended when working with byte streams and collections.

As such, file operations are related to this module since most of the operations are working on bytes, what they mean is up to the end-user to figure.

Pull-Request: #1309
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>
Reviewed-by: Ait younes Mehdi Adel <overpex@gmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/standard/file.nit