// Header properties are encoded in a pretty simple format, with some oddities. The first 64bits
// is data that can be discarded, some people think that the 64bits is the length of the data
// while others think that the first 32bits is the header length in bytes with the subsequent
// 32bits unknown. Doesn't matter to us, we throw it out anyways. The rest of the bytes are
// decoded property type specific.
Header properties are encoded in a pretty simple format, with some oddities. The first 64bits
is data that can be discarded, some people think that the 64bits is the length of the data
while others think that the first 32bits is the header length in bytes with the subsequent
32bits unknown. Doesn't matter to us, we throw it out anyways. The rest of the bytes are
decoded property type specific.
Header properties are encoded in a pretty simple format with some oddities . The first 64bits is data that can be discarded some people think that the 64bits is the length of the data while others think that the first 32bits is the header length in bytes with the subsequent 32bits unknown . Doesn ' t matter to us we throw it out anyways . The rest of the bytes are decoded property type specific .
fn byte_property<'a>(rlp: &mut CoreParser<'a>) -> Result<HeaderProp<'a>, ParseError> {
    // It's unknown (to me at least) why the byte property has two strings in it.
    rlp.take(8, |_d| ())?;
    if rlp.parse_str()? != "OnlinePlatform_Steam" {
        rlp.parse_str()?;
    }
    Ok(HeaderProp::Byte)
}
fn byte_property < ' a > ( rlp : & mut CoreParser < ' a > ) -> Result < HeaderProp < ' a > , ParseError > { // It's unknown (to me at least) why the byte property has two strings in it. rlp . take ( 8 , | _d | ( ) ) ? ; if rlp . parse_str ( ) ? != " " { rlp . parse_str ( ) ? ; } Ok ( HeaderProp :: Byte ) }
Header properties are encoded in a pretty simple format, with some oddities.
Header properties are encoded in a pretty simple format with some oddities .
rlp
&mut CoreParser<'a>