Lines Matching refs:dst
555 // to a dst slice.
3161 // 12 src bytes encode 3 dst bytes.
3169 // same empty dst string.
5140 wuffs_base__slice_u8 dst,
5170 wuffs_base__slice_u8 dst,
5188 wuffs_base__slice_u8 dst,
5192 this, dst, dst_palette, src);
5473 // wuffs_base__render_number_f64 writes the decimal encoding of x to dst and
5474 // returns the number of bytes written. If dst is shorter than the entire
5504 wuffs_base__render_number_f64(wuffs_base__slice_u8 dst,
5509 // wuffs_base__render_number_i64 writes the decimal encoding of x to dst and
5510 // returns the number of bytes written. If dst is shorter than the entire
5513 // dst will never be too short if its length is at least 20, also known as
5520 wuffs_base__render_number_i64(wuffs_base__slice_u8 dst,
5524 // wuffs_base__render_number_u64 writes the decimal encoding of x to dst and
5525 // returns the number of bytes written. If dst is shorter than the entire
5528 // dst will never be too short if its length is at least 21, also known as
5535 wuffs_base__render_number_u64(wuffs_base__slice_u8 dst,
5546 // U+006A. There are 2 src bytes for every dst byte.
5556 wuffs_base__base_16__decode2(wuffs_base__slice_u8 dst,
5562 // "jk", where e.g. 'j' is U+006A. There are 4 src bytes for every dst byte.
5572 wuffs_base__base_16__decode4(wuffs_base__slice_u8 dst,
5578 // U+006A. There are 2 dst bytes for every src byte.
5584 wuffs_base__base_16__encode2(wuffs_base__slice_u8 dst,
5590 // is U+006A. There are 4 dst bytes for every src byte.
5596 wuffs_base__base_16__encode2(wuffs_base__slice_u8 dst,
5626 // arbitrary bytes in dst.
5635 wuffs_base__base_64__decode(wuffs_base__slice_u8 dst,
5641 // encoded bytes in dst.
5647 wuffs_base__base_64__encode(wuffs_base__slice_u8 dst,
5743 wuffs_base__utf_8__encode(wuffs_base__slice_u8 dst, uint32_t code_point);
10398 virtual std::string CopyIn(IOBuffer* dst) = 0;
10410 virtual std::string CopyIn(IOBuffer* dst);
10431 virtual std::string CopyIn(IOBuffer* dst);
11172 // wuffs_base__slice_u8__copy_from_slice calls memmove(dst.ptr, src.ptr, len)
11173 // where len is the minimum of dst.len and src.len.
11178 wuffs_base__slice_u8__copy_from_slice(wuffs_base__slice_u8 dst,
11180 size_t len = dst.len < src.len ? dst.len : src.len;
11182 memmove(dst.ptr, src.ptr, len);
11301 wuffs_base__slice_u8 dst) {
11303 size_t n = dst.len;
11311 memmove(dst.ptr, iop_r, n);
11633 wuffs_base__slice_u8 dst,
11641 wuffs_base__slice_u8 dst,
11649 wuffs_base__slice_u8 dst,
14744 wuffs_base__private_implementation__render_inf(wuffs_base__slice_u8 dst,
14748 if (dst.len < 4) {
14751 wuffs_base__poke_u32le__no_bounds_check(dst.ptr, 0x666E492D); // '-Inf'le.
14756 if (dst.len < 4) {
14759 wuffs_base__poke_u32le__no_bounds_check(dst.ptr, 0x666E492B); // '+Inf'le.
14763 if (dst.len < 3) {
14766 wuffs_base__poke_u24le__no_bounds_check(dst.ptr, 0x666E49); // 'Inf'le.
14771 wuffs_base__private_implementation__render_nan(wuffs_base__slice_u8 dst) {
14772 if (dst.len < 3) {
14775 wuffs_base__poke_u24le__no_bounds_check(dst.ptr, 0x4E614E); // 'NaN'le.
14781 wuffs_base__slice_u8 dst,
14798 // Don't modify dst if the formatted number won't fit.
14799 if (n > dst.len) {
14805 ? &dst.ptr[dst.len - n]
14806 : &dst.ptr[0];
14848 wuffs_base__slice_u8 dst,
14870 // Don't modify dst if the formatted number won't fit.
14871 if (n > dst.len) {
14877 ? &dst.ptr[dst.len - n]
14878 : &dst.ptr[0];
14931 wuffs_base__render_number_f64(wuffs_base__slice_u8 dst,
14946 return wuffs_base__private_implementation__render_nan(dst);
14948 return wuffs_base__private_implementation__render_inf(dst, neg, options);
14983 dst, &h, precision, options);
14995 dst, &h, precision, options);
15025 dst, &h, (p > 0) ? (p - 1) : 0, options);
15035 dst, &h, precision, options);
15387 wuffs_base__private_implementation__render_number_u64(wuffs_base__slice_u8 dst,
15425 if (n > dst.len) {
15428 memcpy(dst.ptr + ((options & WUFFS_BASE__RENDER_NUMBER_XXX__ALIGN_RIGHT)
15429 ? (dst.len - n)
15436 wuffs_base__render_number_i64(wuffs_base__slice_u8 dst,
15444 return wuffs_base__private_implementation__render_number_u64(dst, u, options,
15449 wuffs_base__render_number_u64(wuffs_base__slice_u8 dst,
15452 return wuffs_base__private_implementation__render_number_u64(dst, x, options,
15459 wuffs_base__base_16__decode2(wuffs_base__slice_u8 dst,
15466 if (dst.len < src_len2) {
15467 len = dst.len;
15480 uint8_t* d = dst.ptr;
15497 wuffs_base__base_16__decode4(wuffs_base__slice_u8 dst,
15503 size_t len = dst.len < src_len4 ? dst.len : src_len4;
15504 if (dst.len < src_len4) {
15505 len = dst.len;
15518 uint8_t* d = dst.ptr;
15535 wuffs_base__base_16__encode2(wuffs_base__slice_u8 dst,
15540 size_t dst_len2 = dst.len / 2;
15554 uint8_t* d = dst.ptr;
15572 wuffs_base__base_16__encode4(wuffs_base__slice_u8 dst,
15577 size_t dst_len4 = dst.len / 4;
15591 uint8_t* d = dst.ptr;
15729 wuffs_base__base_64__decode(wuffs_base__slice_u8 dst,
15737 uint8_t* d_ptr = dst.ptr;
15738 size_t d_len = dst.len;
15841 o.num_dst = (size_t)(d_ptr - dst.ptr);
15847 wuffs_base__base_64__encode(wuffs_base__slice_u8 dst,
15855 uint8_t* d_ptr = dst.ptr;
15856 size_t d_len = dst.len;
15924 o.num_dst = (size_t)(d_ptr - dst.ptr);
16688 // Convert dst from nonpremul to premul.
16693 // Calculate the inverse of the src-alpha: how much of the dst to keep.
16696 // Composite src (nonpremul) over dst (premul).
16702 // Convert dst from premul to nonpremul.
16741 // Convert dst from nonpremul to premul.
16746 // Calculate the inverse of the src-alpha: how much of the dst to keep.
16749 // Composite src (nonpremul) over dst (premul).
16755 // Convert dst from premul to nonpremul.
16779 // Convert dst from nonpremul to premul.
16784 // Calculate the inverse of the src-alpha: how much of the dst to keep.
16787 // Composite src (premul) over dst (premul).
16793 // Convert dst from premul to nonpremul.
16823 // Convert dst from nonpremul to premul.
16828 // Calculate the inverse of the src-alpha: how much of the dst to keep.
16831 // Composite src (premul) over dst (premul).
16837 // Convert dst from premul to nonpremul.
16861 // Calculate the inverse of the src-alpha: how much of the dst to keep.
16864 // Composite src (nonpremul) over dst (premul).
16893 // Calculate the inverse of the src-alpha: how much of the dst to keep.
16896 // Composite src (nonpremul) over dst (premul).
16919 // Calculate the inverse of the src-alpha: how much of the dst to keep.
16922 // Composite src (premul) over dst (premul).
17312 // Calculate the inverse of the src-alpha: how much of the dst to keep.
17315 // Composite src (nonpremul) over dst (premul).
17368 // Calculate the inverse of the src-alpha: how much of the dst to keep.
17371 // Composite src (nonpremul) over dst (premul).
17453 // Calculate the inverse of the src-alpha: how much of the dst to keep.
17456 // Composite src (premul) over dst (premul).
17573 // Calculate the inverse of the src-alpha: how much of the dst to keep.
17576 // Composite src (nonpremul) over dst (premul).
17660 // Calculate the inverse of the src-alpha: how much of the dst to keep.
17663 // Composite src (premul) over dst (premul).
17985 // Calculate the inverse of the src-alpha: how much of the dst to keep.
17988 // Composite src (nonpremul) over dst (premul).
18033 // Calculate the inverse of the src-alpha: how much of the dst to keep.
18036 // Composite src (nonpremul) over dst (premul).
18108 // Calculate the inverse of the src-alpha: how much of the dst to keep.
18111 // Composite src (premul) over dst (premul).
18186 // Calculate the inverse of the src-alpha: how much of the dst to keep.
18189 // Composite src (nonpremul) over dst (premul).
18261 // Calculate the inverse of the src-alpha: how much of the dst to keep.
18264 // Composite src (premul) over dst (premul).
19693 // ">=", the last 4-byte store could write past the end of the dst slice.
21398 wuffs_base__slice_u8 dst,
21409 (*p->private_impl.func)(dst.ptr, dst.len, dst_palette.ptr,
21420 wuffs_base__slice_u8 dst,
21428 (*p->private_impl.func)(dst.ptr, dst.len, dst_palette.ptr,
21439 wuffs_base__slice_u8 dst,
21443 return (*p->private_impl.func)(dst.ptr, dst.len, dst_palette.ptr,
21452 wuffs_base__slice_u8 dst,
21457 dst.ptr, dst.len, dst_palette.ptr, dst_palette.len, num_pixels,
21473 wuffs_base__utf_8__encode(wuffs_base__slice_u8 dst, uint32_t code_point) {
21475 if (dst.len >= 1) {
21476 dst.ptr[0] = (uint8_t)(code_point);
21481 if (dst.len >= 2) {
21482 dst.ptr[0] = (uint8_t)(0xC0 | ((code_point >> 6)));
21483 dst.ptr[1] = (uint8_t)(0x80 | ((code_point >> 0) & 0x3F));
21488 if ((dst.len >= 3) && ((code_point < 0xD800) || (0xDFFF < code_point))) {
21489 dst.ptr[0] = (uint8_t)(0xE0 | ((code_point >> 12)));
21490 dst.ptr[1] = (uint8_t)(0x80 | ((code_point >> 6) & 0x3F));
21491 dst.ptr[2] = (uint8_t)(0x80 | ((code_point >> 0) & 0x3F));
21496 if (dst.len >= 4) {
21497 dst.ptr[0] = (uint8_t)(0xF0 | ((code_point >> 18)));
21498 dst.ptr[1] = (uint8_t)(0x80 | ((code_point >> 12) & 0x3F));
21499 dst.ptr[2] = (uint8_t)(0x80 | ((code_point >> 6) & 0x3F));
21500 dst.ptr[3] = (uint8_t)(0x80 | ((code_point >> 0) & 0x3F));
44043 FileInput::CopyIn(IOBuffer* dst) {
44046 } else if (!dst) {
44048 } else if (dst->meta.closed) {
44051 dst->compact();
44052 size_t n = fread(dst->writer_pointer(), 1, dst->writer_length(), m_f);
44053 dst->meta.wi += n;
44054 dst->meta.closed = feof(m_f);
44079 MemoryInput::CopyIn(IOBuffer* dst) {
44080 if (!dst) {
44082 } else if (dst->meta.closed) {
44084 } else if (wuffs_base__slice_u8__overlaps(dst->data, m_io.data)) {
44085 // Treat m_io's data as immutable, so don't compact dst or otherwise write
44089 dst->compact();
44090 size_t nd = dst->writer_length();
44093 memcpy(dst->writer_pointer(), m_io.reader_pointer(), n);
44095 dst->meta.wi += n;
44096 dst->meta.closed = m_io.reader_length() == 0;