本文整理了Java中com.google.flatbuffers.FlatBufferBuilder.addBoolean()
方法的一些代码示例,展示了FlatBufferBuilder.addBoolean()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FlatBufferBuilder.addBoolean()
方法的具体详情如下:
包路径:com.google.flatbuffers.FlatBufferBuilder
类名称:FlatBufferBuilder
方法名:addBoolean
[英]Add a boolean
to a table at o
into its vtable, with value x
and default d
.
[中]将'o'处的表中的'boolean'添加到其vtable中,值为'x',默认值为'd'。
代码示例来源:origin: deeplearning4j/nd4j
public static void addTimestats(FlatBufferBuilder builder, boolean timestats) { builder.addBoolean(4, timestats, false); }
public static void addFootprintForward(FlatBufferBuilder builder, long footprintForward) { builder.addLong(5, footprintForward, 0L); }
代码示例来源:origin: dremio/dremio-oss
public static void addNullable(FlatBufferBuilder builder, boolean nullable) { builder.addBoolean(1, nullable, false); }
public static void addTypeType(FlatBufferBuilder builder, byte typeType) { builder.addByte(2, typeType, 0); }
代码示例来源:origin: locationtech/geogig
public static void addValue(FlatBufferBuilder builder, boolean value) { builder.addBoolean(0, value, false); }
public static int endBOOLEAN(FlatBufferBuilder builder) {
代码示例来源:origin: org.apache.arrow/arrow-format
public static void addNullable(FlatBufferBuilder builder, boolean nullable) { builder.addBoolean(1, nullable, false); }
public static void addTypeType(FlatBufferBuilder builder, byte typeType) { builder.addByte(2, typeType, 0); }
代码示例来源:origin: org.apache.arrow/arrow-format
public static void addIsSigned(FlatBufferBuilder builder, boolean isSigned) { builder.addBoolean(1, isSigned, false); }
public static int endInt(FlatBufferBuilder builder) {
代码示例来源:origin: locationtech/geogig
public static void addIdentified(FlatBufferBuilder builder, boolean identified) { builder.addBoolean(2, identified, false); }
public static void addGeometric(FlatBufferBuilder builder, boolean geometric) { builder.addBoolean(3, geometric, false); }
代码示例来源:origin: locationtech/geogig
public static void addGeometric(FlatBufferBuilder builder, boolean geometric) { builder.addBoolean(3, geometric, false); }
public static void addCrsAuthorityCode(FlatBufferBuilder builder, int crsAuthorityCodeOffset) { builder.addOffset(4, crsAuthorityCodeOffset, 0); }
代码示例来源:origin: org.apache.arrow/arrow-format
public static void addIsOrdered(FlatBufferBuilder builder, boolean isOrdered) { builder.addBoolean(2, isOrdered, false); }
public static int endDictionaryEncoding(FlatBufferBuilder builder) {
代码示例来源:origin: io.joynr.smrf.java/smrf
public static void addIsEncrypted(FlatBufferBuilder builder, boolean isEncrypted) { builder.addBoolean(5, isEncrypted, true); }
public static void addIsCompressed(FlatBufferBuilder builder, boolean isCompressed) { builder.addBoolean(6, isCompressed, false); }
代码示例来源:origin: org.apache.arrow/arrow-format
public static void addIsDelta(FlatBufferBuilder builder, boolean isDelta) { builder.addBoolean(2, isDelta, false); }
public static int endDictionaryBatch(FlatBufferBuilder builder) {
代码示例来源:origin: locationtech/geogig
public static void addNillable(FlatBufferBuilder builder, boolean nillable) { builder.addBoolean(4, nillable, false); }
public static int endSimpleAttributeDescriptor(FlatBufferBuilder builder) {
代码示例来源:origin: org.apache.arrow/arrow-format
public static void addKeysSorted(FlatBufferBuilder builder, boolean keysSorted) { builder.addBoolean(0, keysSorted, false); }
public static int endMap(FlatBufferBuilder builder) {
代码示例来源:origin: io.joynr.smrf.java/smrf
public static void addIsSigned(FlatBufferBuilder builder, boolean isSigned) { builder.addBoolean(4, isSigned, true); }
public static void addIsEncrypted(FlatBufferBuilder builder, boolean isEncrypted) { builder.addBoolean(5, isEncrypted, true); }
代码示例来源:origin: io.joynr.smrf.java/smrf
public static void addIsCompressed(FlatBufferBuilder builder, boolean isCompressed) { builder.addBoolean(6, isCompressed, false); }
public static void addHeaders(FlatBufferBuilder builder, int headersOffset) { builder.addOffset(7, headersOffset, 0); }
代码示例来源:origin: com.google.flatbuffers/flatbuffers-java
/**
* Add a `boolean` to a table at `o` into its vtable, with value `x` and default `d`.
*
* @param o The index into the vtable.
* @param x A `boolean` to put into the buffer, depending on how defaults are handled. If
* `force_defaults` is `false`, compare `x` against the default value `d`. If `x` contains the
* default value, it can be skipped.
* @param d A `boolean` default value to compare against when `force_defaults` is `false`.
*/
public void addBoolean(int o, boolean x, boolean d) { if(force_defaults || x != d) { addBoolean(x); slot(o); } }
代码示例来源:origin: com.github.davidmoten/flatbuffers-java
/**
* Add a `boolean` to a table at `o` into its vtable, with value `x` and default `d`.
*
* @param o The index into the vtable.
* @param x A `boolean` to put into the buffer, depending on how defaults are handled. If
* `force_defaults` is `false`, compare `x` against the default value `d`. If `x` contains the
* default value, it can be skipped.
* @param d A `boolean` default value to compare against when `force_defaults` is `false`.
*/
public void addBoolean(int o, boolean x, boolean d) { if(force_defaults || x != d) { addBoolean(x); slot(o); } }
代码示例来源:origin: davidmoten/flatbuffers
/**
* Add a `boolean` to a table at `o` into its vtable, with value `x` and default `d`.
*
* @param o The index into the vtable.
* @param x A `boolean` to put into the buffer, depending on how defaults are handled. If
* `force_defaults` is `false`, compare `x` against the default value `d`. If `x` contains the
* default value, it can be skipped.
* @param d A `boolean` default value to compare against when `force_defaults` is `false`.
*/
public void addBoolean(int o, boolean x, boolean d) { if(force_defaults || x != d) { addBoolean(x); slot(o); } }
代码示例来源:origin: com.vlkan/flatbuffers
public void addBoolean(int o, boolean x, boolean d) { if(force_defaults || x != d) { addBoolean(x); slot(o); } }
public void addByte (int o, byte x, int d) { if(force_defaults || x != d) { addByte (x); slot(o); } }
代码示例来源:origin: flipkart-incubator/kafka-filtering
public void addBoolean(int o, boolean x, boolean d) { if(force_defaults || x != d) { addBoolean(x); slot(o); } }
public void addByte (int o, byte x, int d) { if(force_defaults || x != d) { addByte (x); slot(o); } }
代码示例来源:origin: locationtech/geogig
public static int createValueVector(FlatBufferBuilder builder, boolean[] data) { builder.startVector(1, data.length, 1); for (int i = data.length - 1; i >= 0; i--) builder.addBoolean(data[i]); return builder.endVector(); }
public static void startValueVector(FlatBufferBuilder builder, int numElems) { builder.startVector(1, numElems, 1); }
内容来源于网络,如有侵权,请联系作者删除!