Subject Re: [ib-support] 5.6 & gstat info (API).
Author Ann W. Harrison
At 05:39 PM 3/11/2002 +0000, Jason Chapman (JAC2) wrote:


>Opening a live / open database with Deny None flag and reading the first
>page - is it likely to cause any problems within the database on NT - I
>wouldn't have thought so, but it is worth asking before they go and trash a
>live DB?

No, I don't think so - I do it a lot.


>I'll go and mess about with this in a hex editor for a while to ensure I
>know all of the storage lengths of the different datatypes.

Datatype lengths:

UCHAR 1 byte (unsigned character)
SCHAR 1 byte (signed character)
USHORT 2 bytes (unsigned short)
SSHORT 2 bytes (signed short)
ULONG 4 bytes (unsigned long)
SLONG 4 bytes (signed long)

The thing that will confuse you is alignment - you can ignore it
in C, because the compiler aligns the same way that Firebird &
InterBase do. Otherwise, you'll find that you need pad bytes.

Ann