本文整理了Java中io.aeron.logbuffer.Header.frameLength()
方法的一些代码示例,展示了Header.frameLength()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Header.frameLength()
方法的具体详情如下:
包路径:io.aeron.logbuffer.Header
类名称:Header
方法名:frameLength
[英]The total length of the frame including the header.
[中]包括标头的帧的总长度。
代码示例来源:origin: real-logic/aeron
/**
* Get the current position to which the image has advanced on reading this message.
*
* @return the current position to which the image has advanced on reading this message.
*/
public final long position()
{
final int resultingOffset = BitUtil.align(termOffset() + frameLength(), FRAME_ALIGNMENT);
return computePosition(termId(), resultingOffset, positionBitsToShift, initialTermId);
}
代码示例来源:origin: real-logic/aeron
assertThat(header.sessionId(), is(SESSION_ID));
assertThat(header.termOffset(), is(0));
assertThat(header.frameLength(), is(DataHeaderFlyweight.HEADER_LENGTH + FAKE_PAYLOAD.length));
},
Integer.MAX_VALUE,
代码示例来源:origin: real-logic/aeron
assertThat(header.sessionId(), is(SESSION_ID));
assertThat(header.termOffset(), is(initialTermOffset));
assertThat(header.frameLength(), is(DataHeaderFlyweight.HEADER_LENGTH + FAKE_PAYLOAD.length));
},
Integer.MAX_VALUE,
代码示例来源:origin: real-logic/aeron
assertThat(header.sessionId(), is(SESSION_ID));
assertThat(header.termOffset(), is(0));
assertThat(header.frameLength(), is(DataHeaderFlyweight.HEADER_LENGTH + FAKE_PAYLOAD.length));
},
Integer.MAX_VALUE,
代码示例来源:origin: real-logic/aeron
assertThat(header.sessionId(), is(SESSION_ID));
assertThat(header.termOffset(), is(0));
assertThat(header.frameLength(), is(DataHeaderFlyweight.HEADER_LENGTH + FAKE_PAYLOAD.length));
},
Integer.MAX_VALUE,
代码示例来源:origin: io.aeron/aeron-all
/**
* Get the current position to which the image has advanced on reading this message.
*
* @return the current position to which the image has advanced on reading this message.
*/
public final long position()
{
final int resultingOffset = BitUtil.align(termOffset() + frameLength(), FRAME_ALIGNMENT);
return computePosition(termId(), resultingOffset, positionBitsToShift, initialTermId);
}
代码示例来源:origin: io.aeron/aeron-client
/**
* Get the current position to which the image has advanced on reading this message.
*
* @return the current position to which the image has advanced on reading this message.
*/
public final long position()
{
final int resultingOffset = BitUtil.align(termOffset() + frameLength(), FRAME_ALIGNMENT);
return computePosition(termId(), resultingOffset, positionBitsToShift, initialTermId);
}
内容来源于网络,如有侵权,请联系作者删除!