ProtoListUtil.java 文件源码

java
阅读 39 收藏 0 点赞 0 评论 0

项目:OpenYOLO-Android 作者:
/**
 * 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);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号