io.aeron.logbuffer.Header.<init>()方法的使用及代码示例

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

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

Header.<init>介绍

[英]Construct a header that references a buffer for the log.
[中]构造引用日志缓冲区的标头。

代码示例

代码示例来源:origin: real-logic/aeron

this.positionBitsToShift = LogBufferDescriptor.positionBitsToShift(termLength);
this.initialTermId = LogBufferDescriptor.initialTermId(logBuffers.metaDataBuffer());
header = new Header(initialTermId, positionBitsToShift, this);

代码示例来源:origin: real-logic/aeron

final Header header = new Header(INITIAL_TERM_ID, Integer.numberOfLeadingZeros(TERM_BUFFER_LENGTH));
header.buffer(buffer);

代码示例来源:origin: real-logic/aeron

final Header header = new Header(INITIAL_TERM_ID, Integer.numberOfLeadingZeros(TERM_BUFFER_LENGTH));
header.buffer(buffer);

代码示例来源:origin: io.aeron/aeron-all

this.positionBitsToShift = LogBufferDescriptor.positionBitsToShift(termLength);
this.initialTermId = LogBufferDescriptor.initialTermId(logBuffers.metaDataBuffer());
header = new Header(initialTermId, positionBitsToShift, this);

代码示例来源:origin: io.aeron/aeron-client

this.positionBitsToShift = LogBufferDescriptor.positionBitsToShift(termLength);
this.initialTermId = LogBufferDescriptor.initialTermId(logBuffers.metaDataBuffer());
header = new Header(initialTermId, positionBitsToShift, this);

相关文章