Home
last modified time | relevance | path

Searched refs:IntPtr (Results 1 – 25 of 68) sorted by relevance

123

/external/grpc-grpc/src/csharp/Grpc.Core/Internal/
DUnmanagedLibrary.cs46 readonly IntPtr handle;
56 if (this.handle == IntPtr.Zero) in UnmanagedLibrary()
67 private IntPtr LoadSymbol(string symbolName) in LoadSymbol()
85IntPtr candidate = Windows.GetProcAddress(this.handle, symbolName + stackSize); in LoadSymbol()
86 if (candidate != IntPtr.Zero) in LoadSymbol()
92 return IntPtr.Zero; in LoadSymbol()
118 if (ptr == IntPtr.Zero)
132 private static IntPtr PlatformSpecificLoadLibrary(string libraryPath) in PlatformSpecificLoadLibrary()
175 internal static extern IntPtr LoadLibrary(string filename); in LoadLibrary()
178 internal static extern IntPtr GetProcAddress(IntPtr hModule, string procName); in GetProcAddress()
[all …]
DNativeMethods.Generated.cs439 … public delegate IntPtr grpcsharp_version_string_delegate(); // returns not-owned const char* in grpcsharp_version_string_delegate()
441 …public delegate IntPtr grpcsharp_batch_context_recv_initial_metadata_delegate(BatchContextSafeHand… in grpcsharp_batch_context_recv_initial_metadata_delegate()
442 …public delegate IntPtr grpcsharp_batch_context_recv_message_length_delegate(BatchContextSafeHandle… in grpcsharp_batch_context_recv_message_length_delegate()
445 …public delegate IntPtr grpcsharp_batch_context_recv_status_on_client_details_delegate(BatchContext… in grpcsharp_batch_context_recv_status_on_client_details_delegate()
446 …public delegate IntPtr grpcsharp_batch_context_recv_status_on_client_trailing_metadata_delegate(Ba… in grpcsharp_batch_context_recv_status_on_client_trailing_metadata_delegate()
449 public delegate void grpcsharp_batch_context_destroy_delegate(IntPtr ctx); in grpcsharp_batch_context_destroy_delegate()
452 …public delegate IntPtr grpcsharp_request_call_context_method_delegate(RequestCallContextSafeHandle… in grpcsharp_request_call_context_method_delegate()
453 …public delegate IntPtr grpcsharp_request_call_context_host_delegate(RequestCallContextSafeHandle c… in grpcsharp_request_call_context_host_delegate()
455 …public delegate IntPtr grpcsharp_request_call_context_request_metadata_delegate(RequestCallContext… in grpcsharp_request_call_context_request_metadata_delegate()
457 public delegate void grpcsharp_request_call_context_destroy_delegate(IntPtr ctx); in grpcsharp_request_call_context_destroy_delegate()
[all …]
DNativeMetadataCredentialsPlugin.cs26 …e void NativeMetadataInterceptor(IntPtr statePtr, IntPtr serviceUrlPtr, IntPtr methodNamePtr, IntP… in NativeMetadataInterceptor()
55 …NativeMetadataInterceptorHandler(IntPtr statePtr, IntPtr serviceUrlPtr, IntPtr methodNamePtr, IntP… in NativeMetadataInterceptorHandler()
76 …te async Task GetMetadataAsync(AuthInterceptorContext context, IntPtr callbackPtr, IntPtr userData… in GetMetadataAsync()
DCompletionRegistry.cs41 …readonly Dictionary<IntPtr, IOpCompletionCallback> dict = new Dictionary<IntPtr, IOpCompletionCall…
43 IntPtr lastRegisteredKey; // only for testing
52 public void Register(IntPtr key, IOpCompletionCallback callback) in Register()
86 public IOpCompletionCallback Extract(IntPtr key) in Extract()
108 public IntPtr LastRegisteredKey
116 private class IntPtrComparer : IEqualityComparer<IntPtr>
118 public bool Equals(IntPtr x, IntPtr y) in Equals()
123 public int GetHashCode(IntPtr obj) in GetHashCode()
DAuthContextSafeHandle.cs54 IntPtr authPropertyPtr = IntPtr.Zero; in ToAuthContext()
55 … while ((authPropertyPtr = Native.grpcsharp_auth_property_iterator_next(ref it)) != IntPtr.Zero) in ToAuthContext()
75 private AuthProperty PtrToAuthProperty(IntPtr authPropertyPtr) in PtrToAuthProperty()
92 public IntPtr Name;
93 public IntPtr Value;
102 public IntPtr AuthContext;
104 public IntPtr Name;
DNativeLogRedirector.cs28 …ternal delegate void GprLogDelegate(IntPtr fileStringPtr, int line, ulong threadId, IntPtr severit… in GprLogDelegate()
55 …private static void HandleWrite(IntPtr fileStringPtr, int line, ulong threadId, IntPtr severityStr… in HandleWrite()
DBatchContextSafeHandle.cs54 public IntPtr Handle
78 IntPtr metadataArrayPtr = Native.grpcsharp_batch_context_recv_initial_metadata(this); in GetReceivedInitialMetadata()
86IntPtr detailsPtr = Native.grpcsharp_batch_context_recv_status_on_client_details(this, out details… in GetReceivedStatusOnClient()
90IntPtr metadataArrayPtr = Native.grpcsharp_batch_context_recv_status_on_client_trailing_metadata(t… in GetReceivedStatusOnClient()
99 IntPtr len = Native.grpcsharp_batch_context_recv_message_length(this); in GetReceivedMessage()
100 if (len == new IntPtr(-1)) in GetReceivedMessage()
DMetadataArraySafeHandle.cs54 public static Metadata ReadMetadataFromPtrUnsafe(IntPtr metadataArray) in ReadMetadataFromPtrUnsafe()
56 if (metadataArray == IntPtr.Zero) in ReadMetadataFromPtrUnsafe()
68IntPtr keyPtr = Native.grpcsharp_metadata_array_get_key(metadataArray, index, out keyLen); in ReadMetadataFromPtrUnsafe()
71IntPtr valuePtr = Native.grpcsharp_metadata_array_get_value(metadataArray, index, out valueLen); in ReadMetadataFromPtrUnsafe()
79 internal IntPtr Handle
DRequestCallContextSafeHandle.cs46 public IntPtr Handle
68 IntPtr methodPtr = Native.grpcsharp_request_call_context_method(this, out methodLen); in GetServerRpcNew()
72 IntPtr hostPtr = Native.grpcsharp_request_call_context_host(this, out hostLen); in GetServerRpcNew()
77 IntPtr metadataArrayPtr = Native.grpcsharp_request_call_context_request_metadata(this); in GetServerRpcNew()
DPlatformApis.cs162 get { return IntPtr.Size == 8; }
182 static extern int uname(IntPtr buf); in uname()
201 if (buffer != IntPtr.Zero) in GetUname()
DSafeHandleZeroIsInvalid.cs29 public SafeHandleZeroIsInvalid() : base(IntPtr.Zero, true) in SafeHandleZeroIsInvalid()
37 return handle == IntPtr.Zero;
/external/tensorflow/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK/Scripts/
DInterpreter.cs18 using TFL_Interpreter = System.IntPtr;
19 using TFL_InterpreterOptions = System.IntPtr;
20 using TFL_Model = System.IntPtr;
21 using TFL_Tensor = System.IntPtr;
37 IntPtr modelDataPtr = modelDataHandle.AddrOfPinnedObject(); in Interpreter()
39 if (model == IntPtr.Zero) throw new Exception("Failed to create TensorFlowLite Model"); in Interpreter()
40 interpreter = TFL_NewInterpreter(model, /*options=*/IntPtr.Zero); in Interpreter()
41 …if (interpreter == IntPtr.Zero) throw new Exception("Failed to create TensorFlowLite Interpreter"); in Interpreter()
49 if (interpreter != IntPtr.Zero) TFL_DeleteInterpreter(interpreter); in Dispose()
50 interpreter = IntPtr.Zero; in Dispose()
[all …]
/external/grpc-grpc/templates/src/csharp/Grpc.Core/Internal/
DNativeMethods.Generated.cs.template7 'IntPtr grpcsharp_version_string() // returns not-owned const char*',
9 'IntPtr grpcsharp_batch_context_recv_initial_metadata(BatchContextSafeHandle ctx)',
10 'IntPtr grpcsharp_batch_context_recv_message_length(BatchContextSafeHandle ctx)',
13 …'IntPtr grpcsharp_batch_context_recv_status_on_client_details(BatchContextSafeHandle ctx, out UInt…
14 …'IntPtr grpcsharp_batch_context_recv_status_on_client_trailing_metadata(BatchContextSafeHandle ctx…
17 'void grpcsharp_batch_context_destroy(IntPtr ctx)',
20 …'IntPtr grpcsharp_request_call_context_method(RequestCallContextSafeHandle ctx, out UIntPtr method…
21 …'IntPtr grpcsharp_request_call_context_host(RequestCallContextSafeHandle ctx, out UIntPtr hostLeng…
23 'IntPtr grpcsharp_request_call_context_request_metadata(RequestCallContextSafeHandle ctx)',
25 'void grpcsharp_request_call_context_destroy(IntPtr ctx)',
[all …]
/external/llvm/lib/Object/
DCOFFObjectFile.cpp481 uintptr_t IntPtr = 0; in getHintName() local
482 if (std::error_code EC = getRvaPtr(Rva, IntPtr)) in getHintName()
484 const uint8_t *Ptr = reinterpret_cast<const uint8_t *>(IntPtr); in getHintName()
535 uintptr_t IntPtr = 0; in initImportTablePtr() local
536 if (std::error_code EC = getRvaPtr(ImportTableRva, IntPtr)) in initImportTablePtr()
538 if (std::error_code EC = checkOffset(Data, IntPtr, DataEntry->Size)) in initImportTablePtr()
541 const import_directory_table_entry *>(IntPtr); in initImportTablePtr()
557 uintptr_t IntPtr = 0; in initDelayImportTablePtr() local
558 if (std::error_code EC = getRvaPtr(RVA, IntPtr)) in initDelayImportTablePtr()
561 const delay_import_directory_table_entry *>(IntPtr); in initDelayImportTablePtr()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DCOFFObjectFile.cpp498 uintptr_t IntPtr = 0; in getHintName() local
499 if (std::error_code EC = getRvaPtr(Rva, IntPtr)) in getHintName()
501 const uint8_t *Ptr = reinterpret_cast<const uint8_t *>(IntPtr); in getHintName()
554 uintptr_t IntPtr = 0; in initImportTablePtr() local
555 if (std::error_code EC = getRvaPtr(ImportTableRva, IntPtr)) in initImportTablePtr()
557 if (std::error_code EC = checkOffset(Data, IntPtr, DataEntry->Size)) in initImportTablePtr()
560 const coff_import_directory_table_entry *>(IntPtr); in initImportTablePtr()
576 uintptr_t IntPtr = 0; in initDelayImportTablePtr() local
577 if (std::error_code EC = getRvaPtr(RVA, IntPtr)) in initDelayImportTablePtr()
580 const delay_import_directory_table_entry *>(IntPtr); in initDelayImportTablePtr()
[all …]
/external/zlib/src/contrib/dotzlib/DotZLib/
DGZipStream.cs21 private static extern IntPtr gzopen(string name, string mode); in gzopen()
24 private static extern int gzclose(IntPtr gzFile); in gzclose()
27 private static extern int gzwrite(IntPtr gzFile, int data, int length); in gzwrite()
30 private static extern int gzread(IntPtr gzFile, int data, int length); in gzread()
33 private static extern int gzgetc(IntPtr gzFile); in gzgetc()
36 private static extern int gzputc(IntPtr gzFile, int c); in gzputc()
41 private IntPtr _gzFile;
57 if (_gzFile == IntPtr.Zero) in GZipStream()
70 if (_gzFile == IntPtr.Zero) in GZipStream()
/external/clang/test/SemaCXX/
Dwarn-cast-align.cpp20 typedef int *IntPtr; in test0() typedef
21 …c = IntPtr(P); // expected-warning {{cast from 'char *' to 'IntPtr' (aka 'int *') increases requir… in test0()
43 typedef int *IntPtr; in test1() typedef
44 c = IntPtr(P); in test1()
Dcomposite-pointer-type.cpp39 typedef int *IntPtr; in f2() typedef
40 typedef IntPtr *IntPtrPtr; in f2()
41 typedef IntPtr const *IntPtrConstPtr; in f2()
/external/llvm/lib/DebugInfo/CodeView/
DRecordSerialization.cpp135 const support::ulittle32_t *IntPtr; in consume() local
136 if (auto EC = consumeObject(Data, IntPtr)) in consume()
138 Item = *IntPtr; in consume()
151 const support::little32_t *IntPtr; in consume() local
152 if (auto EC = consumeObject(Data, IntPtr)) in consume()
154 Item = *IntPtr; in consume()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopIdiomRecognize.cpp501 Type *IntPtr = TD->getIntPtrType(DestPtr->getContext()); in processLoopStridedStore() local
502 BECount = SE->getTruncateOrZeroExtend(BECount, IntPtr); in processLoopStridedStore()
504 const SCEV *NumBytesS = SE->getAddExpr(BECount, SE->getConstant(IntPtr, 1), in processLoopStridedStore()
507 NumBytesS = SE->getMulExpr(NumBytesS, SE->getConstant(IntPtr, StoreSize), in processLoopStridedStore()
511 Expander.expandCodeFor(NumBytesS, IntPtr, Preheader->getTerminator()); in processLoopStridedStore()
521 Builder.getInt8PtrTy(), IntPtr, in processLoopStridedStore()
607 Type *IntPtr = TD->getIntPtrType(SI->getContext()); in processLoopStoreOfLoopLoad() local
608 BECount = SE->getTruncateOrZeroExtend(BECount, IntPtr); in processLoopStoreOfLoopLoad()
610 const SCEV *NumBytesS = SE->getAddExpr(BECount, SE->getConstant(IntPtr, 1), in processLoopStoreOfLoopLoad()
613 NumBytesS = SE->getMulExpr(NumBytesS, SE->getConstant(IntPtr, StoreSize), in processLoopStoreOfLoopLoad()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-objdump/
DCOFFDump.cpp241 uintptr_t IntPtr = 0; in printSEHTable() local
242 error(Obj->getVaPtr(TableVA, IntPtr)); in printSEHTable()
243 const support::ulittle32_t *P = (const support::ulittle32_t *)IntPtr; in printSEHTable()
284 uintptr_t IntPtr = 0; in printTLSDirectory() local
287 error(Obj->getRvaPtr(DataDir->RelativeVirtualAddress, IntPtr)); in printTLSDirectory()
290 auto *TLSDir = reinterpret_cast<const coff_tls_directory32 *>(IntPtr); in printTLSDirectory()
293 auto *TLSDir = reinterpret_cast<const coff_tls_directory64 *>(IntPtr); in printTLSDirectory()
313 uintptr_t IntPtr = 0; in printLoadConfiguration() local
316 error(Obj->getRvaPtr(DataDir->RelativeVirtualAddress, IntPtr)); in printLoadConfiguration()
318 auto *LoadConf = reinterpret_cast<const coff_load_configuration32 *>(IntPtr); in printLoadConfiguration()
/external/llvm/tools/llvm-objdump/
DCOFFDump.cpp246 uintptr_t IntPtr = 0; in printSEHTable() local
247 error(Obj->getVaPtr(TableVA, IntPtr)); in printSEHTable()
248 const support::ulittle32_t *P = (const support::ulittle32_t *)IntPtr; in printSEHTable()
289 uintptr_t IntPtr = 0; in printTLSDirectory() local
292 error(Obj->getRvaPtr(DataDir->RelativeVirtualAddress, IntPtr)); in printTLSDirectory()
295 auto *TLSDir = reinterpret_cast<const coff_tls_directory32 *>(IntPtr); in printTLSDirectory()
298 auto *TLSDir = reinterpret_cast<const coff_tls_directory64 *>(IntPtr); in printTLSDirectory()
318 uintptr_t IntPtr = 0; in printLoadConfiguration() local
321 error(Obj->getRvaPtr(DataDir->RelativeVirtualAddress, IntPtr)); in printLoadConfiguration()
323 auto *LoadConf = reinterpret_cast<const coff_load_configuration32 *>(IntPtr); in printLoadConfiguration()
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/Internal/
DCompletionQueueSafeHandleTest.cs49 Assert.AreNotEqual(IntPtr.Zero, ev.success); in CreateAsyncAndShutdown()
50 Assert.AreEqual(IntPtr.Zero, ev.tag); in CreateAsyncAndShutdown()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DLoopIdiomRecognize.cpp803 Type *IntPtr, unsigned StoreSize, in getStartForNegStride() argument
805 const SCEV *Index = SE->getTruncateOrZeroExtend(BECount, IntPtr); in getStartForNegStride()
807 Index = SE->getMulExpr(Index, SE->getConstant(IntPtr, StoreSize), in getStartForNegStride()
816 static const SCEV *getNumBytes(const SCEV *BECount, Type *IntPtr, in getNumBytes() argument
827 DL->getTypeSizeInBits(IntPtr) && in getNumBytes()
833 IntPtr); in getNumBytes()
835 NumBytesS = SE->getAddExpr(SE->getTruncateOrZeroExtend(BECount, IntPtr), in getNumBytes()
836 SE->getOne(IntPtr), SCEV::FlagNUW); in getNumBytes()
841 NumBytesS = SE->getMulExpr(NumBytesS, SE->getConstant(IntPtr, StoreSize), in getNumBytes()
872 Type *IntPtr = Builder.getIntPtrTy(*DL, DestAS); in processLoopStridedStore() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64SelectionDAGInfo.cpp35 EVT IntPtr = TLI.getPointerTy(DAG.getDataLayout()); in EmitTargetCodeForMemset() local
48 DAG.getExternalSymbol(bzeroName, IntPtr), in EmitTargetCodeForMemset()

123