2 * util.h - Header file for util.c
4 * Copyright (C) 1997 RĂ©gis Duchesne
5 * Copyright (C) 2001 Anton Altaparmakov (AIA)
8 /* The first 16 inodes correspond to NTFS special files. */
28 /* Memory management */
29 void *ntfs_calloc(int size);
31 /* String operations */
32 /* Copy Unicode <-> ASCII */
33 void ntfs_ascii2uni(short int *to, char *from, int len);
36 int ntfs_uni_strncmp(short int* a, short int *b, int n);
37 int ntfs_ua_strncmp(short int* a, char* b, int n);
39 /* Same address space copies */
40 void ntfs_put(ntfs_io *dest, void *src, ntfs_size_t n);
41 void ntfs_get(void* dest, ntfs_io *src, ntfs_size_t n);
43 /* Charset conversion */
44 int ntfs_encodeuni(ntfs_volume *vol, ntfs_u16 *in, int in_len, char **out,
46 int ntfs_decodeuni(ntfs_volume *vol, char *in, int in_len, ntfs_u16 **out,
51 ntfs_time_t ntfs_ntutc2unixutc(ntfs_time64_t ntutc);
52 ntfs_time64_t ntfs_unixutc2ntutc(ntfs_time_t t);
55 void ntfs_indexname(char *buf, int type);