deps/PicklingTools170Release/Xm/ptools170/pythoncext/pyocser.cc
inline void OCPyTypeArrayToSerialize (void* data, size_t len, char oc_type,
				      OCPyDumpContext_& dc)
{
  char *&mem = dc.mem;

  size_t byte_len = ByteLength(oc_type);
  if (len <= 0xFFFFFFFF) {
    *mem++ = 'n';
    *mem++ = oc_type;
    int_u4 l = len;
    VALCOPY(int_u4, l);
  } else {
    *mem++ = 'N'; 
    *mem++ = oc_type;
    int_u8 l = len;
    VALCOPY(int_u8, l);
  }
  memcpy(mem, data, byte_len*len);
  mem += len*byte_len;
}
// Raw data blitter: we have to be able to convert from Numeric, array, numpy
Raw data blitter: we have to be able to convert from Numeric, array, numpy
Raw data blitter : we have to be able to convert from Numeric array numpy
inline void OCPyTypeArrayToSerialize (void* data, size_t len, char oc_type,
				      OCPyDumpContext_& dc)
{
  char *&mem = dc.mem;
  size_t byte_len = ByteLength(oc_type);
  if (len <= 0xFFFFFFFF) {
    *mem++ = 'n';
    *mem++ = oc_type;
    int_u4 l = len;
    VALCOPY(int_u4, l);
  } else {
    *mem++ = 'N'; 
    *mem++ = oc_type;
    int_u8 l = len;
    VALCOPY(int_u8, l);
  }
  memcpy(mem, data, byte_len*len);
  mem += len*byte_len;
}
inline void OCPyTypeArrayToSerialize ( void * data , size_t len , char oc_type , OCPyDumpContext_ & dc ) { char * & mem = dc . mem ; size_t byte_len = ByteLength ( oc_type ) ; if ( len <= 0xFFFFFFFF ) { * mem ++ = ' ' ; * mem ++ = oc_type ; int_u4 l = len ; VALCOPY ( int_u4 , l ) ; } else { * mem ++ = ' ' ; * mem ++ = oc_type ; int_u8 l = len ; VALCOPY ( int_u8 , l ) ; } memcpy ( mem , data , byte_len * len ) ; mem += len * byte_len ; }
Raw data blitter: we have to be able to convert from Numeric, array, numpy
Raw data blitter : we have to be able to convert from Numeric array numpy