Home
last modified time | relevance | path

Searched refs:cdef (Results 1 – 25 of 136) sorted by relevance

123456

/external/grpc-grpc/src/python/grpcio/grpc/_cython/_cygrpc/
Doperation.pxd.pxi16 cdef class Operation:
18 cdef void c(self)
19 cdef void un_c(self)
22 cdef grpc_op c_op
25 cdef class SendInitialMetadataOperation(Operation):
27 cdef readonly object _initial_metadata;
28 cdef readonly int _flags
29 cdef grpc_metadata *_c_initial_metadata
30 cdef size_t _c_initial_metadata_count
32 cdef void c(self)
[all …]
Dcredentials.pxd.pxi16 cdef class CallCredentials:
18 cdef grpc_call_credentials *c(self)
21 cdef grpc_call_credentials *c_credentials
24 cdef int _get_metadata(
31 cdef void _destroy(void *state) with gil
34 cdef class MetadataPluginCallCredentials(CallCredentials):
36 cdef readonly object _metadata_plugin
37 cdef readonly bytes _name
39 cdef grpc_call_credentials *c(self)
42 cdef grpc_call_credentials *_composition(call_credentialses)
[all …]
Dchannel.pxd.pxi16 cdef _check_call_error_no_metadata(c_call_error)
19 cdef _check_and_raise_call_error_no_metadata(c_call_error)
22 cdef _check_call_error(c_call_error, metadata)
25 cdef class _CallState:
27 cdef grpc_call *c_call
28 cdef set due
31 cdef class _ChannelState:
33 cdef object condition
34 cdef grpc_channel *c_channel
42 cdef object open
[all …]
Dtag.pxd.pxi16 cdef class _Tag:
18 cdef object event(self, grpc_event c_event)
21 cdef class _ConnectivityTag(_Tag):
23 cdef readonly object _user_tag
25 cdef ConnectivityEvent event(self, grpc_event c_event)
28 cdef class _RequestCallTag(_Tag):
30 cdef readonly object _user_tag
31 cdef Call call
32 cdef CallDetails call_details
33 cdef grpc_metadata_array c_invocation_metadata
[all …]
Devent.pxd.pxi16 cdef class ConnectivityEvent:
18 cdef readonly grpc_completion_type completion_type
19 cdef readonly bint success
20 cdef readonly object tag
23 cdef class RequestCallEvent:
25 cdef readonly grpc_completion_type completion_type
26 cdef readonly bint success
27 cdef readonly object tag
28 cdef readonly Call call
29 cdef readonly CallDetails call_details
[all …]
Dgrpc_gevent.pxd.pxi18 cdef extern from "grpc/impl/codegen/slice.h":
22 cdef extern from "src/core/lib/iomgr/error.h":
26 cdef extern from "src/core/lib/iomgr/gevent_util.h":
31 cdef extern from "src/core/lib/iomgr/sockaddr.h":
35 cdef extern from "src/core/lib/iomgr/resolve_address.h":
44 cdef extern from "src/core/lib/iomgr/resolve_address_custom.h":
56 cdef extern from "src/core/lib/iomgr/tcp_custom.h":
92 cdef extern from "src/core/lib/iomgr/timer_custom.h":
104 cdef extern from "src/core/lib/iomgr/pollset_custom.h":
111 cdef extern from "src/core/lib/iomgr/iomgr_custom.h":
[all …]
Darguments.pxd.pxi16 cdef void* _copy_pointer(void* pointer)
19 cdef void _destroy_pointer(void* pointer)
22 cdef int _compare_pointer(void* first_pointer, void* second_pointer)
25 cdef tuple _wrap_grpc_arg(grpc_arg arg)
28 cdef grpc_arg _unwrap_grpc_arg(tuple wrapped_arg)
31 cdef class _ArgumentProcessor:
33 cdef grpc_arg c_argument
35 cdef void c(self, argument, grpc_arg_pointer_vtable *vtable, references)
38 cdef class _ArgumentsProcessor:
40 cdef readonly tuple _arguments
[all …]
Dcredentials.pyx.pxi36 cdef class CallCredentials:
38 cdef grpc_call_credentials *c(self):
42 cdef int _get_metadata(
48 cdef size_t metadata_count
49 cdef grpc_metadata *c_metadata
62 cdef void _destroy(void *state) with gil:
66 cdef class MetadataPluginCallCredentials(CallCredentials):
72 cdef grpc_call_credentials *c(self):
73 cdef grpc_metadata_credentials_plugin c_metadata_plugin
82 cdef grpc_call_credentials *_composition(call_credentialses):
[all …]
Doperation.pyx.pxi16 cdef class Operation:
18 cdef void c(self):
21 cdef void un_c(self):
25 cdef class SendInitialMetadataOperation(Operation):
34 cdef void c(self):
44 cdef void un_c(self):
49 cdef class SendMessageOperation(Operation):
58 cdef void c(self):
61 cdef grpc_slice message_slice = grpc_slice_from_copied_buffer(
68 cdef void un_c(self):
[all …]
Dserver.pxd.pxi16 cdef class Server:
18 cdef grpc_arg_pointer_vtable _vtable
19 cdef readonly _ArgumentsProcessor _arguments_processor
20 cdef grpc_server *c_server
21 cdef bint is_started # start has been called
22 cdef bint is_shutting_down # shutdown has been called
23 cdef bint is_shutdown # notification of complete shutdown received
25 cdef CompletionQueue backup_shutdown_queue
27 cdef list references
28 cdef list registered_completion_queues
[all …]
Dgrpc_gevent.pyx.pxi27 cdef grpc_error* grpc_error_none():
30 cdef grpc_error* socket_error(str syscall, str err):
35 cdef resolved_addr_to_tuple(grpc_resolved_address* address):
36 cdef char* res_str
47 cdef sockaddr_to_tuple(const grpc_sockaddr* address, size_t length):
48 cdef grpc_resolved_address c_addr
53 cdef sockaddr_is_ipv4(const grpc_sockaddr* address, size_t length):
54 cdef grpc_resolved_address c_addr
59 cdef grpc_resolved_addresses* tuples_to_resolvaddr(tups):
60 cdef grpc_resolved_addresses* addresses
[all …]
Dchannel.pyx.pxi25 cdef str _call_error_metadata(metadata):
29 cdef str _call_error_no_metadata(c_call_error):
33 cdef str _call_error(c_call_error, metadata):
40 cdef _check_call_error_no_metadata(c_call_error):
47 cdef _check_and_raise_call_error_no_metadata(c_call_error):
53 cdef _check_call_error(c_call_error, metadata):
60 cdef void _raise_call_error_no_metadata(c_call_error) except *:
64 cdef void _raise_call_error(c_call_error, metadata) except *:
68 cdef _destroy_c_completion_queue(grpc_completion_queue *c_completion_queue):
73 cdef class _CallState:
[all …]
Drecords.pxd.pxi16 cdef bytes _slice_bytes(grpc_slice slice)
17 cdef grpc_slice _copy_slice(grpc_slice slice) nogil
18 cdef grpc_slice _slice_from_bytes(bytes value) nogil
21 cdef class CallDetails:
23 cdef grpc_call_details c_details
26 cdef class SslPemKeyCertPair:
28 cdef grpc_ssl_pem_key_cert_pair c_pair
29 cdef readonly object private_key, certificate_chain
32 cdef class CompressionOptions:
34 cdef grpc_compression_options c_options
Dtag.pyx.pxi16 cdef class _Tag:
18 cdef object event(self, grpc_event c_event):
22 cdef class _ConnectivityTag(_Tag):
27 cdef ConnectivityEvent event(self, grpc_event c_event):
31 cdef class _RequestCallTag(_Tag):
38 cdef void prepare(self):
43 cdef RequestCallEvent event(self, grpc_event c_event):
44 cdef tuple invocation_metadata = _metadata(&self.c_invocation_metadata)
51 cdef class _BatchOperationTag:
58 cdef void prepare(self):
[all …]
Darguments.pyx.pxi19 cdef void* _copy_pointer(void* pointer):
24 cdef void _destroy_pointer(void* pointer):
28 cdef int _compare_pointer(void* first_pointer, void* second_pointer):
37 cdef class _GrpcArgWrapper:
39 cdef grpc_arg arg
42 cdef tuple _wrap_grpc_arg(grpc_arg arg):
48 cdef grpc_arg _unwrap_grpc_arg(tuple wrapped_arg):
49 cdef _GrpcArgWrapper wrapped = wrapped_arg[1]
53 cdef class _ArgumentProcessor:
55 cdef void c(self, argument, grpc_arg_pointer_vtable *vtable, references):
[all …]
Drecords.pyx.pxi18 cdef bytes _slice_bytes(grpc_slice slice):
19 cdef void *start = grpc_slice_start_ptr(slice)
20 cdef size_t length = grpc_slice_length(slice)
23 cdef grpc_slice _copy_slice(grpc_slice slice) nogil:
24 cdef void *start = grpc_slice_start_ptr(slice)
25 cdef size_t length = grpc_slice_length(slice)
28 cdef grpc_slice _slice_from_bytes(bytes value) nogil:
29 cdef const char *value_ptr
30 cdef size_t length
127 cdef class CallDetails:
[all …]
Dcompletion_queue.pxd.pxi16 cdef grpc_event _next(grpc_completion_queue *c_completion_queue, deadline)
19 cdef _interpret_event(grpc_event c_event)
22 cdef class CompletionQueue:
24 cdef grpc_completion_queue *c_completion_queue
25 cdef bint is_shutting_down
26 cdef bint is_shutdown
28 cdef _interpret_event(self, grpc_event c_event)
Dcompletion_queue.pyx.pxi20 cdef int _INTERRUPT_CHECK_PERIOD_MS = 200
23 cdef grpc_event _next(grpc_completion_queue *c_completion_queue, deadline):
24 cdef gpr_timespec c_increment
25 cdef gpr_timespec c_timeout
26 cdef gpr_timespec c_deadline
49 cdef _interpret_event(grpc_event c_event):
50 cdef _Tag tag
65 cdef _latent_event(grpc_completion_queue *c_completion_queue, object deadline):
66 cdef grpc_event c_event = _next(c_completion_queue, deadline)
70 cdef class CompletionQueue:
[all …]
/external/python/cffi/testing/cffi1/
Dtest_verify1.py52 ffi.cdef("void some_completely_unknown_function();")
70 ffi.cdef("double sin(double x);")
74 def _Wconversion(cdef, source, **kargs): argument
78 ffi.cdef(cdef)
113 ffi.cdef("double sinf(float x);")
121 ffi.cdef("double sin(float x);")
129 ffi.cdef("size_t strlen(const char *s);")
141 ffi.cdef("%s foo(signed char x);" % typename)
148 ffi.cdef("size_t strlen(char[]);")
154 ffi.cdef("long double sinl(long double x);")
[all …]
Dtest_recompiler.py19 ffi1.cdef(included)
21 ffi.cdef(input)
136 ffi.cdef("float sin(double); double cos(double);")
147 ffi.cdef("int foo(int *);")
153 ffi.cdef("int *foo(void);")
160 ffi.cdef("int a[100];")
168 ffi.cdef("typedef int **foo_t;")
174 ffi.cdef("typedef ... foo_t;")
179 ffi.cdef("typedef ... *foo_t;")
184 ffi.cdef("int a, b, c;")
[all …]
Dtest_dlopen.py9 ffi.cdef("int close(int); static const int BB = 42; int somevar;")
24 ffi.cdef("static const long BB; static const float BF = 12;")
39 e = py.test.raises(CDefError, ffi.cdef, "#define BB 12.34")
45 ffi.cdef("#define FOO ...")
54 ffi.cdef("typedef int foobar_t;")
69 ffi.cdef("enum myenum_e { AA, BB, CC=-42 };")
85 ffi.cdef("struct foo_s { int a; signed char b[]; }; struct bar_s;")
100 ffi.cdef("#define ABC 123")
131 ffi.cdef("static const int BB = -42;")
146 baseffi.cdef("struct foo_s { int x; };")
[all …]
/external/python/cffi/testing/cffi0/
Dtest_verify.py70 ffi.cdef("void some_completely_unknown_function();")
89 ffi.cdef("double sin(double x);")
93 def _Wconversion(cdef, source, **kargs): argument
97 ffi.cdef(cdef)
132 ffi.cdef("double sinf(float x);")
140 ffi.cdef("double sin(float x);")
148 ffi.cdef("size_t strlen(const char *s);")
160 ffi.cdef("%s foo(signed char x);" % typename)
167 ffi.cdef("size_t strlen(char[]);")
173 ffi.cdef("long double sinl(long double x);")
[all …]
Dtest_parsing.py86 ffi.cdef("double sin(double x);")
94 ffi.cdef("int pipe(int pipefd[2]);")
103 ffi.cdef("short foo(int, ...);")
112 ffi.cdef("""
121 ffi.cdef("""
133 ffi.cdef("""
146 ffi.cdef("""
156 ffi.cdef("""
173 ffi.cdef("""
190 ffi.cdef("""
[all …]
Dtest_function.py28 ffi.cdef("""
39 ffi.cdef("""
51 ffi.cdef("""
64 ffi.cdef("""
77 ffi.cdef("""
86 ffi.cdef("""
101 ffi.cdef("long TlsAlloc(void); int TlsFree(long);")
112 ffi.cdef("""
129 ffi.cdef("""
146 ffi.cdef("""
[all …]
/external/tensorflow/tensorflow/python/framework/
Dfast_tensor_util.pyx11 cdef long i, n
23 cdef long i, n
31 cdef long i, n
39 cdef long i, n
47 cdef long i, n
54 cdef long i, n
61 cdef long i, n
68 cdef long i, n
75 cdef long i, n
83 cdef long i, n
[all …]

123456