Browse thread
[Caml-list] Small request
- Ohad Rodeh
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Ohad Rodeh <ORODEH@i...> |
| Subject: | [Caml-list] Small request |
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