Searched refs:dst_len (Results 1 - 5 of 5) sorted by relevance

/fuchsia/zircon/system/ulib/utf_conversion/include/utf_conversion/
H A Dutf_conversion.h59 // dst_len : A pointer to the length of of the destination buffer (in bytes).
70 uint8_t* dst, size_t* dst_len,
74 uint8_t* dst, size_t* dst_len,
/fuchsia/zircon/system/ulib/utf_conversion/
H A Dutf_conversion.cpp90 zx_status_t Utf16ToUtf8(const uint16_t* src, size_t src_len, uint8_t* dst, size_t* dst_len, argument
97 ZX_DEBUG_ASSERT((src != nullptr) && (dst_len != nullptr));
98 ZX_DEBUG_ASSERT((dst != nullptr) || (*dst_len == 0));
133 wr += EncodeUtf8CodePoint(code_point, dst, *dst_len, wr);
137 *dst_len = wr;
145 zx_status_t utf16_to_utf8(const uint16_t* src, size_t src_len, uint8_t* dst, size_t *dst_len, argument
153 // dst_len *must* be provided, and all flags need to be understood.
154 if ((dst_len == nullptr) || (flags & ~ALL_FLAGS)) {
158 // dst may only be null if dst_len is zero (eg; a sizing operation)
159 if ((dst == nullptr) && (*dst_len !
[all...]
/fuchsia/zircon/system/utest/utf_conversion/
H A Dmain.cpp32 size_t dst_len; local
36 dst_len = 1;
37 res = utf16_to_utf8(&src, 1, nullptr, &dst_len);
39 ASSERT_EQ(1, dst_len, "dst_len modified after conversion with invalid args");
43 ASSERT_EQ(ZX_ERR_INVALID_ARGS, res, "null dst_len should fail with INVALID_ARGS");
47 res = utf16_to_utf8(&src, 1, &dst, &dst_len, 0x80000000);
49 ASSERT_EQ(1, dst_len, "dst_len modified after conversion with invalid args");
52 // A null dest buffer is allowed if (and only if) the dst_len i
70 size_t dst_len; local
[all...]
/fuchsia/zircon/system/uapp/gpt/
H A Dgpt.c79 static char* cros_flags_to_cstring(char* dst, size_t dst_len, uint64_t flags) { argument
83 snprintf(dst, dst_len, "priority=%u tries=%u successful=%u", priority, tries, successful);
84 dst[dst_len-1] = 0;
88 static char* flags_to_cstring(char* dst, size_t dst_len, const uint8_t* guid, uint64_t flags) { argument
90 return cros_flags_to_cstring(dst, dst_len, flags);
92 snprintf(dst, dst_len, "0x%016" PRIx64, flags);
94 dst[dst_len-1] = 0;
/fuchsia/zircon/system/host/minfs/
H A Dmain.cpp445 size_t dst_len = strlen(dst); local
453 dst_len + name_len + 1 > PATH_MAX - 1) {
460 strncat(dst, dir_entry->d_name, PATH_MAX - dst_len - 2);
468 dst[dst_len] = '\0';

Completed in 85 milliseconds