htslib.kstring

Undocumented in source.

Members

Aliases

KSTRING_T
alias KSTRING_T = kstring_t

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

kgets_func
alias kgets_func = char* function(char*, int, void*)

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

kgets_func2
alias kgets_func2 = c_long function(char*, size_t, void*)

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

ssize_t
alias ssize_t = ptrdiff_t

Undocumented in source.

Functions

kgetline
int kgetline(kstring_t* s, char* function(char*, int, void*) fgets, void* fp)

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

kgetline2
int kgetline2(kstring_t* s, ssize_t function(char*, size_t, void*) fgets, void* fp)

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

kmemmem
void* kmemmem(const(void)* _str, int n, const(void)* _pat, int m, int** _prep)

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

kputc
int kputc(int c, kstring_t* s)

Undocumented in source. Be warned that the author may not have intended to support it.

kputc_
int kputc_(int c, kstring_t* s)

Undocumented in source. Be warned that the author may not have intended to support it.

kputd
int kputd(double d, kstring_t* s)

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

kputl
int kputl(c_long c, kstring_t* s)

Undocumented in source. Be warned that the author may not have intended to support it.

kputll
int kputll(long c, kstring_t* s)

Undocumented in source. Be warned that the author may not have intended to support it.

kputs
int kputs(const(char)* p, kstring_t* s)

Undocumented in source. Be warned that the author may not have intended to support it.

kputsn
int kputsn(const(char)* p, size_t l, kstring_t* s)

Undocumented in source. Be warned that the author may not have intended to support it.

kputsn_
int kputsn_(const(void)* p, size_t l, kstring_t* s)

Undocumented in source. Be warned that the author may not have intended to support it.

kputuw
int kputuw(uint x, kstring_t* s)

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

kputw
int kputw(int c, kstring_t* s)

Undocumented in source. Be warned that the author may not have intended to support it.

kroundup_size_t
void kroundup_size_t(size_t x)

round 32 or 64 bit (u)int x to power of 2 that is equal or greater (JSB)

ks_c_str
const(char)* ks_c_str(kstring_t* s)

Unlike ks_str(), this function will never return NULL. If the kstring is empty it will return a read-only empty string. As the returned value may be read-only, the caller should not attempt to modify it.

ks_clear
kstring_t* ks_clear(kstring_t* s)

@return The kstring itself

ks_expand
int ks_expand(kstring_t* s, size_t expansion)

Increase kstring capacity by a given number of bytes

ks_free
void ks_free(kstring_t* s)

Safely free the underlying buffer in a kstring.

ks_initialize
void ks_initialize(kstring_t* s)

@note Not to be used if the buffer has been allocated. Use ks_release() or ks_clear() instead.

ks_len
size_t ks_len(kstring_t* s)

Undocumented in source. Be warned that the author may not have intended to support it.

ks_release
char* ks_release(kstring_t* s)

Undocumented in source. Be warned that the author may not have intended to support it.

ks_resize
int ks_resize(kstring_t* s, size_t size)

Resize a kstring to a given capacity

ks_str
char* ks_str(kstring_t* s)

Returns the kstring buffer

ksplit
int* ksplit(kstring_t* s, int delimiter, int* n)

Undocumented in source. Be warned that the author may not have intended to support it.

ksplit_core
int ksplit_core(char* s, int delimiter, int* _max, int** _offsets)

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

ksprintf
int ksprintf(kstring_t* s, const(char)* fmt, ...)

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

kstrnstr
char* kstrnstr(const(char)* str, const(char)* pat, int n, int** _prep)

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

kstrstr
char* kstrstr(const(char)* str, const(char)* pat, int** _prep)

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

kstrtok
char* kstrtok(const(char)* str, const(char)* sep, ks_tokaux_t* aux)

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

kvsprintf
int kvsprintf(kstring_t* s, const(char)* fmt, va_list ap)

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

ks_tokaux_t
struct ks_tokaux_t

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

kstring_t
struct kstring_t

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta