summaryrefslogtreecommitdiff
path: root/test/Moretest/intextaux.c
blob: 9225b90bc28a9a78e97c45efe3b6a40f8a411fb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <mlvalues.h>
#include <intext.h>

value marshal_to_block(value vbuf, value vlen, value v, value vflags)
{
  return Val_long(output_value_to_block(v, vflags, 
                                        (char *) vbuf, Long_val(vlen)));
}

value marshal_from_block(value vbuf, value vlen)
{
  return input_value_from_block((char *) vbuf, Long_val(vlen));
}