本文整理了Java中com.google.flatbuffers.FlatBufferBuilder.putLong()
方法的一些代码示例,展示了FlatBufferBuilder.putLong()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FlatBufferBuilder.putLong()
方法的具体详情如下:
包路径:com.google.flatbuffers.FlatBufferBuilder
类名称:FlatBufferBuilder
方法名:putLong
[英]Add a long
to the buffer, backwards from the current location. Doesn't align nor check for space.
[中]从当前位置向后向缓冲区添加“long”。不对齐也不检查空间。
代码示例来源:origin: objectbox/objectbox-java
public static int createIdUid(FlatBufferBuilder builder, long id, long uid) {
builder.prep(8, 16);
builder.putLong(uid);
builder.pad(4);
builder.putInt((int)id);
return builder.offset();
}
}
代码示例来源:origin: davidmoten/flatbuffers
/**
* Add a `long` to the buffer, properly aligned, and grows the buffer (if necessary).
*
* @param x A `long` to put into the buffer.
*/
public void addLong (long x) { prep(Constants.SIZEOF_LONG, 0); putLong (x); }
代码示例来源:origin: org.apache.arrow/arrow-format
public static int createBuffer(FlatBufferBuilder builder, long offset, long length) {
builder.prep(8, 16);
builder.putLong(length);
builder.putLong(offset);
return builder.offset();
}
}
代码示例来源:origin: com.google.flatbuffers/flatbuffers-java
/**
* Add a `long` to the buffer, properly aligned, and grows the buffer (if necessary).
*
* @param x A `long` to put into the buffer.
*/
public void addLong (long x) { prep(Constants.SIZEOF_LONG, 0); putLong (x); }
代码示例来源:origin: org.apache.arrow/arrow-format
public static int createFieldNode(FlatBufferBuilder builder, long length, long nullCount) {
builder.prep(8, 16);
builder.putLong(nullCount);
builder.putLong(length);
return builder.offset();
}
}
代码示例来源:origin: com.github.davidmoten/flatbuffers-java
/**
* Add a `long` to the buffer, properly aligned, and grows the buffer (if necessary).
*
* @param x A `long` to put into the buffer.
*/
public void addLong (long x) { prep(Constants.SIZEOF_LONG, 0); putLong (x); }
代码示例来源:origin: flipkart-incubator/kafka-filtering
public void addLong (long x) { prep(8, 0); putLong (x); }
public void addFloat (float x) { prep(4, 0); putFloat (x); }
代码示例来源:origin: com.vlkan/flatbuffers
public void addLong (long x) { prep(8, 0); putLong (x); }
public void addFloat (float x) { prep(4, 0); putFloat (x); }
代码示例来源:origin: locationtech/geogig
public static int createSHA(FlatBufferBuilder builder, int h1, long h2, long h3) {
builder.prep(8, 24);
builder.putLong(h3);
builder.putLong(h2);
builder.pad(4);
builder.putInt(h1);
return builder.offset();
}
}
代码示例来源:origin: org.apache.arrow/arrow-format
public static int createBlock(FlatBufferBuilder builder, long offset, int metaDataLength, long bodyLength) {
builder.prep(8, 24);
builder.putLong(bodyLength);
builder.pad(4);
builder.putInt(metaDataLength);
builder.putLong(offset);
return builder.offset();
}
}
内容来源于网络,如有侵权,请联系作者删除!