/third_party/openssl/include/crypto/ |
H A D | rand_pool.h | 20 * The max_len value for the buffer provided to the rand_drbg_get_entropy() 56 * bytes and then appending another sixteen bytes). This means the buffer ends 72 unsigned char *buffer; /* points to the beginning of the random pool */ member 75 int attached; /* true pool was attached to existing buffer */ 79 size_t max_len; /* maximum number of random bytes (allocated buffer size) */ 87 RAND_POOL *ossl_rand_pool_attach(const unsigned char *buffer, size_t len, 93 void ossl_rand_pool_reattach(RAND_POOL *pool, unsigned char *buffer); 105 const unsigned char *buffer, size_t len, size_t entropy);
|
/third_party/openssl/providers/implementations/rands/seeding/ |
H A D | rand_cpu_x86.c | 41 unsigned char *buffer; in ossl_prov_acquire_entropy_from_cpu() local 45 buffer = ossl_rand_pool_add_begin(pool, bytes_needed); in ossl_prov_acquire_entropy_from_cpu() 47 if (buffer != NULL) { in ossl_prov_acquire_entropy_from_cpu() 48 if (get_hardware_random_value(buffer, bytes_needed) == bytes_needed) { in ossl_prov_acquire_entropy_from_cpu()
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/src/main/cpp/utils/ |
H A D | LockFreeQueue.h | 54 * array. This approach avoids having a "dead item" in the buffer to distinguish between full 75 val = buffer[mask(readCounter)]; in pop() 91 buffer[mask(writeCounter)] = item; in push() 107 item = buffer[mask(readCounter)]; in peek() 126 * wrap it around to zero, the start of the buffer, making writeCounter less than in size() 148 T buffer[CAPACITY]; member in LockFreeQueue
|
/third_party/skia/third_party/externals/oboe/src/common/ |
H A D | FilterAudioStream.cpp | 58 ResultWithValue<int32_t> FilterAudioStream::write(const void *buffer, in write() argument 62 mFlowGraph->setSource(buffer, numFrames); in write() 71 break; // finished processing the source buffer in write() 86 ResultWithValue<int32_t> FilterAudioStream::read(void *buffer, in read() argument 89 int32_t framesRead = mFlowGraph->read(buffer, numFrames, timeoutNanoseconds); in read()
|
/third_party/skia/third_party/externals/brotli/c/fuzz/ |
H A D | decode_fuzzer.c | 19 uint8_t* buffer = (uint8_t*) malloc(kBufferSize); in LLVMFuzzerTestOneInput() local 20 if (!buffer) { in LLVMFuzzerTestOneInput() 43 uint8_t* next_out = buffer; in LLVMFuzzerTestOneInput() 56 free(buffer); in LLVMFuzzerTestOneInput()
|
/third_party/python/Objects/stringlib/ |
H A D | localeutil.h | 64 /* Copy the thousands_sep chars into the buffer. */ in InsertThousandsGrouping_fill() 65 _PyUnicode_FastCopyCharacters(writer->buffer, *buffer_pos, in InsertThousandsGrouping_fill() 72 _PyUnicode_FastCopyCharacters(writer->buffer, *buffer_pos, in InsertThousandsGrouping_fill() 78 enum PyUnicode_Kind kind = PyUnicode_KIND(writer->buffer); in InsertThousandsGrouping_fill() 79 void *data = PyUnicode_DATA(writer->buffer); in InsertThousandsGrouping_fill()
|
/third_party/skia/experimental/graphite/src/mtl/ |
H A D | MtlBlitCommandEncoder.h | 38 void synchronizeResource(id<MTLBuffer> buffer) { in synchronizeResource() argument 39 [(*fCommandEncoder) synchronizeResource: buffer]; in synchronizeResource() 45 id<MTLBuffer> buffer, in copyFromTexture() 53 toBuffer: buffer in copyFromTexture() 43 copyFromTexture(id<MTLTexture> texture, SkIRect srcRect, id<MTLBuffer> buffer, size_t bufferOffset, size_t bufferRowBytes) copyFromTexture() argument
|
/third_party/vk-gl-cts/framework/delibs/destream/ |
H A D | deStreamCpyThread.c | 31 deUint8* buffer = malloc(sizeof(deUint8) * (size_t)thread->bufferSize); in cpyStream() local 39 readResult = deInStream_read(thread->input, buffer, thread->bufferSize, &read); in cpyStream() 44 deOutStream_write(thread->output, buffer, read - written, &wrote); in cpyStream() 57 free(buffer); in cpyStream()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_installer.cpp | 488 char *buffer = cJSON_Print(object); in BackUpUidAndGidInfo() local 490 if (buffer == nullptr) { in BackUpUidAndGidInfo() 493 if (BundleDaemonClient::GetInstance().StoreContentToFile(jsonPath, buffer, strlen(buffer) + 1) != EC_SUCCESS) { in BackUpUidAndGidInfo() 495 cJSON_free(buffer); in BackUpUidAndGidInfo() 498 cJSON_free(buffer); in BackUpUidAndGidInfo() 590 char *buffer = cJSON_Print(root); in RecordThirdSystemBundle() local 592 if (buffer == nullptr) { in RecordThirdSystemBundle() 596 if (BundleDaemonClient::GetInstance().StoreContentToFile(path, buffer, strlen(buffer) in RecordThirdSystemBundle() 637 char *buffer = cJSON_Print(root); InitThirdSystemBundleRecord() local 660 char *buffer = cJSON_Print(object); BackUpInstallRecord() local [all...] |
/foundation/multimedia/av_codec/services/services/codec/server/ |
H A D | codec_server.cpp | 28 #include "buffer/avbuffer.h" 275 int32_t CodecServer::SetCustomBuffer(std::shared_ptr<AVBuffer> buffer) in SetCustomBuffer() argument 281 return codecBase_->SetCustomBuffer(buffer); 479 CHECK_AND_RETURN_RET_LOG(!isBufferMode, AVCS_ERR_INVALID_OPERATION, "In buffer mode."); in SetOutputSurface() 869 void CodecServer::OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVSharedMemory> buffer) in CheckDrmSvpConsistency() argument 875 codecCb_->OnInputBufferAvailable(index, buffer); in CheckDrmSvpConsistency() 879 std::shared_ptr<AVSharedMemory> buffer) in CheckDrmSvpConsistency() 885 codecCb_->OnOutputBufferAvailable(index, info, flag, buffer); in CheckDrmSvpConsistency() 888 void CodecServer::OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) in CheckDrmSvpConsistency() argument 892 temporalScalability_->StoreAVBuffer(index, buffer); in CheckDrmSvpConsistency() 878 OnOutputBufferAvailable(uint32_t index, AVCodecBufferInfo info, AVCodecBufferFlag flag, std::shared_ptr<AVSharedMemory> buffer) CheckDrmSvpConsistency() argument 924 OnOutputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) CheckDrmSvpConsistency() argument 975 OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVSharedMemory> buffer) OnInputBufferAvailable() argument 982 OnOutputBufferAvailable(uint32_t index, AVCodecBufferInfo info, AVCodecBufferFlag flag, std::shared_ptr<AVSharedMemory> buffer) OnOutputBufferAvailable() argument 1014 OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) OnInputBufferAvailable() argument 1021 OnOutputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) OnOutputBufferAvailable() argument 1371 PushDecodedBufferInfo(uint32_t index, std::shared_ptr<AVBuffer> buffer) PushDecodedBufferInfo() argument [all...] |
/foundation/communication/ipc/services/dbinder/test/distributedtest/src/ |
H A D | dbinder_test_service_skeleton.cpp | 254 unsigned char *buffer = new (std::nothrow) unsigned char[length]; in ProxyTransRawData() local 255 if (buffer == nullptr) { in ProxyTransRawData() 256 DBINDER_LOGE(LOG_LABEL, "new buffer failed of length = %{public}d", length); in ProxyTransRawData() 259 buffer[0] = 'a'; in ProxyTransRawData() 260 buffer[length - 1] = 'z'; in ProxyTransRawData() 261 if (!dataParcel.WriteInt32(length) || !dataParcel.WriteRawData(buffer, length) || !dataParcel.WriteInt32(length)) { in ProxyTransRawData() 263 delete[] buffer; in ProxyTransRawData() 266 delete[] buffer; in ProxyTransRawData() 309 const char *buffer = nullptr; in StubTransRawData() local 310 if ((buffer in StubTransRawData() 767 const char *buffer = nullptr; OnReceivedRawData() local 808 unsigned char *buffer = new (std::nothrow) unsigned char[length]; OnSentRawData() local [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/ |
H A D | nstackx_dfile_frame.c | 88 static int32_t EncodeFileInfo(FileList *fileList, uint16_t fileId, uint8_t *buffer, size_t length, in EncodeFileInfo() argument 91 FileInfoUnit *fileInfoUnit = (FileInfoUnit *)buffer; in EncodeFileInfo() 120 /* Running out of buffer */ in EncodeFileInfo() 121 DFILE_LOGE(TAG, "buffer length %zu is not enough", length); in EncodeFileInfo() 126 /* Running out of buffer */ in EncodeFileInfo() 138 void EncodeFileHeaderFrameSp(FileList *fileList, int32_t *fileId, uint8_t *buffer, size_t length, in EncodeFileHeaderFrameSp() argument 141 FileHeaderFrame *headerFrame = (FileHeaderFrame *)buffer; in EncodeFileHeaderFrameSp() 149 /* Remaining buffer length for fileInfoUnit */ in EncodeFileHeaderFrameSp() 197 /* Update internal buffer length */ in EncodeFileHeaderFrameSp() 202 void EncodeFileHeaderFrame(FileList *fileList, int32_t *fileId, uint8_t *buffer, size_ argument 209 EncodeFileHeaderConfirmFrame(FileList *fileList, uint16_t *fileId, uint8_t *buffer, size_t length, size_t *frameLength) EncodeFileHeaderConfirmFrame() argument 258 EncodeFileTransferDoneFrame(uint8_t *buffer, size_t length, uint16_t fileIdList[], uint32_t fileIdNum, size_t *frameLength) EncodeFileTransferDoneFrame() argument 284 EncodeSettingFrame(uint8_t *buffer, size_t length, size_t *frameLength, const SettingFrame *settingFramePara) EncodeSettingFrame() argument 308 EncodeRstFrame(uint8_t *buffer, size_t length, size_t *frameLength, uint16_t transId, uint16_t errCode) EncodeRstFrame() argument 326 EncodeBackPressFrame(uint8_t *buffer, size_t length, size_t *frameLength, uint8_t recvListOverIo) EncodeBackPressFrame() argument 348 EncodeFileTransferDoneAckFrame(uint8_t *buffer, size_t length, uint16_t transId, size_t *frameLength) EncodeFileTransferDoneAckFrame() argument 360 DecodeDFileFrame(const uint8_t *buffer, size_t bufferLength, DFileFrame **frame) DecodeDFileFrame() argument 407 uint8_t *buffer = (uint8_t *)headerFrame->fileInfoUnit; DecodeFileHeaderFrameSp() local [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | arm-spe.c | 75 struct auxtrace_buffer *buffer; member 138 struct auxtrace_buffer *buffer = speq->buffer; in arm_spe_get_trace() local 144 buffer = auxtrace_buffer__next(queue, buffer); in arm_spe_get_trace() 146 if (!buffer) { in arm_spe_get_trace() 153 speq->buffer = buffer; in arm_spe_get_trace() 156 if (!buffer->data) { in arm_spe_get_trace() 160 buffer in arm_spe_get_trace() 636 struct auxtrace_buffer *buffer; arm_spe_process_auxtrace_event() local [all...] |
/third_party/cJSON/tests/ |
H A D | misc_tests.c | 363 char buffer[10]; in cjson_functions_should_not_crash_with_null_pointers() local 385 TEST_ASSERT_FALSE(cJSON_PrintPreallocated(NULL, buffer, sizeof(buffer), true)); in cjson_functions_should_not_crash_with_null_pointers() 477 printbuffer buffer = {NULL, 10, 0, 0, false, false, {&malloc, &free, &failing_realloc}}; in ensure_should_fail_on_failed_realloc() local 478 buffer.buffer = (unsigned char *)malloc(100); in ensure_should_fail_on_failed_realloc() 479 TEST_ASSERT_NOT_NULL(buffer.buffer); in ensure_should_fail_on_failed_realloc() 481 TEST_ASSERT_NULL_MESSAGE(ensure(&buffer, 200), "Ensure didn't fail with failing realloc."); in ensure_should_fail_on_failed_realloc() 487 parse_buffer buffer in skip_utf8_bom_should_skip_bom() local 499 parse_buffer buffer = {0, 0, 0, 0, {0, 0, 0}}; skip_utf8_bom_should_not_skip_bom_if_not_at_beginning() local [all...] |
/third_party/icu/icu4c/source/common/ |
H A D | normalizer2impl.h | 99 * Decomposes c, which must be a Hangul syllable, into buffer 102 static inline int32_t decompose(UChar32 c, UChar buffer[3]) { in decompose() argument 106 buffer[0]=(UChar)(JAMO_L_BASE+c/JAMO_V_COUNT); in decompose() 107 buffer[1]=(UChar)(JAMO_V_BASE+c%JAMO_V_COUNT); in decompose() 111 buffer[2]=(UChar)(JAMO_T_BASE+c2); in decompose() 117 * Decomposes c, which must be a Hangul syllable, into buffer. 120 static inline void getRawDecomposition(UChar32 c, UChar buffer[2]) { in getRawDecomposition() argument 126 buffer[0]=(UChar)(JAMO_L_BASE+c/JAMO_V_COUNT); in getRawDecomposition() 127 buffer[1]=(UChar)(JAMO_V_BASE+c%JAMO_V_COUNT); in getRawDecomposition() 129 buffer[ in getRawDecomposition() [all...] |
/third_party/node/deps/icu-small/source/common/ |
H A D | normalizer2impl.h | 99 * Decomposes c, which must be a Hangul syllable, into buffer 102 static inline int32_t decompose(UChar32 c, char16_t buffer[3]) { in decompose() argument 106 buffer[0]=(char16_t)(JAMO_L_BASE+c/JAMO_V_COUNT); in decompose() 107 buffer[1]=(char16_t)(JAMO_V_BASE+c%JAMO_V_COUNT); in decompose() 111 buffer[2]=(char16_t)(JAMO_T_BASE+c2); in decompose() 117 * Decomposes c, which must be a Hangul syllable, into buffer. 120 static inline void getRawDecomposition(UChar32 c, char16_t buffer[2]) { in getRawDecomposition() argument 126 buffer[0]=(char16_t)(JAMO_L_BASE+c/JAMO_V_COUNT); in getRawDecomposition() 127 buffer[1]=(char16_t)(JAMO_V_BASE+c%JAMO_V_COUNT); in getRawDecomposition() 129 buffer[ in getRawDecomposition() [all...] |
/third_party/mesa3d/src/mesa/main/ |
H A D | eval.c | 151 * memory space to a buffer of contiguous control points. 153 * \return pointer to buffer of contiguous control points or NULL if out 159 GLfloat *buffer, *p; in _mesa_copy_map_points1f() local 165 buffer = malloc(uorder * size * sizeof(GLfloat)); in _mesa_copy_map_points1f() 167 if (buffer) in _mesa_copy_map_points1f() 168 for (i = 0, p = buffer; i < uorder; i++, points += ustride) in _mesa_copy_map_points1f() 172 return buffer; in _mesa_copy_map_points1f() 183 GLfloat *buffer, *p; in _mesa_copy_map_points1d() local 189 buffer = malloc(uorder * size * sizeof(GLfloat)); in _mesa_copy_map_points1d() 191 if (buffer) in _mesa_copy_map_points1d() 216 GLfloat *buffer, *p; _mesa_copy_map_points2f() local 259 GLfloat *buffer, *p; _mesa_copy_map_points2d() local [all...] |
/third_party/skia/third_party/externals/icu/source/common/ |
H A D | normalizer2impl.h | 99 * Decomposes c, which must be a Hangul syllable, into buffer 102 static inline int32_t decompose(UChar32 c, UChar buffer[3]) { in decompose() argument 106 buffer[0]=(UChar)(JAMO_L_BASE+c/JAMO_V_COUNT); in decompose() 107 buffer[1]=(UChar)(JAMO_V_BASE+c%JAMO_V_COUNT); in decompose() 111 buffer[2]=(UChar)(JAMO_T_BASE+c2); in decompose() 117 * Decomposes c, which must be a Hangul syllable, into buffer. 120 static inline void getRawDecomposition(UChar32 c, UChar buffer[2]) { in getRawDecomposition() argument 126 buffer[0]=(UChar)(JAMO_L_BASE+c/JAMO_V_COUNT); in getRawDecomposition() 127 buffer[1]=(UChar)(JAMO_V_BASE+c%JAMO_V_COUNT); in getRawDecomposition() 129 buffer[ in getRawDecomposition() [all...] |
/third_party/protobuf/src/google/protobuf/ |
H A D | generated_message_util.cc | 114 static uint8* SerializeToArray(const void* ptr, uint8* buffer) { in SerializeToArray() 115 return WireFormatLite::WriteBoolNoTagToArray(Get<Type>(ptr), buffer); in SerializeToArray() 125 static uint8* SerializeToArray(const void* ptr, uint8* buffer) { in SerializeToArray() 126 return WireFormatLite::WriteInt32NoTagToArray(Get<Type>(ptr), buffer); in SerializeToArray() 136 static uint8* SerializeToArray(const void* ptr, uint8* buffer) { in SerializeToArray() 137 return WireFormatLite::WriteSInt32NoTagToArray(Get<Type>(ptr), buffer); in SerializeToArray() 147 static uint8* SerializeToArray(const void* ptr, uint8* buffer) { in SerializeToArray() 148 return WireFormatLite::WriteUInt32NoTagToArray(Get<Type>(ptr), buffer); in SerializeToArray() 157 static uint8* SerializeToArray(const void* ptr, uint8* buffer) { in SerializeToArray() 158 return WireFormatLite::WriteInt64NoTagToArray(Get<Type>(ptr), buffer); in SerializeToArray() 661 SerializeInternalToArray(const uint8* base, const FieldMetadata* field_metadata_table, int32 num_fields, bool is_deterministic, uint8* buffer) SerializeInternalToArray() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | dvaudio.h | 24 static inline int dv_get_audio_sample_count(const uint8_t *buffer, int dsf) in dv_get_audio_sample_count() argument 26 int samples = buffer[0] & 0x3f; /* samples in this frame - min samples */ in dv_get_audio_sample_count() 28 switch ((buffer[3] >> 3) & 0x07) { in dv_get_audio_sample_count()
|
/third_party/libuv/src/unix/ |
H A D | no-proctitle.c | 39 int uv_get_process_title(char* buffer, size_t size) { in uv_get_process_title() argument 40 if (buffer == NULL || size == 0) in uv_get_process_title() 43 buffer[0] = '\0'; in uv_get_process_title()
|
/third_party/node/test/parallel/ |
H A D | test-buffer-over-max-length.js | 6 const buffer = require('buffer'); 7 const SlowBuffer = buffer.SlowBuffer; 9 const kMaxLength = buffer.kMaxLength;
|
/third_party/node/deps/uv/src/unix/ |
H A D | no-proctitle.c | 39 int uv_get_process_title(char* buffer, size_t size) { in uv_get_process_title() argument 40 if (buffer == NULL || size == 0) in uv_get_process_title() 43 buffer[0] = '\0'; in uv_get_process_title()
|
/kernel/linux/linux-5.10/drivers/usb/serial/ |
H A D | io_ti.c | 325 * @buffer: pointer to input data buffer 328 int length, __u8 address_type, __u8 *buffer) in read_download_mem() 357 buffer, read_length); in read_download_mem() 365 usb_serial_debug_data(&dev->dev, __func__, read_length, buffer); in read_download_mem() 369 buffer += read_length; in read_download_mem() 377 int length, __u8 *buffer) in read_ram() 380 DTK_ADDR_SPACE_XDATA, buffer); in read_ram() 385 int start_address, int length, __u8 *buffer) in read_boot_mem() 393 (__u16)(start_address+i), &buffer[ in read_boot_mem() 327 read_download_mem(struct usb_device *dev, int start_address, int length, __u8 address_type, __u8 *buffer) read_download_mem() argument 376 read_ram(struct usb_device *dev, int start_address, int length, __u8 *buffer) read_ram() argument 384 read_boot_mem(struct edgeport_serial *serial, int start_address, int length, __u8 *buffer) read_boot_mem() argument 410 write_boot_mem(struct edgeport_serial *serial, int start_address, int length, __u8 *buffer) write_boot_mem() argument 444 write_i2c_mem(struct edgeport_serial *serial, int start_address, int length, __u8 address_type, __u8 *buffer) write_i2c_mem() argument 601 read_rom(struct edgeport_serial *serial, int start_address, int length, __u8 *buffer) read_rom() argument 619 write_rom(struct edgeport_serial *serial, int start_address, int length, __u8 *buffer) write_rom() argument 661 valid_csum(struct ti_i2c_desc *rom_desc, __u8 *buffer) valid_csum() argument 683 __u8 *buffer; check_i2c_image() local 757 get_manuf_info(struct edgeport_serial *serial, __u8 *buffer) get_manuf_info() argument 802 __u8 *buffer; build_i2c_fw_hdr() local 912 bulk_xfer(struct usb_serial *serial, void *buffer, int length, int *num_sent) bulk_xfer() argument 1418 __u8 *buffer; do_boot_mode() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/serial/ |
H A D | io_ti.c | 322 * @buffer: pointer to input data buffer 325 int length, u8 address_type, u8 *buffer) in read_download_mem() 354 buffer, read_length); in read_download_mem() 362 usb_serial_debug_data(&dev->dev, __func__, read_length, buffer); in read_download_mem() 366 buffer += read_length; in read_download_mem() 374 int length, u8 *buffer) in read_ram() 377 DTK_ADDR_SPACE_XDATA, buffer); in read_ram() 382 int start_address, int length, u8 *buffer) in read_boot_mem() 390 (u16)(start_address+i), &buffer[ in read_boot_mem() 324 read_download_mem(struct usb_device *dev, int start_address, int length, u8 address_type, u8 *buffer) read_download_mem() argument 373 read_ram(struct usb_device *dev, int start_address, int length, u8 *buffer) read_ram() argument 381 read_boot_mem(struct edgeport_serial *serial, int start_address, int length, u8 *buffer) read_boot_mem() argument 407 write_boot_mem(struct edgeport_serial *serial, int start_address, int length, u8 *buffer) write_boot_mem() argument 441 write_i2c_mem(struct edgeport_serial *serial, int start_address, int length, u8 address_type, u8 *buffer) write_i2c_mem() argument 598 read_rom(struct edgeport_serial *serial, int start_address, int length, u8 *buffer) read_rom() argument 616 write_rom(struct edgeport_serial *serial, int start_address, int length, u8 *buffer) write_rom() argument 658 valid_csum(struct ti_i2c_desc *rom_desc, u8 *buffer) valid_csum() argument 680 u8 *buffer; check_i2c_image() local 754 get_manuf_info(struct edgeport_serial *serial, u8 *buffer) get_manuf_info() argument 799 u8 *buffer; build_i2c_fw_hdr() local 909 bulk_xfer(struct usb_serial *serial, void *buffer, int length, int *num_sent) bulk_xfer() argument 1415 u8 *buffer; do_boot_mode() local [all...] |