/**
* Writes the provided list of protos to the provided output stream.
* @throws IOException if the protos cannot be written to the provided output stream.
*/
public static <T extends MessageLite> void writeMessageListTo(
OutputStream stream,
List<T> protos)
throws IOException {
DataOutputStream dos = new DataOutputStream(stream);
dos.writeInt(protos.size());
for (MessageLite proto : protos) {
proto.writeDelimitedTo(stream);
}
}
ProtoListUtil.java 文件源码
java
阅读 39
收藏 0
点赞 0
评论 0
项目:OpenYOLO-Android
作者:
评论列表
文章目录