Home
last modified time | relevance | path

Searched refs:out_buff (Results 1 – 4 of 4) sorted by relevance

/external/adhd/cras/src/tests/
Dfmt_conv_unittest.cc125 int16_t* out_buff; in TEST() local
147 out_buff = (int16_t*)ralloc(buf_size * 2 * cras_get_format_bytes(&out_fmt)); in TEST()
149 c, (uint8_t*)in_buff, (uint8_t*)out_buff, &in_buf_size, buf_size); in TEST()
152 if (in_buff[i] != out_buff[i * 2] || in_buff[i] != out_buff[i * 2 + 1]) { in TEST()
160 free(out_buff); in TEST()
171 int16_t* out_buff; in TEST() local
194 out_buff = (int16_t*)malloc(buf_size * cras_get_format_bytes(&out_fmt)); in TEST()
200 c, (uint8_t*)in_buff, (uint8_t*)out_buff, &in_buf_size, buf_size); in TEST()
203 EXPECT_EQ(1, out_buff[i]); in TEST()
208 free(out_buff); in TEST()
[all …]
/external/catch2/examples/
D231-Cfg-OutputStreams.cpp14 class out_buff : public std::stringbuf { class
17 out_buff(std::FILE* stream):m_stream(stream) {} in out_buff() function in out_buff
18 ~out_buff();
33 out_buff::~out_buff() { pubsync(); } in ~out_buff()
41 static std::ostream ret(new out_buff(stdout)); in cout()
45 static std::ostream ret(new out_buff(stderr)); in clog()
/external/lz4/programs/
Dlz4io.c401 char* out_buff; in LZ4IO_compressFilename_Legacy() local
420 out_buff = (char*)malloc((size_t)outBuffSize + 4); in LZ4IO_compressFilename_Legacy()
421 if (!in_buff || !out_buff) in LZ4IO_compressFilename_Legacy()
425 LZ4IO_writeLE32(out_buff, LEGACY_MAGICNUMBER); in LZ4IO_compressFilename_Legacy()
426 { size_t const writeSize = fwrite(out_buff, 1, MAGICNUMBER_SIZE, foutput); in LZ4IO_compressFilename_Legacy()
441 … outSize = compressionFunction(in_buff, out_buff+4, (int)inSize, outBuffSize, compressionlevel); in LZ4IO_compressFilename_Legacy()
449 LZ4IO_writeLE32(out_buff, (unsigned)outSize); in LZ4IO_compressFilename_Legacy()
450 { size_t const writeSize = fwrite(out_buff, 1, outSize+4, foutput); in LZ4IO_compressFilename_Legacy()
470 free(out_buff); in LZ4IO_compressFilename_Legacy()
902 char* const out_buff = (char*)malloc(LEGACY_BLOCKSIZE); in LZ4IO_decodeLegacyStream() local
[all …]
/external/libxml2/
Dxmlsave.c2356 xmlOutputBufferPtr out_buff = NULL; in xmlDocDumpFormatMemoryEnc() local
2392 if ((out_buff = xmlAllocOutputBuffer(conv_hdlr)) == NULL ) { in xmlDocDumpFormatMemoryEnc()
2398 ctxt.buf = out_buff; in xmlDocDumpFormatMemoryEnc()
2405 xmlOutputBufferFlush(out_buff); in xmlDocDumpFormatMemoryEnc()
2406 if (out_buff->conv != NULL) { in xmlDocDumpFormatMemoryEnc()
2407 *doc_txt_len = xmlBufUse(out_buff->conv); in xmlDocDumpFormatMemoryEnc()
2408 *doc_txt_ptr = xmlStrndup(xmlBufContent(out_buff->conv), *doc_txt_len); in xmlDocDumpFormatMemoryEnc()
2410 *doc_txt_len = xmlBufUse(out_buff->buffer); in xmlDocDumpFormatMemoryEnc()
2411 *doc_txt_ptr = xmlStrndup(xmlBufContent(out_buff->buffer),*doc_txt_len); in xmlDocDumpFormatMemoryEnc()
2413 (void)xmlOutputBufferClose(out_buff); in xmlDocDumpFormatMemoryEnc()