anchor.diff:      error.
   
   
  -
   make_archive_header(Offset, Seconds, Points) ->
       #archive_header{offset=Offset,
                      seconds=Seconds,
  
positive.code: -endif.
  
  
  -export([read_metadata/1,
           aggregation_type/1,
           aggregation_value/1,
           update_point/3]).
  
negative.code:             read_archive_info(IO, [Archive | As], Archives - 1);
          _Error -> error
      end.
  
  
  write_archive_info(_IO, []) -> ok;
  write_archive_info(IO, [#archive_header{offset=Offset,seconds=Secs,points=Points} | As]) ->
      Bytes = <<Offset:32/integer-unsigned-big, Secs:32/integer-unsigned-big, Points:32/integer-unsigned-big>>,
      ok = file:write(IO, Bytes),
      write_archive_info(IO, As).
  
  
  read_header(<<AggType:32/unsigned-integer-big,
  