Lines Matching +full:safer +full:- +full:buffer
4 * Use of this source code is governed by a BSD-style license that can be
31 * If this bit is set, the returned buffer must be zero-initialized. If this bit is not set
32 * the buffer can be uninitialized.
43 * Return a block of memory (at least 4-byte aligned) of at least the specified size.
45 * on the SK_MALLOC_THROW bit. If the allocation succeeds, the memory will be zero-initialized
54 * If size is 0, it will call sk_free on buffer and return null. (This behavior is implementation-
57 SK_API extern void* sk_realloc_throw(void* buffer, size_t size);
88 SK_API extern void* sk_realloc_throw(void* buffer, size_t count, size_t elemSize);
104 // bzero is safer than memset, but we can't rely on it, so... sk_bzero()
105 static inline void sk_bzero(void* buffer, size_t size) { in sk_bzero() argument
108 memset(buffer, 0, size); in sk_bzero()
147 return 0; // we treat zero-length buffers as "equal" in sk_careful_memcmp()