1 #ifndef AWFUL_ABF_WRITER_HEADER_H
2 #define AWFUL_ABF_WRITER_HEADER_H
4 namespace awful
{ namespace abf
8 const uint16_t Version
= 1;
11 template< class EndianessPolicy
> void BaseWriter
< EndianessPolicy
>::
12 WriteHeader( buffered_stream_type
& Stream
)
14 Stream
.writeEndianessHeader();
15 const char header
[] = { 'A', 'B', 'F' };
16 Stream
.write( header
, sizeof( header
) );
17 Stream
.writeU16( Impl::Version
);
19 // Pad to 4 bytes boundary