• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email


src/p/y/py_examples-HEAD/opencv/CVtypes.py   py_examples(Download)
 
import ctypes, os
from ctypes import Structure, Union, POINTER, SetPointerType, CFUNCTYPE, cdll, byref
from ctypes import c_char_p, c_double, c_float, c_byte, c_ubyte, c_int, c_void_p, c_ulong
from ctypes import c_uint32, c_short, c_char, c_longlong
 
# ----Load the DLLs ----------------------------------------------------------

src/p/y/python-gnutls-1.2.0/gnutls/library/__init__.py   python-gnutls(Download)
def initialize_gcrypt():
    from ctypes import c_void_p
    from gnutls.library._init import gcrypt_thread_callbacks_ptr
 
    GCRYCTL_INIT_SECMEM = 24
    GCRYCTL_SUSPEND_SECMEM_WARN = 28
    GCRYCTL_RESUME_SECMEM_WARN  = 29
    else:
        gcry_control = libgnutls.gcry_control
 
    gcry_control(GCRYCTL_SET_THREAD_CBS, c_void_p(gcrypt_thread_callbacks_ptr))
    if system == 'cygwin':
        gcry_control(GCRYCTL_DISABLE_SECMEM, 0)
    else:

src/m/e/meresco-HEAD/meresco-components/workingsets/3.4.2-CQ2/version_0-lucene3gcj44/meresco/components/facetindex/merescolucene.py   meresco(Download)
from java.lang.reflect import Array
from java.util import Iterator
from java.io import File
from ctypes import cdll, c_void_p
 
from org.apache.lucene.document import Fieldable, Field as _Field, Document as _Document
from org.apache.lucene.index import Term, IndexWriter as _IndexWriter, TermEnum
def c_void_from_jparam(arg):
    if arg == None:
        return c_void_p(None)
    return c_void_p(arg.jaddress())
 
def iterJ(jIterator):
    try:

src/c/o/cogen-0.2.1/cogen/core/proactors/ctypes_iocp_impl/api_wrappers.py   cogen(Download)
from ctypes import WINFUNCTYPE, GetLastError, \
            windll, pythonapi, cast, WinError, create_string_buffer, \
            c_ushort, c_ubyte, c_char, WINFUNCTYPE, c_short, c_ubyte, \
            c_int, c_uint, c_long, c_ulong, c_void_p, byref, c_char_p, \
            Structure, Union, py_object, POINTER, pointer, sizeof, string_at
 
from ctypes.wintypes import HANDLE, ULONG, DWORD, BOOL, LPCSTR, LPCWSTR, WinError

src/c/y/cygwinreg-1.0/cygwinreg/w32api.py   cygwinreg(Download)
 
from cygwinreg.constants import *
 
from ctypes import (addressof, byref, cast, pointer, POINTER, sizeof, Structure,
                    create_string_buffer,
                    c_char_p, c_long, c_ulong, c_ushort, c_void_p, c_wchar_p)
 
def winerror_to_strerror(winerror):
    # buf is actually a string, but is initially set to NULL
    buf = c_void_p(None)
    len = FormatMessageW(
        # Error API error
        (FORMAT_MESSAGE_ALLOCATE_BUFFER |
         FORMAT_MESSAGE_FROM_SYSTEM |

src/s/h/shapely-HEAD/shapely/wkb.py   shapely(Download)
"""Load/dump geometries using the well-known binary (WKB) format
"""
 
from ctypes import byref, c_size_t, c_char_p, string_at
from ctypes import c_void_p, c_size_t
 
from shapely.geos import lgeos, ReadingError
def dumps(ob):
    """Dump a WKB representation of a geometry to a byte string."""
    if ob is None or ob._geom is None:
        raise ValueError("Null geometry supports no operations")
    size = c_size_t()
    return lgeos.GEOSGeomToWKB_buf(c_void_p(ob._geom), byref(size))
 

src/m/e/meresco-HEAD/meresco-components/workingsets/3.4.4-NED/version_1/meresco/components/facetindex/merescolucene.py   meresco(Download)
from java.lang.reflect import Array
from java.util import Iterator
import MerescoStandardAnalyzer
from ctypes import cdll, c_void_p
 
from org.apache.lucene.document import Fieldable, Field, Document as _Document
from org.apache.lucene.index import Term, IndexReader, IndexWriter as _IndexWriter, TermEnum
def c_void_from_jparam(arg):
    return c_void_p(arg.jaddress())
 
def iterJ(jIterator):
    try:
        jIterator.hasNext()
    except AttributeError:

src/m/e/meresco-HEAD/meresco-components/workingsets/3.4.4-NED/version_0/meresco/components/facetindex/merescolucene.py   meresco(Download)
from java.lang.reflect import Array
from java.util import Iterator
import MerescoStandardAnalyzer
from ctypes import cdll, c_void_p
 
from org.apache.lucene.document import Fieldable, Field, Document as _Document
from org.apache.lucene.index import Term, IndexReader, IndexWriter as _IndexWriter, TermEnum
def c_void_from_jparam(arg):
    return c_void_p(arg.jaddress())
 
def iterJ(jIterator):
    try:
        jIterator.hasNext()
    except AttributeError:

src/m/e/meresco-HEAD/meresco-components/workingsets/3.4.4-Edurep/version_2/meresco/components/facetindex/merescolucene.py   meresco(Download)
from java.lang.reflect import Array
from java.util import Iterator
import MerescoStandardAnalyzer
from ctypes import cdll, c_void_p
 
from org.apache.lucene.document import Fieldable, Field, Document as _Document
from org.apache.lucene.index import Term, IndexReader, IndexWriter as _IndexWriter, TermEnum
def c_void_from_jparam(arg):
    return c_void_p(arg.jaddress())
 
def iterJ(jIterator):
    try:
        jIterator.hasNext()
    except AttributeError:

src/m/e/meresco-HEAD/meresco-components/workingsets/3.4.4-Edurep/version_1/meresco/components/facetindex/merescolucene.py   meresco(Download)
from java.lang.reflect import Array
from java.util import Iterator
import MerescoStandardAnalyzer
from ctypes import cdll, c_void_p
 
from org.apache.lucene.document import Fieldable, Field, Document as _Document
from org.apache.lucene.index import Term, IndexReader, IndexWriter as _IndexWriter, TermEnum
def c_void_from_jparam(arg):
    return c_void_p(arg.jaddress())
 
def iterJ(jIterator):
    try:
        jIterator.hasNext()
    except AttributeError:

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next