/third_party/qrcodegen/rust-no-heap/examples/ |
D | qrcodegen-demo.rs | 55 let mut tempbuffer = vec![0u8; Version::MAX.buffer_len()]; in do_basic_demo() localVariable 56 let qr: QrCode = QrCode::encode_text(text, &mut tempbuffer, &mut outbuffer, in do_basic_demo() 59 std::mem::drop(tempbuffer); // Optional, because tempbuffer is only needed during encode_text() in do_basic_demo() 69 let mut tempbuffer = vec![0u8; Version::MAX.buffer_len()]; in do_variety_demo() localVariable 71 …&mut tempbuffer, &mut outbuffer, QrCodeEcc::Medium, Version::MIN, Version::MAX, None, true).unwrap… in do_variety_demo() 77 let mut tempbuffer = vec![0u8; Version::MAX.buffer_len()]; in do_variety_demo() localVariable 79 …&mut tempbuffer, &mut outbuffer, QrCodeEcc::High, Version::MIN, Version::MAX, None, true).unwrap(); in do_variety_demo() 85 let mut tempbuffer = vec![0u8; Version::MAX.buffer_len()]; in do_variety_demo() localVariable 87 …&mut tempbuffer, &mut outbuffer, QrCodeEcc::Quartile, Version::MIN, Version::MAX, None, true).unwr… in do_variety_demo() 101 let mut tempbuffer = vec![0u8; Version::MAX.buffer_len()]; in do_variety_demo() localVariable [all …]
|
/third_party/icu/icu4c/source/common/ |
D | ushape.cpp | 735 UChar *tempbuffer=NULL; in handleGeneratedSpaces() local 750 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces() 752 if(tempbuffer == NULL) { in handleGeneratedSpaces() 759 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces() 768 tempbuffer[j] = dest[i]; in handleGeneratedSpaces() 775 tempbuffer[i] = 0x0000; in handleGeneratedSpaces() 780 u_memcpy(dest, tempbuffer, sourceLength); in handleGeneratedSpaces() 818 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces() 828 tempbuffer[j] = dest[i]; in handleGeneratedSpaces() 835 tempbuffer[i] = SPACE_CHAR; in handleGeneratedSpaces() [all …]
|
/third_party/node/deps/icu-small/source/common/ |
D | ushape.cpp | 735 char16_t *tempbuffer=nullptr; in handleGeneratedSpaces() local 750 tempbuffer = (char16_t *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces() 752 if(tempbuffer == nullptr) { in handleGeneratedSpaces() 759 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces() 768 tempbuffer[j] = dest[i]; in handleGeneratedSpaces() 775 tempbuffer[i] = 0x0000; in handleGeneratedSpaces() 780 u_memcpy(dest, tempbuffer, sourceLength); in handleGeneratedSpaces() 818 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces() 828 tempbuffer[j] = dest[i]; in handleGeneratedSpaces() 835 tempbuffer[i] = SPACE_CHAR; in handleGeneratedSpaces() [all …]
|
/third_party/skia/third_party/externals/icu/source/common/ |
D | ushape.cpp | 735 UChar *tempbuffer=NULL; in handleGeneratedSpaces() local 750 tempbuffer = (UChar *)uprv_malloc((sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces() 752 if(tempbuffer == NULL) { in handleGeneratedSpaces() 759 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces() 768 tempbuffer[j] = dest[i]; in handleGeneratedSpaces() 775 tempbuffer[i] = 0x0000; in handleGeneratedSpaces() 780 u_memcpy(dest, tempbuffer, sourceLength); in handleGeneratedSpaces() 818 uprv_memset(tempbuffer, 0, (sourceLength+1)*U_SIZEOF_UCHAR); in handleGeneratedSpaces() 828 tempbuffer[j] = dest[i]; in handleGeneratedSpaces() 835 tempbuffer[i] = SPACE_CHAR; in handleGeneratedSpaces() [all …]
|
/third_party/qrcodegen/rust-no-heap/src/ |
D | lib.rs | 164 …pub fn encode_text<'b>(text: &str, tempbuffer: &'b mut [u8], mut outbuffer: &'a mut [u8], ecl: QrC… in encode_text() 167 let minlen: usize = outbuffer.len().min(tempbuffer.len()); in encode_text() 173 return Ok(Self::encode_codewords(outbuffer, datacodewordslen, tempbuffer, ecl, version, mask)); in encode_text() 179 QrSegment::make_numeric(text, tempbuffer) in encode_text() 181 QrSegment::make_alphanumeric(text, tempbuffer) in encode_text() 188 Ok(Self::encode_codewords(outbuffer, datacodewordslen, tempbuffer, ecl, version, mask)) in encode_text() 319 …mut datacodewordsandoutbuffer: &'a mut [u8], datacodewordslen: usize, mut tempbuffer: &'b mut [u8], in encode_codewords() 323 tempbuffer = &mut tempbuffer [ .. version.buffer_len()]; in encode_codewords() 329 let allcodewords = Self::add_ecc_and_interleave(data, version, ecl, temp, tempbuffer); in encode_codewords() 335 …let funcmods: QrCode = QrCode::<'b>::function_modules_marked(tempbuffer, version); // Just a grid… in encode_codewords()
|
/third_party/ltp/testcases/kernel/sched/sched_stress/ |
D | sched_driver.c | 256 char tempbuffer[50]; /* temporary buffer to hold names */ in startup() local 263 gethostname(tempbuffer, 40); in startup() 264 printf("host name = %s\n", tempbuffer); in startup()
|
/third_party/qrcodegen/rust-no-heap/ |
D | Readme.markdown | 48 let mut tempbuffer = vec![0u8; Version::MAX.buffer_len()]; 50 &mut tempbuffer, &mut outbuffer, QrCodeEcc::Medium,
|
/third_party/pcre2/pcre2/src/ |
D | pcre2test.c | 2947 char tempbuffer[16]; in pchar() local 2970 else n = sprintf(tempbuffer, "\\x{%02x}", c); in pchar()
|