Home My Page Projects Code Snippets Project Openings 3D graphics for Standard ML
Summary Activity SCM

SCM Repository

[sml3d] Diff of /trunk/sml3d/src/raw-data/data-buffer-sig.sml
ViewVC logotype

Diff of /trunk/sml3d/src/raw-data/data-buffer-sig.sml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 663, Sat Jan 2 18:30:19 2010 UTC revision 664, Sat Jan 2 18:50:09 2010 UTC
# Line 189  Line 189 
189      val appi : (int * 'a -> unit) -> 'a buffer -> unit      val appi : (int * 'a -> unit) -> 'a buffer -> unit
190      val modify : ('a -> 'a) -> 'a buffer -> unit      val modify : ('a -> 'a) -> 'a buffer -> unit
191      val modifyi : (int * 'a -> 'a) -> 'a buffer -> unit      val modifyi : (int * 'a -> 'a) -> 'a buffer -> unit
192      val tabulate : ('a buffer * (int -> 'a)) -> unit      val init : ('a buffer * (int -> 'a)) -> unit
193    
194    (* moving data in and out of SML *)    (* moving data in and out of SML *)
195      val mapToVector : 'a buffer * ('a -> 'b) -> 'b vector      val mapToVector : 'a buffer * ('a -> 'b) -> 'b vector
# Line 200  Line 200 
200      val copyFromArray : ('a array * 'a buffer) -> unit      val copyFromArray : ('a array * 'a buffer) -> unit
201      val fromVector : 'a ty -> 'a vector -> 'a buffer      val fromVector : 'a ty -> 'a vector -> 'a buffer
202      val fromArray  : 'a ty -> 'a array -> 'a buffer      val fromArray  : 'a ty -> 'a array -> 'a buffer
203        val tabulate : ('a ty * int * (int -> 'a)) -> 'a buffer
204    
205    (* support for passing buffers to C code.  Note that it is the responsibility of client code to    (* support for passing buffers to C code.  Note that it is the responsibility of client code to
206     * make sure that data that is visibile to C is also retained by the SML heap.     * make sure that data that is visibile to C is also retained by the SML heap.

Legend:
Removed from v.663  
changed lines
  Added in v.664

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0