contact | forum | legal | impressum | privacy

hamsterdb API Documentation

 

types.h File Reference

Portable typedefs for hamsterdb. More...

Go to the source code of this file.


Defines

#define HAM_OS_POSIX   1
#define HAM_32BIT   1
#define HAM_EXPORT   extern
#define HAM_INVALID_FD   (-1)
#define HAM_FALSE   0
#define HAM_TRUE   (!HAM_FALSE)

Typedefs

typedef signed long long ham_s64_t
typedef unsigned long long ham_u64_t
typedef signed int ham_s32_t
typedef unsigned int ham_u32_t
typedef signed short ham_s16_t
typedef unsigned short ham_u16_t
typedef signed char ham_s8_t
typedef unsigned char ham_u8_t
typedef int ham_fd_t
typedef int ham_bool_t
typedef int ham_status_t
typedef ham_u64_t ham_offset_t
typedef ham_u32_t ham_size_t

Detailed Description

Portable typedefs for hamsterdb.

Copyright (C) 2005-2008 Christoph Rupp (chris@crupp.de).

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

See files COPYING.* for License information.

Author:
Christoph Rupp, chris@crupp.de

Definition in file types.h.


Define Documentation

#define HAM_32BIT   1

Definition at line 54 of file types.h.

#define HAM_EXPORT   extern

Definition at line 77 of file types.h.

#define HAM_FALSE   0

Definition at line 158 of file types.h.

#define HAM_INVALID_FD   (-1)

Definition at line 139 of file types.h.

#define HAM_OS_POSIX   1

Definition at line 48 of file types.h.

#define HAM_TRUE   (!HAM_FALSE)

Definition at line 159 of file types.h.


Typedef Documentation

typedef int ham_bool_t

a boolean type

Definition at line 157 of file types.h.

typedef int ham_fd_t

typedefs for 64bit operating systems; on Win64, longs do not always have 64bit!

Definition at line 138 of file types.h.

typedef for addressing the file, which limits the file size to 64 bit

Remarks:
If you change this datatype, you also have to change the endian-macros in src/endian.h (ham_db2h_offset/ham_h2db_offset)

Definition at line 172 of file types.h.

typedef signed short ham_s16_t

Definition at line 101 of file types.h.

typedef signed int ham_s32_t

Definition at line 99 of file types.h.

typedef signed long long ham_s64_t

typedefs for 32bit operating systems

Definition at line 96 of file types.h.

typedef signed char ham_s8_t

Definition at line 103 of file types.h.

typedef for sizes, which limits data blobs to 32 bits

Remarks:
If you change this datatype, you also have to change the endian-macros in src/endian.h (ham_db2h_size/ham_h2db_size)

Definition at line 180 of file types.h.

typedef int ham_status_t

typedef for error- and status-code

Definition at line 164 of file types.h.

typedef unsigned short ham_u16_t

Definition at line 102 of file types.h.

typedef unsigned int ham_u32_t

Definition at line 100 of file types.h.

typedef unsigned long long ham_u64_t

Definition at line 97 of file types.h.

typedef unsigned char ham_u8_t

Definition at line 104 of file types.h.

 
 

The hamsterdb API

 

Help us!

Found an information that is missing on this page? Please send a mail.