Home
last modified time | relevance | path

Searched refs:uncompressedLength (Results 1 – 25 of 126) sorted by relevance

123456

/dports/archivers/snappy-java/snappy-java-1.1.7.5/src/main/java/org/xerial/snappy/
H A DSnappy.java579 int uncompressedLength = Snappy.uncompressedLength(input, offset, length); in uncompressCharArray() local
580 char[] result = new char[uncompressedLength / 2]; in uncompressCharArray()
595 int uncompressedLength = Snappy.uncompressedLength(input, 0, input.length); in uncompressDoubleArray() local
610 public static int uncompressedLength(byte[] input) in uncompressedLength() method in Snappy
669 return impl.uncompressedLength(inputAddr, len); in uncompressedLength()
697 int uncompressedLength = Snappy.uncompressedLength(input, offset, length); in uncompressFloatArray() local
728 int uncompressedLength = Snappy.uncompressedLength(input, offset, length); in uncompressIntArray() local
729 int[] result = new int[uncompressedLength / 4]; in uncompressIntArray()
759 int uncompressedLength = Snappy.uncompressedLength(input, offset, length); in uncompressLongArray() local
760 long[] result = new long[uncompressedLength / 8]; in uncompressLongArray()
[all …]
H A DSnappyInputStream.java145 int uncompressedLength = Snappy.uncompressedLength(compressed, 0, cursor); in readFully() local
146 uncompressed = new byte[uncompressedLength]; in readFully()
149 this.uncompressedLimit = uncompressedLength; in readFully()
435 int uncompressedLength = Snappy.uncompressedLength(compressed, 0, chunkSize); in hasNextChunk() local
436 if (uncompressed == null || uncompressedLength > uncompressed.length) { in hasNextChunk()
437 uncompressed = new byte[uncompressedLength]; in hasNextChunk()
440 if (uncompressedLength != actualUncompressedLength) { in hasNextChunk()
441 …format("expected %,d bytes, but decompressed chunk has %,d bytes", uncompressedLength, actualUncom… in hasNextChunk()
/dports/devel/folly/folly-2021.12.27.00/folly/compression/
H A DCompression.cpp100 if (!uncompressedLength) { in uncompress()
120 if (!uncompressedLength) { in uncompress()
210 return uncompressedLength; in doGetUncompressedLength()
391 uncompressedLength = getUncompressedLength(data, uncompressedLength); in doUncompress()
397 (uncompressedLength && *uncompressedLength <= kMaxSingleStepLength in doUncompress()
425 if (uncompressedLength && in doUncompress()
674 if (uncompressedLength && *uncompressedLength != actualUncompressedLength) { in doUncompress()
898 if (uncompressedLength && queue.chainLength() != *uncompressedLength) { in doUncompress()
1010 if (uncompressedLength && *uncompressedLength != actualUncompressedLength) { in doUncompress()
1307 if (uncompressedLength() && *uncompressedLength() != ret.value()) { in decodeAndCheckVarint()
[all …]
H A DCompression.h181 folly::Optional<uint64_t> uncompressedLength = folly::none);
190 folly::Optional<uint64_t> uncompressedLength = folly::none);
196 uint64_t maxCompressedLength(uint64_t uncompressedLength) const;
208 folly::Optional<uint64_t> uncompressedLength = folly::none) const;
215 folly::Optional<uint64_t> uncompressedLength = folly::none) const;
240 folly::Optional<uint64_t> uncompressedLength = folly::none) const;
257 folly::Optional<uint64_t> uncompressedLength) = 0;
264 StringPiece data, folly::Optional<uint64_t> uncompressedLength);
270 folly::Optional<uint64_t> uncompressedLength) const;
401 folly::Optional<uint64_t> uncompressedLength() const { in uncompressedLength() function
[all …]
H A DZstd.cpp73 const IOBuf* data, Optional<uint64_t> uncompressedLength) const override;
77 uint64_t doMaxCompressedLength(uint64_t uncompressedLength) const override;
79 IOBuf const* data, Optional<uint64_t> uncompressedLength) const override;
125 uint64_t uncompressedLength) const { in doMaxCompressedLength()
126 return ZSTD_compressBound(uncompressedLength); in doMaxCompressedLength()
130 IOBuf const* data, Optional<uint64_t> uncompressedLength) const { in doGetUncompressedLength()
136 return uncompressedLength; in doGetUncompressedLength()
138 if (uncompressedLength && *uncompressedLength != decompressedSize) { in doGetUncompressedLength()
156 cctx_.get(), uncompressedLength().value_or(ZSTD_CONTENTSIZE_UNKNOWN))); in resetCCtx()
/dports/www/firefox-esr/firefox-91.8.0/dom/localstorage/
H A DSnappyUtils.cpp21 size_t uncompressedLength = aSource.Length(); in SnappyCompress() local
23 if (uncompressedLength <= 16) { in SnappyCompress()
28 size_t compressedLength = snappy::MaxCompressedLength(uncompressedLength); in SnappyCompress()
34 snappy::RawCompress(aSource.BeginReading(), uncompressedLength, in SnappyCompress()
37 if (compressedLength >= uncompressedLength) { in SnappyCompress()
56 size_t uncompressedLength; in SnappyUncompress() local
58 &uncompressedLength)) { in SnappyUncompress()
62 aDest.SetLength(uncompressedLength); in SnappyUncompress()
/dports/mail/thunderbird/thunderbird-91.8.0/dom/localstorage/
H A DSnappyUtils.cpp21 size_t uncompressedLength = aSource.Length(); in SnappyCompress() local
23 if (uncompressedLength <= 16) { in SnappyCompress()
28 size_t compressedLength = snappy::MaxCompressedLength(uncompressedLength); in SnappyCompress()
34 snappy::RawCompress(aSource.BeginReading(), uncompressedLength, in SnappyCompress()
37 if (compressedLength >= uncompressedLength) { in SnappyCompress()
56 size_t uncompressedLength; in SnappyUncompress() local
58 &uncompressedLength)) { in SnappyUncompress()
62 aDest.SetLength(uncompressedLength); in SnappyUncompress()
/dports/lang/spidermonkey78/firefox-78.9.0/dom/localstorage/
H A DSnappyUtils.cpp17 size_t uncompressedLength = aSource.Length(); in SnappyCompress() local
19 if (uncompressedLength <= 16) { in SnappyCompress()
24 size_t compressedLength = snappy::MaxCompressedLength(uncompressedLength); in SnappyCompress()
30 snappy::RawCompress(aSource.BeginReading(), uncompressedLength, in SnappyCompress()
33 if (compressedLength >= uncompressedLength) { in SnappyCompress()
52 size_t uncompressedLength; in SnappyUncompress() local
54 &uncompressedLength)) { in SnappyUncompress()
58 aDest.SetLength(uncompressedLength); in SnappyUncompress()
/dports/www/firefox/firefox-99.0/dom/localstorage/
H A DSnappyUtils.cpp22 size_t uncompressedLength = aSource.Length(); in SnappyCompress() local
24 if (uncompressedLength <= 16) { in SnappyCompress()
29 size_t compressedLength = snappy::MaxCompressedLength(uncompressedLength); in SnappyCompress()
35 snappy::RawCompress(aSource.BeginReading(), uncompressedLength, in SnappyCompress()
38 if (compressedLength >= uncompressedLength) { in SnappyCompress()
57 size_t uncompressedLength = 0u; in SnappyUncompress() local
59 &uncompressedLength)) { in SnappyUncompress()
63 CheckedUint32 checkedLength(uncompressedLength); in SnappyUncompress()
/dports/games/powder-toy/The-Powder-Toy-95.0/src/gui/update/
H A DUpdateActivity.cpp65 unsigned int uncompressedLength; in doWork() local
78 uncompressedLength = (unsigned char)data[4]; in doWork()
79 uncompressedLength |= ((unsigned char)data[5])<<8; in doWork()
80 uncompressedLength |= ((unsigned char)data[6])<<16; in doWork()
81 uncompressedLength |= ((unsigned char)data[7])<<24; in doWork()
84 res = (char *)malloc(uncompressedLength); in doWork()
87 …error = String::Build("Unable to allocate ", uncompressedLength, " bytes of memory for decompressi… in doWork()
92 …dstate = BZ2_bzBuffToBuffDecompress((char *)res, (unsigned *)&uncompressedLength, &data[8], data.s… in doWork()
105 if (update_start(res, uncompressedLength)) in doWork()
/dports/graphics/dcmtk/dcmtk-DCMTK-3.6.6/dcmjpls/libcharls/
H A Dintrface.cc12 …ata, size_t compressedLength, const void* uncompressedData, size_t uncompressedLength, const JlsPa… in CheckInput() argument
34 if (uncompressedLength < size_t(bytesperline * pparams->height)) in CheckInput()
40 JLS_ERROR CheckInput(const void* uncompressedData, size_t uncompressedLength, const JlsParameters* … in CheckInput() argument
56 if (uncompressedLength < size_t(bytesperline * pparams->height)) in CheckInput()
67 …_size, size_t* pcbyteWritten, const void* uncompressedData, size_t uncompressedLength, struct JlsP… in JpegLsEncode() argument
81 JLS_ERROR parameterError = CheckInput(uncompressedData, uncompressedLength, &info); in JpegLsEncode()
126 CHARLS_IMEXPORT(JLS_ERROR) JpegLsDecode(void* uncompressedData, size_t uncompressedLength, const vo… in JpegLsDecode() argument
137 reader.Read(uncompressedData, uncompressedLength); in JpegLsDecode()
160 reader.Read(uncompressedData, uncompressedLength); in JpegLsDecodeRect()
170 …JLS_ERROR) JpegLsVerifyEncode(const void* uncompressedData, size_t uncompressedLength, const void*… in JpegLsVerifyEncode() argument
[all …]
H A Dintrface.h29 const void* uncompressedData, size_t uncompressedLength, struct JlsParameters* pparams);
31 CHARLS_IMEXPORT(enum JLS_ERROR) JpegLsDecode(void* uncompressedData, size_t uncompressedLength,
36 …HARLS_IMEXPORT(enum JLS_ERROR) JpegLsDecodeRect(void* uncompressedData, size_t uncompressedLength,
43 …EXPORT(enum JLS_ERROR) JpegLsVerifyEncode(const void* uncompressedData, size_t uncompressedLength,
/dports/databases/arrow/apache-arrow-6.0.1/java/vector/src/main/java/org/apache/arrow/vector/compression/
H A DAbstractCompressionCodec.java44 long uncompressedLength = uncompressedBuffer.writerIndex(); in compress() local
46 if (compressedLength > uncompressedLength) { in compress()
51 writeUncompressedLength(compressedBuffer, uncompressedLength); in compress()
81 protected void writeUncompressedLength(ArrowBuf compressedBuffer, long uncompressedLength) { in writeUncompressedLength() argument
83 uncompressedLength = Long.reverseBytes(uncompressedLength); in writeUncompressedLength()
86 compressedBuffer.setLong(0, uncompressedLength); in writeUncompressedLength()
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/task/reduce/
H A DShuffleHeader.java51 long uncompressedLength; field in ShuffleHeader
58 long uncompressedLength, int forReduce) { in ShuffleHeader() argument
61 this.uncompressedLength = uncompressedLength; in ShuffleHeader()
68 uncompressedLength = WritableUtils.readVLong(in); in readFields()
75 WritableUtils.writeVLong(out, uncompressedLength); in write()
/dports/graphics/darktable38/darktable-3.8.0/src/external/rawspeed/bench/librawspeed/decompressors/
H A DDeflateDecompressorBenchmark.cpp55 const uLong uncompressedLength = BPS::value * mRaw->dim.x * mRaw->dim.y / 8UL; in compressChunk() local
56 assert(uncompressedLength > 0); in compressChunk()
57 assert(uncompressedLength <= std::numeric_limits<Buffer::size_type>::max()); in compressChunk()
59 *bufSize = compressBound(uncompressedLength); in compressChunk()
64 auto uBuf = Buffer::Create(uncompressedLength); in compressChunk()
70 const int err = compress(cBuf.get(), bufSize, uBuf.get(), uncompressedLength); in compressChunk()
74 assert(compressBound(uncompressedLength) >= *bufSize); in compressChunk()
/dports/graphics/darktable/darktable-3.6.1/src/external/rawspeed/bench/librawspeed/decompressors/
H A DDeflateDecompressorBenchmark.cpp55 const uLong uncompressedLength = BPS::value * mRaw->dim.x * mRaw->dim.y / 8UL; in compressChunk() local
56 assert(uncompressedLength > 0); in compressChunk()
57 assert(uncompressedLength <= std::numeric_limits<Buffer::size_type>::max()); in compressChunk()
59 *bufSize = compressBound(uncompressedLength); in compressChunk()
64 auto uBuf = Buffer::Create(uncompressedLength); in compressChunk()
70 const int err = compress(cBuf.get(), bufSize, uBuf.get(), uncompressedLength); in compressChunk()
74 assert(compressBound(uncompressedLength) >= *bufSize); in compressChunk()
/dports/graphics/photoflow/PhotoFlow-8472024f/src/external/rawspeed/bench/librawspeed/decompressors/
H A DDeflateDecompressorBenchmark.cpp55 const uLong uncompressedLength = BPS::value * mRaw->dim.x * mRaw->dim.y / 8UL; in compressChunk() local
56 assert(uncompressedLength > 0); in compressChunk()
57 assert(uncompressedLength <= std::numeric_limits<Buffer::size_type>::max()); in compressChunk()
59 *bufSize = compressBound(uncompressedLength); in compressChunk()
64 auto uBuf = Buffer::Create(uncompressedLength); in compressChunk()
70 const int err = compress(cBuf.get(), bufSize, uBuf.get(), uncompressedLength); in compressChunk()
74 assert(compressBound(uncompressedLength) >= *bufSize); in compressChunk()
/dports/net/ooni-probe-cli/probe-cli-3.10.1/vendor/gitlab.com/yawning/utls.git/
H A Dy_certificate_compression.go76 uncompressedLength uint32 member
97 if !s.ReadUint24(&m.uncompressedLength) {
115 if m.uncompressedLength > 1<<24 {
133 decompressed = make([]byte, m.uncompressedLength)
140 if length != int(m.uncompressedLength) {
/dports/net/ooni-mini/probe-engine-0.23.0/vendor/gitlab.com/yawning/utls.git/
H A Dy_certificate_compression.go76 uncompressedLength uint32 member
97 if !s.ReadUint24(&m.uncompressedLength) {
115 if m.uncompressedLength > 1<<24 {
133 decompressed = make([]byte, m.uncompressedLength)
140 if length != int(m.uncompressedLength) {
/dports/security/obfs4proxy-tor/obfs4proxy-0.0.11/vendor/gitlab.com/yawning/utls.git/
H A Dy_certificate_compression.go76 uncompressedLength uint32 member
97 if !s.ReadUint24(&m.uncompressedLength) {
115 if m.uncompressedLength > 1<<24 {
133 decompressed = make([]byte, m.uncompressedLength)
140 if length != int(m.uncompressedLength) {
/dports/devel/folly/folly-2021.12.27.00/folly/compression/test/
H A DCompressionTest.cpp392 constexpr uint64_t uncompressedLength = 42; in runSimpleTest() local
421 codec_->uncompress(corrupted.get(), uncompressedLength), in runSimpleTest()
434 codec_->uncompress(corrupted.get(), uncompressedLength), in runSimpleTest()
1043 constexpr uint64_t uncompressedLength = 1000; in runSimpleTest() local
1155 EXPECT_TRUE(canUncompress(data, uncompressedLength)); in doUncompress()
1158 return codec_->uncompress(&clone, uncompressedLength); in doUncompress()
1256 return uncompressedLength; in doMaxCompressedLength()
1425 size_t const uncompressedLength = (size_t)1 << 27; in TEST() local
1428 uncompressedLength); in TEST()
1547 size_t const uncompressedLength = (size_t)1 << 16; in runSimpleRoundTripTest() local
[all …]
/dports/lang/spidermonkey78/firefox-78.9.0/xpcom/io/
H A DSnappyFrameUtils.cpp204 size_t uncompressedLength; in ParseCompressedData() local
206 aData + offset, aDataLength - offset, &uncompressedLength))) { in ParseCompressedData()
210 if (NS_WARN_IF(aDestLength < uncompressedLength)) { in ParseCompressedData()
220 ~0, reinterpret_cast<const unsigned char*>(aDest), uncompressedLength); in ParseCompressedData()
226 *aBytesWrittenOut = uncompressedLength; in ParseCompressedData()
/dports/lang/spidermonkey60/firefox-60.9.0/xpcom/io/
H A DSnappyFrameUtils.cpp204 size_t uncompressedLength; in ParseCompressedData() local
206 aData + offset, aDataLength - offset, &uncompressedLength))) { in ParseCompressedData()
210 if (NS_WARN_IF(aDestLength < uncompressedLength)) { in ParseCompressedData()
220 ~0, reinterpret_cast<const unsigned char*>(aDest), uncompressedLength); in ParseCompressedData()
226 *aBytesWrittenOut = uncompressedLength; in ParseCompressedData()
/dports/www/firefox-legacy/firefox-52.8.0esr/xpcom/io/
H A DSnappyFrameUtils.cpp218 size_t uncompressedLength; in ParseCompressedData() local
221 &uncompressedLength))) { in ParseCompressedData()
225 if (NS_WARN_IF(aDestLength < uncompressedLength)) { in ParseCompressedData()
235 uncompressedLength); in ParseCompressedData()
241 *aBytesWrittenOut = uncompressedLength; in ParseCompressedData()
/dports/mail/thunderbird/thunderbird-91.8.0/xpcom/io/
H A DSnappyFrameUtils.cpp204 size_t uncompressedLength; in ParseCompressedData() local
206 aData + offset, aDataLength - offset, &uncompressedLength))) { in ParseCompressedData()
210 if (NS_WARN_IF(aDestLength < uncompressedLength)) { in ParseCompressedData()
220 ~0, reinterpret_cast<const unsigned char*>(aDest), uncompressedLength); in ParseCompressedData()
226 *aBytesWrittenOut = uncompressedLength; in ParseCompressedData()

123456