Subject | Re: [ib-support] 5.6 & gstat info (API). |
---|---|
Author | Ann W. Harrison |
Post date | 2002-03-11T19:23:30Z |
At 05:39 PM 3/11/2002 +0000, Jason Chapman (JAC2) wrote:
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
>Opening a live / open database with Deny None flag and reading the firstNo, I don't think so - I do it a lot.
>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?
>I'll go and mess about with this in a hex editor for a while to ensure IDatatype lengths:
>know all of the storage lengths of the different datatypes.
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