io.airlift.slice.Slice.setShort()方法的使用及代码示例

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

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

Slice.setShort介绍

[英]Sets the specified 16-bit short integer at the specified absolute index in this buffer. The 16 high-order bits of the specified value are ignored.
[中]在此缓冲区中指定的绝对索引处设置指定的16位短整数。指定值的16个高位将被忽略。

代码示例

代码示例来源:origin: prestodb/presto

@Override
public void writeShort(int value)
{
  ensureWritableBytes(SIZE_OF_SHORT);
  slice.setShort(bufferPosition, value);
  bufferPosition += SIZE_OF_SHORT;
}

代码示例来源:origin: prestodb/presto

@Override
public void writeShort(int value)
{
  ensureWritableBytes(SIZE_OF_SHORT);
  slice.setShort(bufferPosition, value);
  bufferPosition += SIZE_OF_SHORT;
}

代码示例来源:origin: prestodb/presto

@Override
public void writeShort(int value)
{
  ensureWritableBytes(SIZE_OF_SHORT);
  slice.setShort(bufferPosition, value);
  bufferPosition += SIZE_OF_SHORT;
}

代码示例来源:origin: prestodb/presto

@Override
public void writeShort(int value)
{
  ensureWritableBytes(SIZE_OF_SHORT);
  slice.setShort(bufferPosition, value);
  bufferPosition += SIZE_OF_SHORT;
}

代码示例来源:origin: airlift/slice

@Override
public void writeShort(int value)
{
  slice.setShort(size, value);
  size += SIZE_OF_SHORT;
}

代码示例来源:origin: io.airlift/slice

@Override
public void writeShort(int value)
{
  slice.setShort(size, value);
  size += SIZE_OF_SHORT;
}

代码示例来源:origin: io.prestosql/presto-orc

@Override
public void writeShort(int value)
{
  ensureWritableBytes(SIZE_OF_SHORT);
  slice.setShort(bufferPosition, value);
  bufferPosition += SIZE_OF_SHORT;
}

代码示例来源:origin: prestosql/presto

@Override
public void writeShort(int value)
{
  ensureWritableBytes(SIZE_OF_SHORT);
  slice.setShort(bufferPosition, value);
  bufferPosition += SIZE_OF_SHORT;
}

代码示例来源:origin: airlift/slice

@Override
public void writeShort(int value)
{
  slice = Slices.ensureSize(slice, size + SIZE_OF_SHORT);
  slice.setShort(size, value);
  size += SIZE_OF_SHORT;
}

代码示例来源:origin: com.facebook.presto/presto-orc

@Override
public void writeShort(int value)
{
  ensureWritableBytes(SIZE_OF_SHORT);
  slice.setShort(bufferPosition, value);
  bufferPosition += SIZE_OF_SHORT;
}

代码示例来源:origin: prestosql/presto

@Override
public void writeShort(int value)
{
  ensureWritableBytes(SIZE_OF_SHORT);
  slice.setShort(bufferPosition, value);
  bufferPosition += SIZE_OF_SHORT;
}

代码示例来源:origin: io.airlift/slice

@Override
public void writeShort(int value)
{
  slice = Slices.ensureSize(slice, size + SIZE_OF_SHORT);
  slice.setShort(size, value);
  size += SIZE_OF_SHORT;
}

代码示例来源:origin: com.facebook.presto/presto-orc

@Override
public void writeShort(int value)
{
  ensureWritableBytes(SIZE_OF_SHORT);
  slice.setShort(bufferPosition, value);
  bufferPosition += SIZE_OF_SHORT;
}

代码示例来源:origin: io.prestosql/presto-orc

@Override
public void writeShort(int value)
{
  ensureWritableBytes(SIZE_OF_SHORT);
  slice.setShort(bufferPosition, value);
  bufferPosition += SIZE_OF_SHORT;
}

代码示例来源:origin: com.facebook.presto/presto-rcfile

@Override
public void writeShort(int value)
{
  ensureWritableBytes(SIZE_OF_SHORT);
  slice.setShort(bufferPosition, value);
  bufferPosition += SIZE_OF_SHORT;
}

代码示例来源:origin: com.facebook.presto/presto-rcfile

@Override
public void writeShort(int value)
{
  ensureWritableBytes(SIZE_OF_SHORT);
  slice.setShort(bufferPosition, value);
  bufferPosition += SIZE_OF_SHORT;
}

代码示例来源:origin: prestosql/presto

@Override
public void writeShort(int value)
{
  ensureWritableBytes(SIZE_OF_SHORT);
  slice.setShort(bufferPosition, value);
  bufferPosition += SIZE_OF_SHORT;
}

代码示例来源:origin: prestosql/presto

@Override
public void writeShort(int value)
{
  ensureWritableBytes(SIZE_OF_SHORT);
  slice.setShort(bufferPosition, value);
  bufferPosition += SIZE_OF_SHORT;
}

代码示例来源:origin: airlift/slice

slice.setShort(index, 0xAA55);
assertEquals(slice.getShort(index), (short) 0xAA55);

代码示例来源:origin: io.airlift/slice

slice.setShort(index, 0xAA55);
assertEquals(slice.getShort(index), (short) 0xAA55);

相关文章