本文整理了Java中org.littleshoot.mina.common.ByteBuffer.duplicate()
方法的一些代码示例,展示了ByteBuffer.duplicate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteBuffer.duplicate()
方法的具体详情如下:
包路径:org.littleshoot.mina.common.ByteBuffer
类名称:ByteBuffer
方法名:duplicate
暂无
代码示例来源:origin: org.littleshoot/sip-stack
public ByteBuffer getBody() {
return DOUBLE_CRLF.duplicate();
}
代码示例来源:origin: org.littleshoot/mina-port
public ByteBuffer duplicate() {
return buf.duplicate();
}
代码示例来源:origin: org.littleshoot/littleshoot-ice
@Override
public void processAnswer(final ByteBuffer answer) {
m_log.info("Processing answer...");
m_log.info("Turn offer answer: {}", turnOfferAnswer);
if (mediaDesc.isUseRelay() && turnOfferAnswer != null) {
turnOfferAnswer.processAnswer(answer.duplicate());
}
if (mediaDesc.isTcp() && tcp != null) {
tcp.processAnswer(answer.duplicate());
}
if (mediaDesc.isUdp() && udp != null) {
udp.processAnswer(answer.duplicate());
}
}
内容来源于网络,如有侵权,请联系作者删除!