gpt4 book ai didi

hivemall.utils.codec.ZigZagLEB128Codec.readSignedInt()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 10:21:05 27 4
gpt4 key购买 nike

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

ZigZagLEB128Codec.readSignedInt介绍

暂无

代码示例

代码示例来源:origin: org.apache.hivemall/hivemall-core

@Deprecated
public static float readFloat(@Nonnull final DataInput in) throws IOException {
  int bits = readSignedInt(in);
  return Float.intBitsToFloat(bits);
}

代码示例来源:origin: io.github.myui/hivemall-core

@Deprecated
public static float readFloat(@Nonnull final DataInput in) throws IOException {
  int bits = readSignedInt(in);
  return Float.intBitsToFloat(bits);
}

代码示例来源:origin: org.apache.hivemall/hivemall-core

@Deprecated
@Nonnull
public static float[] readVFloats(@Nonnull final DataInput in, final int size)
    throws IOException {
  final float[] floats = new float[size];
  for (int i = 0; i < size; i++) {
    int bits = ZigZagLEB128Codec.readSignedInt(in);
    floats[i] = Float.intBitsToFloat(bits);
  }
  return floats;
}

代码示例来源:origin: io.github.myui/hivemall-core

@Deprecated
@Nonnull
public static float[] readVFloats(@Nonnull final DataInput in, final int size)
    throws IOException {
  final float[] floats = new float[size];
  for (int i = 0; i < size; i++) {
    int bits = ZigZagLEB128Codec.readSignedInt(in);
    floats[i] = Float.intBitsToFloat(bits);
  }
  return floats;
}

代码示例来源:origin: io.github.myui/hivemall-core

@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
  this._threshold = in.readInt();
  this._used = in.readInt();
  final int size = in.readInt();
  final int[] keys = new int[size];
  final long[] values = new long[size];
  final byte[] states = new byte[size];
  readStates(in, states);
  for (int i = 0; i < size; i++) {
    if (states[i] != FULL) {
      continue;
    }
    keys[i] = ZigZagLEB128Codec.readSignedInt(in);
    values[i] = ZigZagLEB128Codec.readSignedLong(in);
  }
  this._keys = keys;
  this._values = values;
  this._states = states;
}

代码示例来源:origin: io.github.myui/hivemall-core

continue;
keys[i] = ZigZagLEB128Codec.readSignedInt(in);
long ptr = buf.allocate(entrySize);
e.setOffset(ptr);

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