Path: blob/master/Utilities/cmzstd/lib/deprecated/zbuff_common.c
3156 views
/*1* Copyright (c) Meta Platforms, Inc. and affiliates.2* All rights reserved.3*4* This source code is licensed under both the BSD-style license (found in the5* LICENSE file in the root directory of this source tree) and the GPLv2 (found6* in the COPYING file in the root directory of this source tree).7* You may select, at your option, one of the above-listed licenses.8*/910/*-*************************************11* Dependencies12***************************************/13#include "../common/error_private.h"14#include "zbuff.h"1516/*-****************************************17* ZBUFF Error Management (deprecated)18******************************************/1920/*! ZBUFF_isError() :21* tells if a return value is an error code */22unsigned ZBUFF_isError(size_t errorCode) { return ERR_isError(errorCode); }23/*! ZBUFF_getErrorName() :24* provides error code string from function result (useful for debugging) */25const char* ZBUFF_getErrorName(size_t errorCode) { return ERR_getErrorName(errorCode); }262728