1 // Copyright 2018 The ChromiumOS Authors
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;
8 use crate::protocol::WireFormat;
9 
tframe_decode(bytes: &[u8])10 pub fn tframe_decode(bytes: &[u8]) {
11     let mut cursor = Cursor::new(bytes);
12 
13     while Tframe::decode(&mut cursor).is_ok() {}
14 }
15