1 // Copyright 2018 The Chromium OS Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 use std::io::Cursor; 6 7 use crate::protocol::{Tframe, WireFormat}; 8 tframe_decode(bytes: &[u8])9pub fn tframe_decode(bytes: &[u8]) { 10 let mut cursor = Cursor::new(bytes); 11 12 while let Ok(_) = Tframe::decode(&mut cursor) {} 13 } 14