gpt4 book ai didi

org.apache.commons.compress.archivers.zip.ZipEightByteInteger.getValue()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 09:52:26 25 4
gpt4 key购买 nike

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

ZipEightByteInteger.getValue介绍

[英]Get value as Java long.
[中]获取Java long的值。

代码示例

代码示例来源:origin: org.apache.commons/commons-compress

/**
 * Create instance from the eight bytes starting at offset.
 * @param bytes the bytes to store as a ZipEightByteInteger
 * @param offset the offset to start
 */
public ZipEightByteInteger (final byte[] bytes, final int offset) {
  value = ZipEightByteInteger.getValue(bytes, offset);
}

代码示例来源:origin: org.apache.commons/commons-compress

/**
 * Helper method to get the value as a Java long from an eight-byte array
 * @param bytes the array of bytes
 * @return the corresponding Java BigInteger value
 */
public static BigInteger getValue(final byte[] bytes) {
  return getValue(bytes, 0);
}

代码示例来源:origin: org.apache.commons/commons-compress

/**
 * Helper method to get the value as a Java long from eight bytes
 * starting at given array offset
 * @param bytes the array of bytes
 * @param offset the offset to start
 * @return the corresponding Java long value
 */
public static long getLongValue(final byte[] bytes, final int offset) {
  return getValue(bytes, offset).longValue();
}

代码示例来源:origin: org.apache.commons/commons-compress

/**
 * Override to make two instances with same value equal.
 * @param o an object to compare
 * @return true if the objects are equal
 */
@Override
public boolean equals(final Object o) {
  if (o == null || !(o instanceof ZipEightByteInteger)) {
    return false;
  }
  return value.equals(((ZipEightByteInteger) o).getValue());
}

代码示例来源:origin: org.apache.commons/commons-compress

BigInteger len = ZipEightByteInteger.getValue(suspectLocalFileHeader);

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * Helper method to get the value as a Java long from an eight-byte array
 * @param bytes the array of bytes
 * @return the corresponding Java BigInteger value
 */
public static BigInteger getValue(final byte[] bytes) {
  return getValue(bytes, 0);
}

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * Create instance from the eight bytes starting at offset.
 * @param bytes the bytes to store as a ZipEightByteInteger
 * @param offset the offset to start
 */
public ZipEightByteInteger (final byte[] bytes, final int offset) {
  value = ZipEightByteInteger.getValue(bytes, offset);
}

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * Override to make two instances with same value equal.
 * @param o an object to compare
 * @return true if the objects are equal
 */
@Override
public boolean equals(final Object o) {
  if (o == null || !(o instanceof ZipEightByteInteger)) {
    return false;
  }
  return value.equals(((ZipEightByteInteger) o).getValue());
}

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * Helper method to get the value as a Java long from eight bytes
 * starting at given array offset
 * @param bytes the array of bytes
 * @param offset the offset to start
 * @return the corresponding Java long value
 */
public static long getLongValue(final byte[] bytes, final int offset) {
  return getValue(bytes, offset).longValue();
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com