# Copyright 2005-2018 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
#
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
#

position offsetSection4;
section_length[3]       section4Length ;
unsigned[1]     reservedSection4 = 0 : hidden;
position offsetBeforeData;

meta bufrDataEncoded raw(totalLength,section4Length,4) : hidden;

template dataKeys "bufr/dataKeys.def";

meta numericValues bufr_data_array(bufrDataEncoded, numberOfSubsets,expandedCodes,expandedFlags, elementsDescriptorsIndex,compressedData,dataKeys) : no_copy,hidden;
meta stringValues bufr_string_values(numericValues) : no_copy,hidden;

meta unpack unpack_bufr_values(numericValues)  : no_copy,hidden;
meta pack pack_bufr_values(numericValues)  : no_copy,hidden;

section_padding section4Padding;
position offsetEndSection4;
meta md5Data md5(offsetSection4,section4Length);
alias dataAccessors=numericValues;

