caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Small request
@ 2001-10-15 15:50 Ohad Rodeh
  0 siblings, 0 replies; only message in thread
From: Ohad Rodeh @ 2001-10-15 15:50 UTC (permalink / raw)
  To: caml-list

While I'm at it, there is one more function that could help me:
  val Marshal.length : 'a -> extern_flags list -> int

This hypothetical function returns the length that an object will be
marshaled to.
This allows pre-allocating a C buffer of the correct size, and then
marshaling an
ML object directy into it. This prevents memory fragmentation on the
C-size.

     Ohad.


-------------------
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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-10-15 15:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-15 15:50 [Caml-list] Small request Ohad Rodeh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).