Encerrado

binay serialization

Need a class or (suite of classes) that'll support reads and writes in binary form into an input and output stream respectively.

The class should support automatic conversion from big-endian (network byte order) to little-endian and vice-versa.

The class should support both file I/O (read/writes to a file) and/or a vector - of say unsigned char. For instance:

output_stream& operator << ( unsigned short value ) ;

output_stream& operator << ( unsigned char value ) ;

output_stream& operator << ( bool value );

output_stream& operator << ( float value );

output_stream& operator << ( double value );

//etc

input_stream& operator >> ( unsigned short& value );

input_stream& operator >> ( unsigned char& value );

input_stream& operator >> ( bool& value );

input_stream& operator >> ( float& value );

input_stream& operator >> ( double& value );

//etc

Serializing a container with pod types would be added bonus.

// Later

typedef std::vector < unsigned char > uchar_vec ;

int main()

{

unsigned short a ( 0 ); unsigned short b ( 0 );

uchar_vec my_vec ( 4 ) ;

contents_from_my_vec_to_shorts >> short_a >> short_b ;

contents_from_shorts_to_myvec << short_a << short_b ;

}

## Deliverables

NA

Habilidades: Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software

Ver mais: vector vector int, vector order, vector int int, vector int, vector container, vector 3 container, std container, read vector, big byte, std, bool, binay, main container, read binary file php, value engineering, conversion double double, value double, engineering vector, big int, vector short, short vector, binary class php, endian, php binary class, order form conversion

Acerca do Empregador:
( 123 comentários ) Orlando, United States

ID do Projeto: #2980940

2 freelancers estão ofertando em média $56 para este trabalho

homi12345

See private message.

$17 USD in 7 dias
(9 Comentários)
2.7
grummond

See private message.

$94.35 USD in 7 dias
(2 Comentários)
0.6