agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] readBytes() / writeBytes()
Date: Fri, 22 Sep 2006 10:54:46 +0200
Message-ID: <4513A4D6.7060900@tada.se> (raw)
In-Reply-To: <4513A371.1050401@logix-tt.com>
References: <4512F5E4.9060600@logix-tt.com>
	<45139C17.3050006@tada.se>
	<4513A107.4060809@logix-tt.com>
	<4513A371.1050401@logix-tt.com>

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





view thread (13+ messages)  latest in thread

Message-ID: <4513A4D6.7060900@tada.se>
Permalink:  ../4513A4D6.7060900@tada.se/
Also on:    postgresql.org/message-id/4513A4D6.7060900@tada.se

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pljava-dev@postgresql.org
  Subject: Re: [Pljava-dev] readBytes() / writeBytes()
  In-Reply-To: <4513A4D6.7060900@tada.se>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox