~ubuntu-branches/ubuntu/quantal/pytables/quantal

« back to all changes in this revision

Viewing changes to src/typeconv.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2005-11-27 20:25:34 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051127202534-l8jzyd8357krw40h
Tags: 1.1.1-1ubuntu1
* Sync with Debian:
  + Use python 2.4 as default

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***********************************************************************
 
2
 *
 
3
 *      License: BSD
 
4
 *      Created: December 21, 2004
 
5
 *      Author:  Ivan Vilata i Balaguer - reverse:com.carabos@ivilata
 
6
 *
 
7
 *      $Source: /home/ivan/_/programari/pytables/svn/cvs/pytables/pytables/src/typeconv.h,v $
 
8
 *      $Id: typeconv.h 739 2005-03-17 10:33:05Z ivilata $
 
9
 *
 
10
 ***********************************************************************/
 
11
 
 
12
/* Type conversion functions for PyTables types which are stored
 
13
 * with a different representation between Numarray and HDF5.
 
14
 */
 
15
 
 
16
#ifndef __TYPECONV_H__
 
17
#define __TYPECONV_H__ 1
 
18
 
 
19
#include "Python.h"
 
20
 
 
21
/* Meaning for common arguments:
 
22
 *   * base: pointer to data
 
23
 *   * byteoffset: offset of first field/element into the data
 
24
 *   * bytestride: distance in bytes from a field/record to the next one
 
25
 *   * nrecords: number of fields/records to translate
 
26
 *   * nelements: number of elements in a field/record
 
27
 *   * sense: 0 for Numarray -> HDF5, otherwise HDF5 -> Numarray
 
28
 */
 
29
 
 
30
void conv_float64_timeval32(void *base,
 
31
                            unsigned long byteoffset,
 
32
                            unsigned long bytestride,
 
33
                            PY_LONG_LONG nrecords,
 
34
                            unsigned long nelements,
 
35
                            int sense);
 
36
 
 
37
#endif /* def __TYPECONV_H__ */