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

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

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

FlatBufferBuilder.putBoolean介绍

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

代码示例

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

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

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

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

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

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

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

public void addBoolean(boolean x) { prep(1, 0); putBoolean(x); }
public void addByte   (byte    x) { prep(1, 0); putByte   (x); }

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

public void addBoolean(boolean x) { prep(1, 0); putBoolean(x); }
public void addByte   (byte    x) { prep(1, 0); putByte   (x); }

相关文章

微信公众号

最新文章

更多