| /third_party/skia/src/shaders/gradients/ |
| H A D | SkRadialGradient.cpp | 43 sk_sp<SkFlattenable> SkRadialGradient::CreateProc(SkReadBuffer& buffer) { in CreateProc() argument 45 if (!desc.unflatten(buffer)) { in CreateProc() 48 const SkPoint center = buffer.readPoint(); in CreateProc() 49 const SkScalar radius = buffer.readScalar(); in CreateProc() 55 void SkRadialGradient::flatten(SkWriteBuffer& buffer) const { in flatten() 56 this->INHERITED::flatten(buffer); in flatten() 57 buffer.writePoint(fCenter); in flatten() 58 buffer.writeScalar(fRadius); in flatten()
|
| /third_party/skia/third_party/externals/dawn/src/tests/white_box/ |
| H A D | VulkanErrorInjectorTests.cpp | 48 // Check that making a buffer works. in TEST_P() 50 VkBuffer buffer = VK_NULL_HANDLE; in TEST_P() local 52 mDeviceVk->fn.CreateBuffer(mDeviceVk->GetVkDevice(), &createInfo, nullptr, &buffer), in TEST_P() 54 mDeviceVk->fn.DestroyBuffer(mDeviceVk->GetVkDevice(), buffer, nullptr); in TEST_P() 58 VkBuffer buffer = VK_NULL_HANDLE; in TEST_P() 60 mDeviceVk->fn.CreateBuffer(mDeviceVk->GetVkDevice(), &createInfo, nullptr, &buffer), in TEST_P() 64 EXPECT_EQ(buffer, VK_NULL_HANDLE); in TEST_P() 68 EXPECT_NE(buffer, VK_NULL_HANDLE); in TEST_P() 70 // We never use the buffer, only test mocking errors on creation. Cleanup now. in TEST_P() 71 mDeviceVk->fn.DestroyBuffer(mDeviceVk->GetVkDevice(), buffer, nullpt in TEST_P() [all...] |
| /third_party/ffmpeg/libavformat/ |
| H A D | flacdec.c | 51 uint8_t *buffer=NULL; in flac_read_header() local 80 buffer = av_mallocz(metadata_size + AV_INPUT_BUFFER_PADDING_SIZE); in flac_read_header() 81 if (!buffer) { in flac_read_header() 84 if (avio_read(s->pb, buffer, metadata_size) != metadata_size) { in flac_read_header() 107 st->codecpar->extradata = buffer; in flac_read_header() 109 buffer = NULL; in flac_read_header() 129 offset = buffer + 395; in flac_read_header() 134 if (offset + 36 - buffer > metadata_size) in flac_read_header() 146 av_freep(&buffer); in flac_read_header() 148 ret = ff_flac_parse_picture(s, &buffer, metadata_siz in flac_read_header() [all...] |
| /third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/ |
| H A D | IndexDataManager.cpp | 87 IndexBufferInterface *buffer, in StreamInIndexBuffer() 99 "Reserving indices exceeds the maximum buffer size.", GL_OUT_OF_MEMORY); in StreamInIndexBuffer() 102 ANGLE_TRY(buffer->reserveBufferSpace(context, bufferSizeRequired, dstType)); in StreamInIndexBuffer() 105 ANGLE_TRY(buffer->mapBuffer(context, bufferSizeRequired, &output, offset)); in StreamInIndexBuffer() 109 ANGLE_TRY(buffer->unmapBuffer(context)); in StreamInIndexBuffer() 130 // possible in DX and requires streaming (Case 1). If the GL indices are specified with a buffer 132 // When we have a buffer with an unsupported format (subcase b) then we need to do some translation: 134 // translated copy of the index buffer. 147 BufferD3D *buffer = glBuffer ? GetImplAs<BufferD3D>(glBuffer) : nullptr; in prepareIndexData() local 150 translated->srcIndexData.srcBuffer = buffer; in prepareIndexData() 86 StreamInIndexBuffer(const gl::Context *context, IndexBufferInterface *buffer, const void *data, unsigned int count, gl::DrawElementsType srcType, gl::DrawElementsType dstType, bool usePrimitiveRestartFixedIndex, unsigned int *offset) StreamInIndexBuffer() argument [all...] |
| /third_party/python/Lib/test/ |
| H A D | test_asynchat.py | 44 self.buffer = b"" 46 while SERVER_QUIT not in self.buffer: 50 self.buffer = self.buffer + data 53 self.buffer = self.buffer.replace(SERVER_QUIT, b'') 62 while self.buffer: 63 n = conn.send(self.buffer[:self.chunk_size]) 65 self.buffer = self.buffer[ [all...] |
| /third_party/ffmpeg/libavutil/ |
| H A D | encryption_info.c | 90 AVEncryptionInfo *av_encryption_info_get_side_data(const uint8_t* buffer, size_t size) in av_encryption_info_get_side_data() argument 95 if (!buffer || size < FF_ENCRYPTION_INFO_EXTRA) in av_encryption_info_get_side_data() 98 key_id_size = AV_RB32(buffer + 12); in av_encryption_info_get_side_data() 99 iv_size = AV_RB32(buffer + 16); in av_encryption_info_get_side_data() 100 subsample_count = AV_RB32(buffer + 20); in av_encryption_info_get_side_data() 109 info->scheme = AV_RB32(buffer); in av_encryption_info_get_side_data() 110 info->crypt_byte_block = AV_RB32(buffer + 4); in av_encryption_info_get_side_data() 111 info->skip_byte_block = AV_RB32(buffer + 8); in av_encryption_info_get_side_data() 112 memcpy(info->key_id, buffer + 24, key_id_size); in av_encryption_info_get_side_data() 113 memcpy(info->iv, buffer in av_encryption_info_get_side_data() 127 uint8_t *buffer, *cur_buffer; av_encryption_info_add_side_data() local 365 uint8_t *buffer, *cur_buffer; av_encryption_init_info_add_side_data() local [all...] |
| /third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
| H A D | CollationKeys.java | 34 * Needed in Java for when we write to the buffer directly. 124 * the length of buffer required to store the entire data (i.e. already appended 148 byte[] buffer = new byte[INITIAL_CAPACITY]; field in CollationKeys.SortKeyLevel 170 return buffer[index]; in getAt() 174 return buffer; in data() 178 if (len < buffer.length || ensureCapacity(1)) { in appendByte() 179 buffer[len++] = (byte) b; in appendByte() 188 if ((len + appendLength) <= buffer.length || ensureCapacity(appendLength)) { in appendWeight16() 189 buffer[len++] = b0; in appendWeight16() 191 buffer[le in appendWeight16() [all...] |
| /third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/ |
| H A D | CollationKeys.java | 41 * Needed in Java for when we write to the buffer directly. 131 * the length of buffer required to store the entire data (i.e. already appended 158 byte[] buffer = new byte[INITIAL_CAPACITY]; field in CollationKeys.SortKeyLevel 180 return buffer[index]; in getAt() 184 return buffer; in data() 188 if (len < buffer.length || ensureCapacity(1)) { in appendByte() 189 buffer[len++] = (byte) b; in appendByte() 198 if ((len + appendLength) <= buffer.length || ensureCapacity(appendLength)) { in appendWeight16() 199 buffer[len++] = b0; in appendWeight16() 201 buffer[le in appendWeight16() [all...] |
| /third_party/node/lib/internal/perf/ |
| H A D | observe.js | 103 // Default buffer limit for resource timing entries. 170 #buffer = []; 173 this.#buffer = ArrayPrototypeSort(entries, (first, second) => { 179 return ArrayPrototypeSlice(this.#buffer); 185 this.#buffer, 193 this.#buffer, 197 this.#buffer, 209 return `PerformanceObserverEntryList ${inspect(this.#buffer, opts)}`; 214 #buffer = []; 280 ArrayPrototypePushApply(this.#buffer, entrie [all...] |
| /third_party/node/deps/v8/src/debug/wasm/gdb-server/ |
| H A D | wasm-module-debug.cc | 205 uint32_t index, uint8_t* buffer, in GetWasmGlobal() 216 return GetWasmValue(wasm_value, buffer, buffer_size, size); in GetWasmGlobal() 224 uint32_t index, uint8_t* buffer, in GetWasmLocal() 248 return GetWasmValue(wasm_value, buffer, buffer_size, size); in GetWasmLocal() 257 uint32_t index, uint8_t* buffer, in GetWasmStackValue() 281 return GetWasmValue(wasm_value, buffer, buffer_size, size); in GetWasmStackValue() 289 uint8_t* buffer, uint32_t size) { in GetWasmMemory() 298 memcpy(buffer, mem_start + offset, size); in GetWasmMemory() 302 memcpy(buffer, mem_start + offset, bytes_read); in GetWasmMemory() 309 uint8_t* buffer, uint32_ in GetWasmData() 204 GetWasmGlobal(Isolate* isolate, uint32_t frame_index, uint32_t index, uint8_t* buffer, uint32_t buffer_size, uint32_t* size) GetWasmGlobal() argument 223 GetWasmLocal(Isolate* isolate, uint32_t frame_index, uint32_t index, uint8_t* buffer, uint32_t buffer_size, uint32_t* size) GetWasmLocal() argument 256 GetWasmStackValue(Isolate* isolate, uint32_t frame_index, uint32_t index, uint8_t* buffer, uint32_t buffer_size, uint32_t* size) GetWasmStackValue() argument 288 GetWasmMemory(Isolate* isolate, uint32_t offset, uint8_t* buffer, uint32_t size) GetWasmMemory() argument 308 GetWasmData(Isolate* isolate, uint32_t offset, uint8_t* buffer, uint32_t size) GetWasmData() argument 336 GetWasmModuleBytes(wasm_addr_t wasm_addr, uint8_t* buffer, uint32_t size) GetWasmModuleBytes() argument 379 StoreValue(const T& value, uint8_t* buffer, uint32_t buffer_size, uint32_t* size) StoreValue() argument 388 GetWasmValue(const wasm::WasmValue& wasm_value, uint8_t* buffer, uint32_t buffer_size, uint32_t* size) GetWasmValue() argument [all...] |
| /third_party/skia/third_party/externals/dawn/src/dawn_native/ |
| H A D | BindGroup.cpp | 39 DAWN_INVALID_IF(entry.buffer == nullptr, "Binding entry buffer not set."); in ValidateBufferBinding() 42 "Expected only buffer to be set for binding entry."); in ValidateBufferBinding() 46 DAWN_TRY(device->ValidateObject(entry.buffer)); in ValidateBufferBinding() 53 switch (bindingInfo.buffer.type) { in ValidateBufferBinding() 77 uint64_t bufferSize = entry.buffer->GetSize(); in ValidateBufferBinding() 82 bufferSize, entry.buffer); in ValidateBufferBinding() 89 bufferSize, entry.buffer); in ValidateBufferBinding() 98 entry.offset, bufferSize, bindingSize, entry.buffer); in ValidateBufferBinding() 102 entry.offset, bindingInfo.buffer in ValidateBufferBinding() 457 BufferBase* buffer = static_cast<BufferBase*>(mBindingData.bindings[bindingIndex].Get()); GetBindingAsBufferBinding() local [all...] |
| H A D | BindGroupLayout.cpp | 75 if (entry.buffer.type != wgpu::BufferBindingType::Undefined) { in ValidateBindGroupLayoutEntry() 78 const BufferBindingLayout& buffer = entry.buffer; in ValidateBindGroupLayoutEntry() local 82 if (buffer.type == kInternalStorageBufferBinding) { in ValidateBindGroupLayoutEntry() 85 DAWN_TRY(ValidateBufferBindingType(buffer.type)); in ValidateBindGroupLayoutEntry() 88 if (buffer.type == wgpu::BufferBindingType::Storage || in ValidateBindGroupLayoutEntry() 89 buffer.type == kInternalStorageBufferBinding) { in ValidateBindGroupLayoutEntry() 142 "BindGroupLayoutEntry had more than one of buffer, sampler, texture, " in ValidateBindGroupLayoutEntry() 193 return a.buffer.type != b.buffer in operator !=() [all...] |
| /third_party/vulkan-loader/loader/ |
| H A D | vk_loader_platform.h | 274 static inline char *loader_platform_executable_path(char *buffer, size_t size) { in loader_platform_executable_path() argument 275 ssize_t count = readlink("/proc/self/exe", buffer, size); in loader_platform_executable_path() 278 buffer[count] = '\0'; in loader_platform_executable_path() 279 return buffer; in loader_platform_executable_path() 285 static inline char *loader_platform_executable_path(char *buffer, size_t size) { in loader_platform_executable_path() argument 287 buffer[0] = '\0'; in loader_platform_executable_path() 288 return buffer; in loader_platform_executable_path() 293 static inline char *loader_platform_executable_path(char *buffer, size_t size) { in loader_platform_executable_path() argument 294 // proc_pidpath takes a uint32_t for the buffer size in loader_platform_executable_path() 299 int ret = proc_pidpath(pid, buffer, (uint32_ in loader_platform_executable_path() 309 loader_platform_executable_path(char *buffer, size_t size) loader_platform_executable_path() argument 329 loader_platform_executable_path(char *buffer, size_t size) loader_platform_executable_path() argument 337 loader_platform_executable_path(char *buffer, size_t size) loader_platform_executable_path() argument 515 loader_platform_executable_path(char *buffer, size_t size) loader_platform_executable_path() argument [all...] |
| /third_party/icu/icu4c/source/common/ |
| H A D | locdispnames.cpp | 51 * buffer size. For all the following getDisplay functions we first attempt 52 * to fill up a stack allocated buffer. If it is to small we heap allocated 53 * the exact buffer we need copy it to the UnicodeString and delete it*/ 58 UChar *buffer; in getDisplayLanguage() local 62 buffer=result.getBuffer(ULOC_FULLNAME_CAPACITY); in getDisplayLanguage() 63 if(buffer==0) { in getDisplayLanguage() 69 buffer, result.getCapacity(), in getDisplayLanguage() 74 buffer=result.getBuffer(length); in getDisplayLanguage() 75 if(buffer==0) { in getDisplayLanguage() 81 buffer, resul in getDisplayLanguage() 98 UChar *buffer; getDisplayScript() local 138 UChar *buffer; getDisplayCountry() local 178 UChar *buffer; getDisplayVariant() local 218 UChar *buffer; getDisplayName() local [all...] |
| /third_party/node/deps/icu-small/source/common/ |
| H A D | locdispnames.cpp | 51 * buffer size. For all the following getDisplay functions we first attempt 52 * to fill up a stack allocated buffer. If it is to small we heap allocated 53 * the exact buffer we need copy it to the UnicodeString and delete it*/ 58 char16_t *buffer; in getDisplayLanguage() local 62 buffer=result.getBuffer(ULOC_FULLNAME_CAPACITY); in getDisplayLanguage() 63 if(buffer==0) { in getDisplayLanguage() 69 buffer, result.getCapacity(), in getDisplayLanguage() 74 buffer=result.getBuffer(length); in getDisplayLanguage() 75 if(buffer==0) { in getDisplayLanguage() 81 buffer, resul in getDisplayLanguage() 98 char16_t *buffer; getDisplayScript() local 138 char16_t *buffer; getDisplayCountry() local 178 char16_t *buffer; getDisplayVariant() local 218 char16_t *buffer; getDisplayName() local [all...] |
| /third_party/mesa3d/src/gallium/auxiliary/vl/ |
| H A D | vl_mc.c | 558 vl_mc_init_buffer(struct vl_mc *renderer, struct vl_mc_buffer *buffer) in vl_mc_init_buffer() argument 560 assert(renderer && buffer); in vl_mc_init_buffer() 562 buffer->viewport.scale[2] = 1; in vl_mc_init_buffer() 563 buffer->viewport.translate[0] = 0; in vl_mc_init_buffer() 564 buffer->viewport.translate[1] = 0; in vl_mc_init_buffer() 565 buffer->viewport.translate[2] = 0; in vl_mc_init_buffer() 566 buffer->viewport.swizzle_x = PIPE_VIEWPORT_SWIZZLE_POSITIVE_X; in vl_mc_init_buffer() 567 buffer->viewport.swizzle_y = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Y; in vl_mc_init_buffer() 568 buffer->viewport.swizzle_z = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Z; in vl_mc_init_buffer() 569 buffer in vl_mc_init_buffer() 578 vl_mc_cleanup_buffer(struct vl_mc_buffer *buffer) vl_mc_cleanup_buffer() argument 584 vl_mc_set_surface(struct vl_mc_buffer *buffer, struct pipe_surface *surface) vl_mc_set_surface() argument 599 prepare_pipe_4_rendering(struct vl_mc *renderer, struct vl_mc_buffer *buffer, unsigned mask) prepare_pipe_4_rendering() argument 615 vl_mc_render_ref(struct vl_mc *renderer, struct vl_mc_buffer *buffer, struct pipe_sampler_view *ref) vl_mc_render_ref() argument 637 vl_mc_render_ycbcr(struct vl_mc *renderer, struct vl_mc_buffer *buffer, unsigned component, unsigned num_instances) vl_mc_render_ycbcr() argument [all...] |
| /third_party/vulkan-loader/tests/framework/ |
| H A D | test_util.h | 791 std::string buffer; 792 buffer.resize(1024); 793 ssize_t count = readlink("/proc/self/exe", &buffer[0], buffer.size()); 796 buffer[count] = '\0'; 797 buffer.resize(count); 798 return buffer; 803 std::string buffer; 804 buffer.resize(1024); 806 int ret = proc_pidpath(pid, &buffer[ [all...] |
| /third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
| H A D | nv84_video.c | 559 nv84_video_buffer_sampler_view_planes(struct pipe_video_buffer *buffer) in nv84_video_buffer_sampler_view_planes() argument 561 struct nv84_video_buffer *buf = (struct nv84_video_buffer *)buffer; in nv84_video_buffer_sampler_view_planes() 566 nv84_video_buffer_sampler_view_components(struct pipe_video_buffer *buffer) in nv84_video_buffer_sampler_view_components() argument 568 struct nv84_video_buffer *buf = (struct nv84_video_buffer *)buffer; in nv84_video_buffer_sampler_view_components() 573 nv84_video_buffer_surfaces(struct pipe_video_buffer *buffer) in nv84_video_buffer_surfaces() argument 575 struct nv84_video_buffer *buf = (struct nv84_video_buffer *)buffer; in nv84_video_buffer_surfaces() 580 nv84_video_buffer_destroy(struct pipe_video_buffer *buffer) in nv84_video_buffer_destroy() argument 582 struct nv84_video_buffer *buf = (struct nv84_video_buffer *)buffer; in nv84_video_buffer_destroy() 598 FREE(buffer); in nv84_video_buffer_destroy() 605 struct nv84_video_buffer *buffer; in nv84_video_buffer_create() local [all...] |
| /test/xts/device_attest_lite/services/core/network/ |
| H A D | attest_coap.c | 36 ATTEST_LOG_ERROR("[CoapCreateHead] Header overruns the buffer"); in CoapCreateHead() 69 if (pkt == NULL || token == NULL || ((token->len != 0) && token->buffer == NULL) || in CoapAddToken() 81 ATTEST_LOG_ERROR("[CoapAddToken] Symbol overruns the buffer"); in CoapAddToken() 87 pkt->tok.buffer = (const uint8_t*)&buf->rwBuffer[buf->len]; in CoapAddToken() 93 if (memcpy_s(&buf->rwBuffer[buf->len], pkt->hdr.tkl, token->buffer, token->len) != 0) { in CoapAddToken() 149 ATTEST_LOG_ERROR("[CoapEncodeExtensionMsg] Extension msg overruns the buffer size"); in CoapEncodeExtensionMsg() 155 ATTEST_LOG_ERROR("[CoapEncodeExtensionMsg] Extension msg overruns the buffer size"); in CoapEncodeExtensionMsg() 224 ATTEST_LOG_ERROR("[CheckOptionParameter] Option overruns the buffer size"); in CheckOptionParameter() 249 ATTEST_LOG_ERROR("[CoapAddOption] Option overruns the buffer size"); in CoapAddOption() 305 if ((buf->rwBuffer == NULL) || ((payload->len != 0) && (payload->buffer in CoapAddData() 565 CoapParseOptionAndPayload(CoapOption* options, uint8_t* numOptions, CoapBuffer* payload, const CoapHead* hdr, CoapBuffer *buffer) CoapParseOptionAndPayload() argument 641 CoapBuffer buffer; CoapDecode() local [all...] |
| /third_party/ffmpeg/libavcodec/ |
| H A D | movtextenc.c | 81 AVBPrint buffer; member 113 av_bprint_append_any(&s->buffer, buf, 10); in encode_styl() 125 av_bprint_append_any(&s->buffer, buf, 12); in encode_styl() 141 av_bprint_append_any(&s->buffer, buf, 12); in encode_hlit() 154 av_bprint_append_any(&s->buffer, buf, 12); in encode_hclr() 173 av_bprint_finalize(&s->buffer, NULL); in mov_text_encode_close() 256 av_bprint_append_any(&s->buffer, buf, 30); in encode_sample_description() 293 av_bprint_append_any(&s->buffer, buf, 10); in encode_sample_description() 302 av_bprint_append_any(&s->buffer, buf, 3); in encode_sample_description() 303 av_bprint_append_any(&s->buffer, in encode_sample_description() [all...] |
| /third_party/skia/src/core/ |
| H A D | SkColorFilter.cpp | 196 void flatten(SkWriteBuffer& buffer) const override { 197 buffer.writeFlattenable(fOuter.get()); 198 buffer.writeFlattenable(fInner.get()); 215 sk_sp<SkFlattenable> SkComposeColorFilter::CreateProc(SkReadBuffer& buffer) { in CreateProc() argument 216 sk_sp<SkColorFilter> outer(buffer.readColorFilter()); in CreateProc() 217 sk_sp<SkColorFilter> inner(buffer.readColorFilter()); in CreateProc() 291 void flatten(SkWriteBuffer& buffer) const override { 292 buffer.write32(static_cast<uint32_t>(fDir)); 303 sk_sp<SkFlattenable> SkSRGBGammaColorFilter::CreateProc(SkReadBuffer& buffer) { in CreateProc() argument 304 uint32_t dir = buffer in CreateProc() 425 CreateProc(SkReadBuffer& buffer) CreateProc() argument [all...] |
| /third_party/skia/third_party/externals/harfbuzz/src/ |
| H A D | hb-uniscribe.cc | 586 hb_buffer_t *buffer, in _hb_uniscribe_shape() 606 hb_buffer_t::scratch_buffer_t *scratch = buffer->get_scratch_buffer (&scratch_size); in _hb_uniscribe_shape() 619 ALLOCATE_ARRAY (WCHAR, pchars, buffer->len * 2); in _hb_uniscribe_shape() 622 for (unsigned int i = 0; i < buffer->len; i++) in _hb_uniscribe_shape() 624 hb_codepoint_t c = buffer->info[i].codepoint; in _hb_uniscribe_shape() 625 buffer->info[i].utf16_index() = chars_len; in _hb_uniscribe_shape() 643 for (unsigned int i = 0; i < buffer->len; i++) in _hb_uniscribe_shape() 645 hb_codepoint_t c = buffer->info[i].codepoint; in _hb_uniscribe_shape() 646 unsigned int cluster = buffer->info[i].cluster; in _hb_uniscribe_shape() 670 * implementations of Shape and Place functions use that buffer in _hb_uniscribe_shape() 584 _hb_uniscribe_shape(hb_shape_plan_t *shape_plan, hb_font_t *font, hb_buffer_t *buffer, const hb_feature_t *features, unsigned int num_features) _hb_uniscribe_shape() argument [all...] |
| /third_party/libsnd/ossfuzz/ |
| H A D | standaloneengine.cc | 25 uint8_t *buffer = NULL; in main() local 37 /* Allocate a buffer for the file contents. */ in main() 38 buffer = (uint8_t *)calloc(buffer_len, sizeof(uint8_t)); in main() 39 if(buffer) in main() 43 /* Read all the text from the file into the buffer. */ in main() 44 result = fread(buffer, sizeof(uint8_t), buffer_len, infile); in main() 50 LLVMFuzzerTestOneInput(buffer, buffer_len); in main() 62 /* Free the buffer as it's no longer needed. */ in main() 63 free(buffer); in main() 64 buffer in main() [all...] |
| /third_party/jerryscript/tests/unit-ext/ |
| H A D | test-ext-module-empty.c | 27 jerry_char_t buffer[256]; in main() local 49 bytes_copied = jerry_substring_to_utf8_char_buffer (prop, 0, 254, buffer, 256); in main() 50 buffer[bytes_copied] = 0; in main() 51 TEST_ASSERT (!strcmp ((const char *) buffer, "Module not found")); in main() 64 bytes_copied = jerry_substring_to_utf8_char_buffer (prop, 0, 254, buffer, 256); in main() 65 buffer[bytes_copied] = 0; in main() 66 TEST_ASSERT (!strcmp ((const char *) buffer, "some-unknown-module-name")); in main()
|
| /third_party/pulseaudio/src/tests/ |
| H A D | stripnul.c | 46 uint8_t buffer[MAX_BUFFER], *p; in main() local 49 k = fread(buffer, granularity, sizeof(buffer)/granularity, i); in main() 55 pa_assert_se(fwrite(buffer, granularity, k, o) == k); in main() 57 for (p = buffer; ((size_t) (p-buffer)/granularity) < k; p += granularity) in main() 61 left = (size_t) (k - (size_t) (p-buffer)/granularity); in main()
|