annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/lib/python3.8/site-packages/pysam/libcutils.pxd @ 68:5028fdace37b

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 16:23:26 -0400
parents
children
rev   line source
jpayne@68 1 # cython: language_level=3
jpayne@68 2 #########################################################################
jpayne@68 3 # Utility functions used across pysam
jpayne@68 4 #########################################################################
jpayne@68 5 cimport cython
jpayne@68 6 from cpython cimport array as c_array
jpayne@68 7
jpayne@68 8 cpdef parse_region(contig=*, start=*, stop=*, region=*, reference=*, end=*)
jpayne@68 9
jpayne@68 10 cdef int libc_whence_from_io(int whence)
jpayne@68 11
jpayne@68 12 #########################################################################
jpayne@68 13 # Utility functions for quality string conversions
jpayne@68 14
jpayne@68 15 cpdef c_array.array qualitystring_to_array(input_str, int offset=*)
jpayne@68 16 cpdef array_to_qualitystring(c_array.array arr, int offset=*)
jpayne@68 17 cpdef qualities_to_qualitystring(qualities, int offset=*)
jpayne@68 18
jpayne@68 19 ########################################################################
jpayne@68 20 ## String encoding configuration facilities
jpayne@68 21 ########################################################################
jpayne@68 22
jpayne@68 23 cpdef get_encoding_error_handler()
jpayne@68 24 cpdef set_encoding_error_handler(name)
jpayne@68 25
jpayne@68 26 ########################################################################
jpayne@68 27 ## Python 3 compatibility functions
jpayne@68 28 ########################################################################
jpayne@68 29 cdef charptr_to_str(const char *s, encoding=*, errors=*)
jpayne@68 30 cdef bytes charptr_to_bytes(const char *s, encoding=*, errors=*)
jpayne@68 31 cdef charptr_to_str_w_len(const char* s, size_t n, encoding=*, errors=*)
jpayne@68 32 cdef force_str(object s, encoding=*, errors=*)
jpayne@68 33 cdef bytes force_bytes(object s, encoding=*, errors=*)
jpayne@68 34 cdef decode_bytes(bytes s, encoding=*, errors=*)
jpayne@68 35 cdef bytes encode_filename(object filename)
jpayne@68 36 cdef from_string_and_size(const char *s, size_t length)
jpayne@68 37