pub type b = [i32; 10i64 as usize];
pub type c = Vec<i32>;
pub type d = Vec<i32>;
pub type e = String;
pub type f = String;
pub type g = Vec<u8>;
pub type h = Vec<u8>;
pub type i = [u8; 10i64 as usize];
pub type a = i32;
impl <Out: xdr_codec::Write> xdr_codec::Pack<Out> for b {
fn pack(&self, out: &mut Out) -> xdr_codec::Result<usize> {
Ok(try!(xdr_codec :: pack_array (
& self [ .. ] , self . len ( ) , out , None )))
}
}
impl <Out: xdr_codec::Write> xdr_codec::Pack<Out> for c {
fn pack(&self, out: &mut Out) -> xdr_codec::Result<usize> {
Ok(try!(xdr_codec :: pack_flex ( & self , None , out )))
}
}
impl <Out: xdr_codec::Write> xdr_codec::Pack<Out> for d {
fn pack(&self, out: &mut Out) -> xdr_codec::Result<usize> {
Ok(try!(xdr_codec :: pack_flex (
& self , Some ( 10i64 as usize ) , out )))
}
}
impl <Out: xdr_codec::Write> xdr_codec::Pack<Out> for e {
fn pack(&self, out: &mut Out) -> xdr_codec::Result<usize> {
Ok(try!(xdr_codec :: pack_string ( & self , None , out )))
}
}
impl <Out: xdr_codec::Write> xdr_codec::Pack<Out> for f {
fn pack(&self, out: &mut Out) -> xdr_codec::Result<usize> {
Ok(try!(xdr_codec :: pack_string (
& self , Some ( 10i64 as usize ) , out )))
}
}
impl <Out: xdr_codec::Write> xdr_codec::Pack<Out> for g {
fn pack(&self, out: &mut Out) -> xdr_codec::Result<usize> {
Ok(try!(xdr_codec :: Opaque :: borrowed ( self ) . pack ( out )))
}
}
impl <Out: xdr_codec::Write> xdr_codec::Pack<Out> for h {
fn pack(&self, out: &mut Out) -> xdr_codec::Result<usize> {
Ok(try!(xdr_codec :: Opaque :: borrowed ( self ) . pack ( out )))
}
}
impl <Out: xdr_codec::Write> xdr_codec::Pack<Out> for i {
fn pack(&self, out: &mut Out) -> xdr_codec::Result<usize> {
Ok(try!(xdr_codec :: pack_opaque_array (
& self [ .. ] , self . len ( ) , out )))
}
}
impl <In: xdr_codec::Read> xdr_codec::Unpack<In> for b {
fn unpack(input: &mut In) -> xdr_codec::Result<(b, usize)> {
let mut sz = 0;
Ok(({
use std::mem;
let mut buf: [i32; 10i64 as usize] =
unsafe { mem::uninitialized() };
let sz =
try!(xdr_codec :: unpack_array (
input , & mut buf [ .. ] , 10i64 as usize , None ));
(buf, sz)
}, sz))
}
}
impl <In: xdr_codec::Read> xdr_codec::Unpack<In> for c {
fn unpack(input: &mut In) -> xdr_codec::Result<(c, usize)> {
let mut sz = 0;
Ok((try!(xdr_codec :: unpack_flex ( input , None )), sz))
}
}
impl <In: xdr_codec::Read> xdr_codec::Unpack<In> for d {
fn unpack(input: &mut In) -> xdr_codec::Result<(d, usize)> {
let mut sz = 0;
Ok((try!(xdr_codec :: unpack_flex ( input , Some ( 10i64 as usize )
)), sz))
}
}
impl <In: xdr_codec::Read> xdr_codec::Unpack<In> for e {
fn unpack(input: &mut In) -> xdr_codec::Result<(e, usize)> {
let mut sz = 0;
Ok((try!(xdr_codec :: unpack_string ( input , None )), sz))
}
}
impl <In: xdr_codec::Read> xdr_codec::Unpack<In> for f {
fn unpack(input: &mut In) -> xdr_codec::Result<(f, usize)> {
let mut sz = 0;
Ok((try!(xdr_codec :: unpack_string ( input , Some ( 10i64 as usize )
)), sz))
}
}
impl <In: xdr_codec::Read> xdr_codec::Unpack<In> for g {
fn unpack(input: &mut In) -> xdr_codec::Result<(g, usize)> {
let mut sz = 0;
Ok((try!(xdr_codec :: unpack_opaque_flex ( input , None )), sz))
}
}
impl <In: xdr_codec::Read> xdr_codec::Unpack<In> for h {
fn unpack(input: &mut In) -> xdr_codec::Result<(h, usize)> {
let mut sz = 0;
Ok((try!(xdr_codec :: unpack_opaque_flex (
input , Some ( 10i64 as usize ) )), sz))
}
}
impl <In: xdr_codec::Read> xdr_codec::Unpack<In> for i {
fn unpack(input: &mut In) -> xdr_codec::Result<(i, usize)> {
let mut sz = 0;
Ok(({
use std::mem;
let mut buf: [u8; 10i64 as usize] =
unsafe { mem::uninitialized() };
let sz =
try!(xdr_codec :: unpack_opaque_array (
input , & mut buf [ .. ] , 10i64 as usize ));
(buf, sz)
}, sz))
}
}