Home
last modified time | relevance | path

Searched refs:tempbuffer (Results 1 – 8 of 8) sorted by relevance

/third_party/qrcodegen/rust-no-heap/examples/
Dqrcodegen-demo.rs55 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/
Dushape.cpp735 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/
Dushape.cpp735 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/
Dushape.cpp735 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/
Dlib.rs164 …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/
Dsched_driver.c256 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/
DReadme.markdown48 let mut tempbuffer = vec![0u8; Version::MAX.buffer_len()];
50 &mut tempbuffer, &mut outbuffer, QrCodeEcc::Medium,
/third_party/pcre2/pcre2/src/
Dpcre2test.c2947 char tempbuffer[16]; in pchar() local
2970 else n = sprintf(tempbuffer, "\\x{%02x}", c); in pchar()