com.google.flatbuffers.FlatBufferBuilder.putShort()方法的使用及代码示例

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

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

FlatBufferBuilder.putShort介绍

[英]Add a short to the buffer, backwards from the current location. Doesn't align nor check for space.
[中]从当前位置向后向缓冲区添加'short'。不对齐也不检查空间。

代码示例

代码示例来源:origin: davidmoten/flatbuffers

/**
 * Add a `short` to the buffer, properly aligned, and grows the buffer (if necessary).
 *
 * @param x A `short` to put into the buffer.
 */
public void addShort  (short   x) { prep(Constants.SIZEOF_SHORT, 0); putShort  (x); }

代码示例来源:origin: com.google.flatbuffers/flatbuffers-java

/**
 * Add a `short` to the buffer, properly aligned, and grows the buffer (if necessary).
 *
 * @param x A `short` to put into the buffer.
 */
public void addShort  (short   x) { prep(Constants.SIZEOF_SHORT, 0); putShort  (x); }

代码示例来源:origin: com.github.davidmoten/flatbuffers-java

/**
 * Add a `short` to the buffer, properly aligned, and grows the buffer (if necessary).
 *
 * @param x A `short` to put into the buffer.
 */
public void addShort  (short   x) { prep(Constants.SIZEOF_SHORT, 0); putShort  (x); }

代码示例来源:origin: flipkart-incubator/kafka-filtering

public void addShort  (short   x) { prep(2, 0); putShort  (x); }
public void addInt    (int     x) { prep(4, 0); putInt    (x); }

代码示例来源:origin: com.vlkan/flatbuffers

public void addShort  (short   x) { prep(2, 0); putShort  (x); }
public void addInt    (int     x) { prep(4, 0); putInt    (x); }

相关文章

微信公众号

最新文章

更多