Skip to content

Commit

Permalink
Add .pxd file for Cython utils
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed Aug 11, 2020
1 parent 55ce3d2 commit 920c3b8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ucp/_libs/utils.pxd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
# See file LICENSE for terms.

# cython: language_level=3


from libc.stdint cimport uintptr_t


cpdef uintptr_t get_buffer_data(buffer, bint check_writable=*) except *
cpdef Py_ssize_t get_buffer_nbytes(buffer, check_min_size, bint cuda_support) except *

0 comments on commit 920c3b8

Please sign in to comment.