English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Bigarray I/O and block copy functions?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-09-03 (15:38)
From: Eric C. Cooper <ecc@c...>
Subject: [Caml-list] Bigarray I/O and block copy functions?
I'm looking for a Bigarray equivalent of Pervasives.output, so that I
can write a subrange of a Bigarray (specified by offset and length) to a
channel.  Before I hack an external C function for this, has anyone done
it already?

Other natural operations that would be useful:
  - input from a channel into a specified subrange of a Bigarray
  - blit between Bigarrays and strings (both directions)

I'm only using 1-dimensional arrays of 8-bit elements, but the above
operations also make sense in (some) more general cases.

Eric Cooper
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr