19 #ifndef GRPC_CORE_LIB_SURFACE_VALIDATE_METADATA_H
20 #define GRPC_CORE_LIB_SURFACE_VALIDATE_METADATA_H
32 if (length < 5)
return 0;
33 return 0 == memcmp(buf + length - 4,
"-bin", 4);
#define GPR_DEBUG_ASSERT(x)
Definition: log.h:103
Definition: error_internal.h:39
size_t length
Definition: slice.h:64
uint8_t * bytes
Definition: slice.h:65
A grpc_slice s, if initialized, represents the byte range s.bytes[0..s.length-1].
Definition: slice.h:60
struct grpc_slice_refcount * refcount
Definition: slice.h:61
union grpc_slice::grpc_slice_data data
struct grpc_slice::grpc_slice_data::grpc_slice_refcounted refcounted