pub fn encode_integer<T: Write>(tag: u64, value: u64, output: &mut T) -> IoResult<()> {
    encode_tag_header(tag, Varint::Value(8), output)?;

    let mut buffer = [0; 8];
    buffer.as_mut().put_u64(value);

    output.write_all(&buffer[..])
}
/// Tries to write a simple EBML tag with an integer value
Tries to write a simple EBML tag with an integer value
Tries to write a simple EBML tag with an integer value
pub fn encode_integer<T: Write>(tag: u64, value: u64, output: &mut T) -> IoResult<()> {
    encode_tag_header(tag, Varint::Value(8), output)?;
    let mut buffer = [0; 8];
    buffer.as_mut().put_u64(value);
    output.write_all(&buffer[..])
}
pub fn encode_integer < T : Write > ( tag : u64 , value : u64 , output : & mut T ) -> IoResult < ( ) > { encode_tag_header ( tag , Varint :: Value ( 8 ) , output ) ? ; let mut buffer = [ 0 ; 8 ] ; buffer . as_mut ( ) . put_u64 ( value ) ; output . write_all ( & buffer [ .. ] ) }
Tries to write a simple EBML tag with an integer value
Tries to write a simple EBML tag with an integer value
tag
u64
value
u64
output
&mut T
tag
u64
value
u64
output
&mut T