[Pljava-dev] readBytes() / writeBytes()

From: thomas at tada(dot)se (Thomas Hallgren)
To:
Subject: [Pljava-dev] readBytes() / writeBytes()
Date: 2006-09-22 08:54:46
Message-ID: 4513A4D6.7060900@tada.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

Markus Schaber wrote:
> Sadly, there are no examples for custom datatypes with variable size, so
> I've to extrapolate from the given fixed-length examples, and the
> details I know about the C implementation of variable-sized datatypes.
>
AFAIK, they all start with a 4 byte header denoting the length. So your mapping starts by
doing a readInt() and then you base the rest on that.

Regards,
Thomas Hallgren

In response to

Browse pljava-dev by date

  From Date Subject
Next Message Markus Schaber 2006-09-22 09:18:17 [Pljava-dev] Best way to pass intermediate state
Previous Message Thomas Hallgren 2006-09-22 08:50:53 [Pljava-dev] readBytes() / writeBytes()