本文整理了Java中okio.Buffer.writeLong()
方法的一些代码示例,展示了Buffer.writeLong()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.writeLong()
方法的具体详情如下:
包路径:okio.Buffer
类名称:Buffer
方法名:writeLong
暂无
代码示例来源:origin: square/okhttp
private void writeHeader(
ByteString prefix, long upstreamSize, long metadataSize) throws IOException {
Buffer header = new Buffer();
header.write(prefix);
header.writeLong(upstreamSize);
header.writeLong(metadataSize);
if (header.size() != FILE_HEADER_SIZE) throw new IllegalArgumentException();
FileOperator fileOperator = new FileOperator(file.getChannel());
fileOperator.write(0, header, FILE_HEADER_SIZE);
}
代码示例来源:origin: com.squareup.okhttp3/okhttp
private void writeHeader(
ByteString prefix, long upstreamSize, long metadataSize) throws IOException {
Buffer header = new Buffer();
header.write(prefix);
header.writeLong(upstreamSize);
header.writeLong(metadataSize);
if (header.size() != FILE_HEADER_SIZE) throw new IllegalArgumentException();
FileOperator fileOperator = new FileOperator(file.getChannel());
fileOperator.write(0, header, FILE_HEADER_SIZE);
}
代码示例来源:origin: square/okhttp
b1 |= PAYLOAD_LONG;
sinkBuffer.writeByte(b1);
sinkBuffer.writeLong(byteCount);
代码示例来源:origin: com.squareup.okhttp3/okhttp
b1 |= PAYLOAD_LONG;
sinkBuffer.writeByte(b1);
sinkBuffer.writeLong(byteCount);
代码示例来源:origin: huxq17/tractor
@Override public BufferedSink writeLong(long v) throws IOException {
if (closed) throw new IllegalStateException("closed");
buffer.writeLong(v);
return emitCompleteSegments();
}
代码示例来源:origin: huxq17/tractor
@Override public Buffer writeLongLe(long v) {
return writeLong(reverseBytesLong(v));
}
代码示例来源:origin: com.github.ljun20160606/okhttp
private void writeHeader(
ByteString prefix, long upstreamSize, long metadataSize) throws IOException {
Buffer header = new Buffer();
header.write(prefix);
header.writeLong(upstreamSize);
header.writeLong(metadataSize);
if (header.size() != FILE_HEADER_SIZE) throw new IllegalArgumentException();
FileOperator fileOperator = new FileOperator(file.getChannel());
fileOperator.write(0, header, FILE_HEADER_SIZE);
}
代码示例来源:origin: apache/servicemix-bundles
private void writeHeader(
ByteString prefix, long upstreamSize, long metadataSize) throws IOException {
Buffer header = new Buffer();
header.write(prefix);
header.writeLong(upstreamSize);
header.writeLong(metadataSize);
if (header.size() != FILE_HEADER_SIZE) throw new IllegalArgumentException();
FileOperator fileOperator = new FileOperator(file.getChannel());
fileOperator.write(0, header, FILE_HEADER_SIZE);
}
代码示例来源:origin: apache/servicemix-bundles
b1 |= PAYLOAD_LONG;
sinkBuffer.writeByte(b1);
sinkBuffer.writeLong(byteCount);
代码示例来源:origin: io.zipkin.java/zipkin-storage-elasticsearch-http
? Long.parseLong(number)
: Double.doubleToRawLongBits(Double.parseDouble(number));
buffer.writeLong(v);
break;
default:
内容来源于网络,如有侵权,请联系作者删除!