lzma.sdk.lzma.Encoder.setNumFastBytes()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(123)

本文整理了Java中lzma.sdk.lzma.Encoder.setNumFastBytes()方法的一些代码示例,展示了Encoder.setNumFastBytes()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Encoder.setNumFastBytes()方法的具体详情如下:
包路径:lzma.sdk.lzma.Encoder
类名称:Encoder
方法名:setNumFastBytes

Encoder.setNumFastBytes介绍

暂无

代码示例

代码示例来源:origin: netty/netty

encoder.setEndMarkerMode(endMarkerMode);
encoder.setMatchFinder(DEFAULT_MATCH_FINDER);
encoder.setNumFastBytes(numFastBytes);
encoder.setLcLpPb(lc, lp, pb);

代码示例来源:origin: redisson/redisson

encoder.setEndMarkerMode(endMarkerMode);
encoder.setMatchFinder(DEFAULT_MATCH_FINDER);
encoder.setNumFastBytes(numFastBytes);
encoder.setLcLpPb(lc, lp, pb);

代码示例来源:origin: wildfly/wildfly

encoder.setEndMarkerMode(endMarkerMode);
encoder.setMatchFinder(DEFAULT_MATCH_FINDER);
encoder.setNumFastBytes(numFastBytes);
encoder.setLcLpPb(lc, lp, pb);

代码示例来源:origin: apache/activemq-artemis

encoder.setEndMarkerMode(endMarkerMode);
encoder.setMatchFinder(DEFAULT_MATCH_FINDER);
encoder.setNumFastBytes(numFastBytes);
encoder.setLcLpPb(lc, lp, pb);

代码示例来源:origin: io.netty/netty-codec

encoder.setEndMarkerMode(endMarkerMode);
encoder.setMatchFinder(DEFAULT_MATCH_FINDER);
encoder.setNumFastBytes(numFastBytes);
encoder.setLcLpPb(lc, lp, pb);

代码示例来源:origin: com.datastax.oss/java-driver-core-shaded

encoder.setEndMarkerMode(endMarkerMode);
encoder.setMatchFinder(DEFAULT_MATCH_FINDER);
encoder.setNumFastBytes(numFastBytes);
encoder.setLcLpPb(lc, lp, pb);

代码示例来源:origin: KostyaSha/yet-another-docker-plugin

encoder.setEndMarkerMode(endMarkerMode);
encoder.setMatchFinder(DEFAULT_MATCH_FINDER);
encoder.setNumFastBytes(numFastBytes);
encoder.setLcLpPb(lc, lp, pb);

代码示例来源:origin: org.apache.activemq/artemis-jms-client-all

encoder.setEndMarkerMode(endMarkerMode);
encoder.setMatchFinder(DEFAULT_MATCH_FINDER);
encoder.setNumFastBytes(numFastBytes);
encoder.setLcLpPb(lc, lp, pb);

代码示例来源:origin: io.bitsensor/proto

encoder.setEndMarkerMode(endMarkerMode);
encoder.setMatchFinder(DEFAULT_MATCH_FINDER);
encoder.setNumFastBytes(numFastBytes);
encoder.setLcLpPb(lc, lp, pb);

代码示例来源:origin: apache/activemq-artemis

encoder.setEndMarkerMode(endMarkerMode);
encoder.setMatchFinder(DEFAULT_MATCH_FINDER);
encoder.setNumFastBytes(numFastBytes);
encoder.setLcLpPb(lc, lp, pb);

代码示例来源:origin: com.github.jponge/lzma-java

public LzmaOutputStream build() throws IOException
  {
    Encoder encoder = new Encoder();
    encoder.setDictionarySize(dictionnarySize);
    encoder.setEndMarkerMode(endMarkerMode);
    encoder.setMatchFinder(matchFinder);
    encoder.setNumFastBytes(numFastBytes);
    return new LzmaOutputStream(out, encoder);
  }
}

代码示例来源:origin: com.github.danny02/JOpenCTM

public void writeCompressedData(byte[] data) throws IOException {
    //some magic size as in the OpenCTM reference implementation
    ByteArrayOutputStream bout = new ByteArrayOutputStream(1000 + data.length);

    Encoder enc = new Encoder();
    enc.setEndMarkerMode(false);
    if (compressionLevel <= 5) {
      enc.setDictionarySize(1 << (compressionLevel * 2 + 14));
    } else if (compressionLevel == 6) {
      enc.setDictionarySize(1 << 25);
    } else {
      enc.setDictionarySize(1 << 26);
    }
    enc.setNumFastBytes(compressionLevel < 7 ? 32 : 64);
    
    enc.code(new ByteArrayInputStream(data), bout, data.length, -1, null);
//        try (OutputStream lzout = new LzmaOutputStream(bout, new CustomWrapper(enc))) {
//            lzout.write(data);
//        }

    //This is the custom way of OpenCTM to write the LZMA properties
    this.writeLittleInt(bout.size());
    enc.writeCoderProperties(this);
    bout.writeTo(this);
//        write(data);
  }

代码示例来源:origin: org.apache.hbase.thirdparty/hbase-shaded-netty

encoder.setEndMarkerMode(endMarkerMode);
encoder.setMatchFinder(DEFAULT_MATCH_FINDER);
encoder.setNumFastBytes(numFastBytes);
encoder.setLcLpPb(lc, lp, pb);

代码示例来源:origin: org.apache.ratis/ratis-proto-shaded

encoder.setEndMarkerMode(endMarkerMode);
encoder.setMatchFinder(DEFAULT_MATCH_FINDER);
encoder.setNumFastBytes(numFastBytes);
encoder.setLcLpPb(lc, lp, pb);

代码示例来源:origin: org.jboss.eap/wildfly-client-all

encoder.setEndMarkerMode(endMarkerMode);
encoder.setMatchFinder(DEFAULT_MATCH_FINDER);
encoder.setNumFastBytes(numFastBytes);
encoder.setLcLpPb(lc, lp, pb);

代码示例来源:origin: com.github.jponge/lzma-java

public LzmaEncoderWrapper build()
  {
    Encoder encoder = new Encoder();
    encoder.setDictionarySize(dictionnarySize);
    encoder.setEndMarkerMode(endMarkerMode);
    encoder.setMatchFinder(matchFinder);
    encoder.setNumFastBytes(numFastBytes);
    return new LzmaEncoderWrapper(encoder);
  }
}

代码示例来源:origin: jponge/lzma-java

public LzmaEncoderWrapper build()
  {
    Encoder encoder = new Encoder();
    encoder.setDictionarySize(dictionnarySize);
    encoder.setEndMarkerMode(endMarkerMode);
    encoder.setMatchFinder(matchFinder);
    encoder.setNumFastBytes(numFastBytes);
    return new LzmaEncoderWrapper(encoder);
  }
}

代码示例来源:origin: jponge/lzma-java

public LzmaOutputStream build() throws IOException
  {
    Encoder encoder = new Encoder();
    encoder.setDictionarySize(dictionnarySize);
    encoder.setEndMarkerMode(endMarkerMode);
    encoder.setMatchFinder(matchFinder);
    encoder.setNumFastBytes(numFastBytes);
    return new LzmaOutputStream(out, encoder);
  }
}

相关文章