/third_party/skia/third_party/externals/harfbuzz/src/ |
D | hb-ot-shape-complex-vowel-constraints.cc | 24 _output_dotted_circle (hb_buffer_t *buffer) in _output_dotted_circle() argument 26 (void) buffer->output_glyph (0x25CCu); in _output_dotted_circle() 27 _hb_glyph_info_reset_continuation (&buffer->prev()); in _output_dotted_circle() 31 _output_with_dotted_circle (hb_buffer_t *buffer) in _output_with_dotted_circle() argument 33 _output_dotted_circle (buffer); in _output_with_dotted_circle() 34 (void) buffer->next_glyph (); in _output_with_dotted_circle() 39 hb_buffer_t *buffer, in _hb_preprocess_text_vowel_constraints() argument 45 if (buffer->flags & HB_BUFFER_FLAG_DO_NOT_INSERT_DOTTED_CIRCLE) in _hb_preprocess_text_vowel_constraints() 54 buffer->clear_output (); in _hb_preprocess_text_vowel_constraints() 55 unsigned int count = buffer->len; in _hb_preprocess_text_vowel_constraints() [all …]
|
D | hb-ot-shape-normalize.cc | 102 output_char (hb_buffer_t *buffer, hb_codepoint_t unichar, hb_codepoint_t glyph) in output_char() argument 105 buffer->cur().glyph_index() = glyph; in output_char() 106 (void) buffer->output_glyph (unichar); in output_char() 107 _hb_glyph_info_set_unicode_props (&buffer->prev(), buffer); in output_char() 111 next_char (hb_buffer_t *buffer, hb_codepoint_t glyph) in next_char() argument 113 buffer->cur().glyph_index() = glyph; in next_char() 114 (void) buffer->next_glyph (); in next_char() 118 skip_char (hb_buffer_t *buffer) in skip_char() argument 120 buffer->skip_glyph (); in skip_char() 128 hb_buffer_t * const buffer = c->buffer; in decompose() local [all …]
|
D | hb-buffer.cc | 644 hb_buffer_t *buffer; in hb_buffer_create() local 646 if (!(buffer = hb_object_create<hb_buffer_t> ())) in hb_buffer_create() 649 buffer->max_len = HB_BUFFER_MAX_LEN_DEFAULT; in hb_buffer_create() 650 buffer->max_ops = HB_BUFFER_MAX_OPS_DEFAULT; in hb_buffer_create() 652 buffer->reset (); in hb_buffer_create() 654 return buffer; in hb_buffer_create() 685 hb_buffer_reference (hb_buffer_t *buffer) in hb_buffer_reference() argument 687 return hb_object_reference (buffer); in hb_buffer_reference() 701 hb_buffer_destroy (hb_buffer_t *buffer) in hb_buffer_destroy() argument 703 if (!hb_object_destroy (buffer)) return; in hb_buffer_destroy() [all …]
|
/third_party/harfbuzz/src/ |
D | hb-ot-shape-complex-vowel-constraints.cc | 24 _output_dotted_circle (hb_buffer_t *buffer) in _output_dotted_circle() argument 26 (void) buffer->output_glyph (0x25CCu); in _output_dotted_circle() 27 _hb_glyph_info_reset_continuation (&buffer->prev()); in _output_dotted_circle() 31 _output_with_dotted_circle (hb_buffer_t *buffer) in _output_with_dotted_circle() argument 33 _output_dotted_circle (buffer); in _output_with_dotted_circle() 34 (void) buffer->next_glyph (); in _output_with_dotted_circle() 39 hb_buffer_t *buffer, in _hb_preprocess_text_vowel_constraints() argument 45 if (buffer->flags & HB_BUFFER_FLAG_DO_NOT_INSERT_DOTTED_CIRCLE) in _hb_preprocess_text_vowel_constraints() 54 buffer->clear_output (); in _hb_preprocess_text_vowel_constraints() 55 unsigned int count = buffer->len; in _hb_preprocess_text_vowel_constraints() [all …]
|
D | hb-ot-shape-normalize.cc | 102 output_char (hb_buffer_t *buffer, hb_codepoint_t unichar, hb_codepoint_t glyph) in output_char() argument 105 buffer->cur().glyph_index() = glyph; in output_char() 106 (void) buffer->output_glyph (unichar); in output_char() 107 _hb_glyph_info_set_unicode_props (&buffer->prev(), buffer); in output_char() 111 next_char (hb_buffer_t *buffer, hb_codepoint_t glyph) in next_char() argument 113 buffer->cur().glyph_index() = glyph; in next_char() 114 (void) buffer->next_glyph (); in next_char() 118 skip_char (hb_buffer_t *buffer) in skip_char() argument 120 buffer->skip_glyph (); in skip_char() 128 hb_buffer_t * const buffer = c->buffer; in decompose() local [all …]
|
D | hb-buffer.cc | 657 hb_buffer_t *buffer; in hb_buffer_create() local 659 if (!(buffer = hb_object_create<hb_buffer_t> ())) in hb_buffer_create() 662 buffer->max_len = HB_BUFFER_MAX_LEN_DEFAULT; in hb_buffer_create() 663 buffer->max_ops = HB_BUFFER_MAX_OPS_DEFAULT; in hb_buffer_create() 665 buffer->reset (); in hb_buffer_create() 667 return buffer; in hb_buffer_create() 698 hb_buffer_reference (hb_buffer_t *buffer) in hb_buffer_reference() argument 700 return hb_object_reference (buffer); in hb_buffer_reference() 714 hb_buffer_destroy (hb_buffer_t *buffer) in hb_buffer_destroy() argument 716 if (!hb_object_destroy (buffer)) return; in hb_buffer_destroy() [all …]
|
/third_party/flutter/skia/third_party/externals/harfbuzz/src/ |
D | hb-ot-shape-complex-vowel-constraints.cc | 19 _output_dotted_circle (hb_buffer_t *buffer) in _output_dotted_circle() argument 21 hb_glyph_info_t &dottedcircle = buffer->output_glyph (0x25CCu); in _output_dotted_circle() 26 _output_with_dotted_circle (hb_buffer_t *buffer) in _output_with_dotted_circle() argument 28 _output_dotted_circle (buffer); in _output_with_dotted_circle() 29 buffer->next_glyph (); in _output_with_dotted_circle() 34 hb_buffer_t *buffer, in _hb_preprocess_text_vowel_constraints() argument 40 if (buffer->flags & HB_BUFFER_FLAG_DO_NOT_INSERT_DOTTED_CIRCLE) in _hb_preprocess_text_vowel_constraints() 50 buffer->clear_output (); in _hb_preprocess_text_vowel_constraints() 51 unsigned int count = buffer->len; in _hb_preprocess_text_vowel_constraints() 52 switch ((unsigned) buffer->props.script) in _hb_preprocess_text_vowel_constraints() [all …]
|
D | hb-ot-shape-normalize.cc | 98 output_char (hb_buffer_t *buffer, hb_codepoint_t unichar, hb_codepoint_t glyph) in output_char() argument 100 buffer->cur().glyph_index() = glyph; in output_char() 101 buffer->output_glyph (unichar); /* This is very confusing indeed. */ in output_char() 102 _hb_glyph_info_set_unicode_props (&buffer->prev(), buffer); in output_char() 106 next_char (hb_buffer_t *buffer, hb_codepoint_t glyph) in next_char() argument 108 buffer->cur().glyph_index() = glyph; in next_char() 109 buffer->next_glyph (); in next_char() 113 skip_char (hb_buffer_t *buffer) in skip_char() argument 115 buffer->skip_glyph (); in skip_char() 123 hb_buffer_t * const buffer = c->buffer; in decompose() local [all …]
|
/third_party/node/test/parallel/ |
D | test-buffer-readdouble.js | 7 const buffer = Buffer.allocUnsafe(8); constant 9 buffer[0] = 0x55; 10 buffer[1] = 0x55; 11 buffer[2] = 0x55; 12 buffer[3] = 0x55; 13 buffer[4] = 0x55; 14 buffer[5] = 0x55; 15 buffer[6] = 0xd5; 16 buffer[7] = 0x3f; 17 assert.strictEqual(buffer.readDoubleBE(0), 1.1945305291680097e+103); [all …]
|
D | test-buffer-readfloat.js | 7 const buffer = Buffer.alloc(4); constant 9 buffer[0] = 0; 10 buffer[1] = 0; 11 buffer[2] = 0x80; 12 buffer[3] = 0x3f; 13 assert.strictEqual(buffer.readFloatBE(0), 4.600602988224807e-41); 14 assert.strictEqual(buffer.readFloatLE(0), 1); 16 buffer[0] = 0; 17 buffer[1] = 0; 18 buffer[2] = 0; [all …]
|
D | test-buffer-readint.js | 8 const buffer = Buffer.alloc(4); constant 13 buffer[`read${fn}`](undefined); 14 buffer[`read${fn}`](); 18 () => buffer[`read${fn}`](o), 27 () => buffer[`read${fn}`](offset), 36 () => buffer[`read${fn}`](offset), 65 const buffer = Buffer.from([0x16, 0x79, 0x65, 0x6e, 0x69, 0x78]); constant 67 assert.strictEqual(buffer.readInt16BE(0), 0x1679); 68 assert.strictEqual(buffer.readInt16LE(0), 0x7916); 70 buffer[0] = 0xff; [all …]
|
D | test-buffer-writeint.js | 16 const buffer = Buffer.alloc(2); constant 18 buffer.writeInt8(0x23, 0); 19 buffer.writeInt8(-5, 1); 20 assert.ok(buffer.equals(new Uint8Array([ 0x23, 0xfb ]))); 23 buffer.writeInt8(0x7f, 0); 24 buffer.writeInt8(-0x80, 1); 25 assert.ok(buffer.equals(new Uint8Array([ 0x7f, 0x80 ]))); 28 buffer.writeInt8(0x7f + 1, 0); 31 buffer.writeInt8(-0x80 - 1, 0); 35 buffer.writeInt8(23, undefined); [all …]
|
/third_party/icu/vendor/double-conversion/upstream/test/cctest/ |
D | test-fixed-dtoa.cc | 43 Vector<char> buffer(buffer_container, kBufferSize); in TEST() local 47 CHECK(FastFixedDtoa(1.0, 1, buffer, &length, &point)); in TEST() 48 CHECK_EQ("1", buffer.start()); in TEST() 51 CHECK(FastFixedDtoa(1.0, 15, buffer, &length, &point)); in TEST() 52 CHECK_EQ("1", buffer.start()); in TEST() 55 CHECK(FastFixedDtoa(1.0, 0, buffer, &length, &point)); in TEST() 56 CHECK_EQ("1", buffer.start()); in TEST() 59 CHECK(FastFixedDtoa(0xFFFFFFFF, 5, buffer, &length, &point)); in TEST() 60 CHECK_EQ("4294967295", buffer.start()); in TEST() 63 CHECK(FastFixedDtoa(4294967296.0, 5, buffer, &length, &point)); in TEST() [all …]
|
D | test-bignum.cc | 52 char buffer[kBufferSize]; in TEST() local 56 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST() 57 CHECK_EQ("0", buffer); in TEST() 59 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST() 60 CHECK_EQ("A", buffer); in TEST() 62 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST() 63 CHECK_EQ("20", buffer); in TEST() 67 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST() 68 CHECK_EQ("0", buffer); in TEST() 70 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST() [all …]
|
D | test-bignum-dtoa.cc | 60 Vector<char> buffer(buffer_container, kBufferSize); in TEST() local 64 BignumDtoa(1.0, BIGNUM_DTOA_SHORTEST, 0, buffer, &length, &point); in TEST() 65 CHECK_EQ("1", buffer.start()); in TEST() 68 BignumDtoa(1.0, BIGNUM_DTOA_FIXED, 3, buffer, &length, &point); in TEST() 70 TrimRepresentation(buffer); in TEST() 71 CHECK_EQ("1", buffer.start()); in TEST() 74 BignumDtoa(1.0, BIGNUM_DTOA_PRECISION, 3, buffer, &length, &point); in TEST() 76 TrimRepresentation(buffer); in TEST() 77 CHECK_EQ("1", buffer.start()); in TEST() 80 BignumDtoa(1.5, BIGNUM_DTOA_SHORTEST, 0, buffer, &length, &point); in TEST() [all …]
|
D | test-dtoa.cc | 51 Vector<char> buffer, bool* sign, int* length, in DoubleToAscii() argument 63 buffer.start(), buffer.length(), in DoubleToAscii() 83 Vector<char> buffer(buffer_container, kBufferSize); in TEST() local 88 DoubleToAscii(0.0, SHORTEST, 0, buffer, &sign, &length, &point); in TEST() 89 CHECK_EQ("0", buffer.start()); in TEST() 92 DoubleToAscii(0.0f, SHORTEST_SINGLE, 0, buffer, &sign, &length, &point); in TEST() 93 CHECK_EQ("0", buffer.start()); in TEST() 96 DoubleToAscii(0.0, FIXED, 2, buffer, &sign, &length, &point); in TEST() 98 CHECK_EQ("0", buffer.start()); in TEST() 101 DoubleToAscii(0.0, PRECISION, 3, buffer, &sign, &length, &point); in TEST() [all …]
|
/third_party/protobuf/csharp/src/Google.Protobuf/ |
D | WritingPrimitives.cs | 56 … public static void WriteDouble(ref Span<byte> buffer, ref WriterInternalState state, double value) in WriteDouble() argument 58 … WriteRawLittleEndian64(ref buffer, ref state, (ulong)BitConverter.DoubleToInt64Bits(value)); in WriteDouble() 64 …public static unsafe void WriteFloat(ref Span<byte> buffer, ref WriterInternalState state, float v… in WriteFloat() argument 67 if (buffer.Length - state.position >= length) in WriteFloat() 70 var floatSpan = buffer.Slice(state.position, length); in WriteFloat() 81 WriteFloatSlowPath(ref buffer, ref state, value); in WriteFloat() 86 …private static unsafe void WriteFloatSlowPath(ref Span<byte> buffer, ref WriterInternalState state… in WriteFloatSlowPath() argument 98 WriteRawByte(ref buffer, ref state, floatSpan[0]); in WriteFloatSlowPath() 99 WriteRawByte(ref buffer, ref state, floatSpan[1]); in WriteFloatSlowPath() 100 WriteRawByte(ref buffer, ref state, floatSpan[2]); in WriteFloatSlowPath() [all …]
|
/third_party/gstreamer/gstplugins_base/tests/check/pipelines/ |
D | vorbisenc.c | 34 check_buffer_timestamp (GstBuffer * buffer, GstClockTime timestamp) in check_buffer_timestamp() argument 36 fail_unless (GST_BUFFER_TIMESTAMP (buffer) == timestamp, in check_buffer_timestamp() 39 GST_TIME_ARGS (timestamp), GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buffer))); in check_buffer_timestamp() 43 check_buffer_duration (GstBuffer * buffer, GstClockTime duration) in check_buffer_duration() argument 45 fail_unless (GST_BUFFER_DURATION (buffer) == duration, in check_buffer_duration() 48 GST_TIME_ARGS (duration), GST_TIME_ARGS (GST_BUFFER_DURATION (buffer))); in check_buffer_duration() 52 check_buffer_granulepos (GstBuffer * buffer, gint64 granulepos) in check_buffer_granulepos() argument 56 fail_unless (GST_BUFFER_OFFSET_END (buffer) == granulepos, in check_buffer_granulepos() 59 granulepos, GST_BUFFER_OFFSET_END (buffer)); in check_buffer_granulepos() 63 clocktime = gst_util_uint64_scale (GST_BUFFER_OFFSET_END (buffer), 44100, in check_buffer_granulepos() [all …]
|
D | theoraenc.c | 40 #define check_buffer_is_header(buffer,is_header) \ argument 41 fail_unless (GST_BUFFER_FLAG_IS_SET (buffer, \ 44 GST_BUFFER_FLAG_IS_SET (buffer, GST_BUFFER_FLAG_HEADER), is_header) 46 #define check_buffer_timestamp(buffer,timestamp) \ argument 47 fail_unless (GST_BUFFER_TIMESTAMP (buffer) == timestamp, \ 50 GST_TIME_ARGS (timestamp), GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buffer))) 52 #define check_buffer_duration(buffer,duration) \ argument 53 fail_unless (GST_BUFFER_DURATION (buffer) == duration, \ 56 GST_TIME_ARGS (duration), GST_TIME_ARGS (GST_BUFFER_DURATION (buffer))) 67 check_buffer_granulepos (GstBuffer * buffer, gint64 granulepos) in check_buffer_granulepos() argument [all …]
|
/third_party/littlefs/tests/ |
D | test_attrs.toml | 12 memset(buffer, 0, sizeof(buffer)); 16 lfs_getattr(&lfs, "hello", 'A', buffer, 4) => 4; 17 lfs_getattr(&lfs, "hello", 'B', buffer+4, 6) => 6; 18 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5; 19 memcmp(buffer, "aaaa", 4) => 0; 20 memcmp(buffer+4, "bbbbbb", 6) => 0; 21 memcmp(buffer+10, "ccccc", 5) => 0; 24 lfs_getattr(&lfs, "hello", 'A', buffer, 4) => 4; 25 lfs_getattr(&lfs, "hello", 'B', buffer+4, 6) => 0; 26 lfs_getattr(&lfs, "hello", 'C', buffer+10, 5) => 5; [all …]
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/audio/ |
D | audio-buffer.c | 29 gst_audio_buffer_unmap_internal (GstAudioBuffer * buffer, guint n_unmap) in gst_audio_buffer_unmap_internal() argument 33 gst_buffer_unmap (buffer->buffer, &buffer->map_infos[i]); in gst_audio_buffer_unmap_internal() 35 if (buffer->planes != buffer->priv_planes_arr) in gst_audio_buffer_unmap_internal() 36 g_slice_free1 (buffer->n_planes * sizeof (gpointer), buffer->planes); in gst_audio_buffer_unmap_internal() 37 if (buffer->map_infos != buffer->priv_map_infos_arr) in gst_audio_buffer_unmap_internal() 38 g_slice_free1 (buffer->n_planes * sizeof (GstMapInfo), buffer->map_infos); in gst_audio_buffer_unmap_internal() 51 gst_audio_buffer_unmap (GstAudioBuffer * buffer) in gst_audio_buffer_unmap() argument 53 gst_audio_buffer_unmap_internal (buffer, buffer->n_planes); in gst_audio_buffer_unmap() 93 gst_audio_buffer_map (GstAudioBuffer * buffer, const GstAudioInfo * info, in gst_audio_buffer_map() argument 100 g_return_val_if_fail (buffer != NULL, FALSE); in gst_audio_buffer_map() [all …]
|
/third_party/weston/libweston/ |
D | linux-dmabuf.c | 39 linux_dmabuf_buffer_destroy(struct linux_dmabuf_buffer *buffer) in linux_dmabuf_buffer_destroy() argument 43 for (i = 0; i < buffer->attributes.n_planes; i++) { in linux_dmabuf_buffer_destroy() 44 close(buffer->attributes.fd[i]); in linux_dmabuf_buffer_destroy() 45 buffer->attributes.fd[i] = -1; in linux_dmabuf_buffer_destroy() 48 buffer->attributes.n_planes = 0; in linux_dmabuf_buffer_destroy() 50 if (buffer->attributes.buffer_handle != NULL) { in linux_dmabuf_buffer_destroy() 51 free(buffer->attributes.buffer_handle); in linux_dmabuf_buffer_destroy() 53 free(buffer); in linux_dmabuf_buffer_destroy() 59 struct linux_dmabuf_buffer *buffer; in destroy_params() local 61 buffer = wl_resource_get_user_data(params_resource); in destroy_params() [all …]
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
D | BufferTests.cpp | 22 void MapAsyncAndWait(const wgpu::Buffer& buffer, in MapAsyncAndWait() argument 27 buffer.MapAsync( in MapAsyncAndWait() 64 wgpu::Buffer buffer = CreateMapReadBuffer(4); in TEST_P() local 68 queue.WriteBuffer(buffer, 0, &myData, kSize); in TEST_P() 70 MapAsyncAndWait(buffer, wgpu::MapMode::Read, 0, 4); in TEST_P() 71 CheckMapping(buffer.GetConstMappedRange(), &myData, kSize); in TEST_P() 72 CheckMapping(buffer.GetConstMappedRange(0, kSize), &myData, kSize); in TEST_P() 73 buffer.Unmap(); in TEST_P() 78 wgpu::Buffer buffer = CreateMapReadBuffer(0); in TEST_P() local 80 MapAsyncAndWait(buffer, wgpu::MapMode::Read, 0, wgpu::kWholeMapSize); in TEST_P() [all …]
|
/third_party/gstreamer/gstplugins_base/tests/validate/videorate/reverse.10_to_1fps/flow-expectations/ |
D | log-videorate-sink-expected | 4 buffer: checksum=5074004a070c85d97cc9f58fab273813c95b748c, pts=0:00:00.000000000, dur=0:00:00.10000… 5 buffer: checksum=d13b763048b4e8a132923ccec0cb0989a33ef44b, pts=0:00:00.100000000, dur=0:00:00.10000… 9 buffer: checksum=bff0c69020b2ffb3f3ceda63353620854cdd6b73, pts=0:00:05.000000000, dur=0:00:00.10000… 10 buffer: checksum=1d2741e8fc312f50417c99f6deecb6220c75efaa, pts=0:00:04.900000000, dur=0:00:00.10000… 11 buffer: checksum=6f2d5d8f9551083a65889a7d7b87e25348612604, pts=0:00:04.800000000, dur=0:00:00.10000… 12 buffer: checksum=87c6573e1f3cc6a14bca871f675ff66822e2863e, pts=0:00:04.700000000, dur=0:00:00.10000… 13 buffer: checksum=302581fc1fdd332a6702cc3b4d6a3f3f87d0c78f, pts=0:00:04.600000000, dur=0:00:00.10000… 14 buffer: checksum=e085fff613289df868f63ca7142ce0d342ab3d4c, pts=0:00:04.500000000, dur=0:00:00.10000… 15 buffer: checksum=ea498a2e840c9528f90f1154f72d4b204739b947, pts=0:00:04.400000000, dur=0:00:00.10000… 16 buffer: checksum=f05561e3039ed26e3082bd7b049bad9356545149, pts=0:00:04.300000000, dur=0:00:00.10000… [all …]
|
/third_party/flatbuffers/java/com/google/flatbuffers/ |
D | ArrayReadWriteBuf.java | 16 private byte[] buffer; field in ArrayReadWriteBuf 27 public ArrayReadWriteBuf(byte[] buffer) { in ArrayReadWriteBuf() argument 28 this.buffer = buffer; in ArrayReadWriteBuf() 32 public ArrayReadWriteBuf(byte[] buffer, int startPos) { in ArrayReadWriteBuf() argument 33 this.buffer = buffer; in ArrayReadWriteBuf() 44 return buffer[index] != 0; in getBoolean() 49 return buffer[index]; in get() 54 return (short) ((buffer[index+ 1] << 8) | (buffer[index] & 0xff)); in getShort() 59 return (((buffer[index + 3]) << 24) | in getInt() 60 ((buffer[index + 2] & 0xff) << 16) | in getInt() [all …]
|