mirror of https://github.com/ecmwf/eccodes.git
Merge branch 'develop' into feature/GRIB_lightweight_clone
This commit is contained in:
commit
3b67aec2b7
|
@ -994,7 +994,7 @@ int codes_check_message_header(const void* bytes, size_t length, ProductKind pro
|
||||||
int codes_check_message_footer(const void* bytes, size_t length, ProductKind product);
|
int codes_check_message_footer(const void* bytes, size_t length, ProductKind product);
|
||||||
int grib_get_message_size(const grib_handle* h, size_t* size);
|
int grib_get_message_size(const grib_handle* h, size_t* size);
|
||||||
int grib_get_message(const grib_handle* h, const void** msg, size_t* size);
|
int grib_get_message(const grib_handle* h, const void** msg, size_t* size);
|
||||||
int grib_get_message_headers(grib_handle* h, const void** msg, size_t* size);
|
int grib_get_message_headers(const grib_handle* h, const void** msg, size_t* size);
|
||||||
grib_action* grib_action_from_filter(const char* filter);
|
grib_action* grib_action_from_filter(const char* filter);
|
||||||
int grib_handle_apply_action(grib_handle* h, grib_action* a);
|
int grib_handle_apply_action(grib_handle* h, grib_action* a);
|
||||||
void grib_multi_support_reset_file(grib_context* c, FILE* f);
|
void grib_multi_support_reset_file(grib_context* c, FILE* f);
|
||||||
|
|
|
@ -1193,9 +1193,7 @@ grib_multi_handle* grib_multi_handle_new(grib_context* c)
|
||||||
}
|
}
|
||||||
h = (grib_multi_handle*)grib_context_malloc_clear(c, sizeof(grib_multi_handle));
|
h = (grib_multi_handle*)grib_context_malloc_clear(c, sizeof(grib_multi_handle));
|
||||||
if (h == NULL) {
|
if (h == NULL) {
|
||||||
grib_context_log(c, GRIB_LOG_ERROR,
|
grib_context_log(c, GRIB_LOG_ERROR, "%s: Unable to allocate memory", __func__);
|
||||||
"grib_multi_handle_new: unable to allocate memory. %s",
|
|
||||||
grib_get_error_message(GRIB_OUT_OF_MEMORY));
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
h->buffer = grib_create_growable_buffer(c);
|
h->buffer = grib_create_growable_buffer(c);
|
||||||
|
@ -1419,7 +1417,7 @@ int grib_get_message(const grib_handle* ch, const void** msg, size_t* size)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int grib_get_message_headers(grib_handle* h, const void** msg, size_t* size)
|
int grib_get_message_headers(const grib_handle* h, const void** msg, size_t* size)
|
||||||
{
|
{
|
||||||
int err = 0;
|
int err = 0;
|
||||||
size_t endOfHeadersMarker;
|
size_t endOfHeadersMarker;
|
||||||
|
@ -1428,7 +1426,7 @@ int grib_get_message_headers(grib_handle* h, const void** msg, size_t* size)
|
||||||
|
|
||||||
if ((err = grib_get_offset(h, "endOfHeadersMarker", &endOfHeadersMarker)) != GRIB_SUCCESS) {
|
if ((err = grib_get_offset(h, "endOfHeadersMarker", &endOfHeadersMarker)) != GRIB_SUCCESS) {
|
||||||
grib_context_log(h->context, GRIB_LOG_ERROR,
|
grib_context_log(h->context, GRIB_LOG_ERROR,
|
||||||
"grib_get_message_headers: unable to get offset of endOfHeadersMarker");
|
"%s: Unable to get offset of endOfHeadersMarker", __func__);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue