blob: 02e8787faab6c82fea9ee6421584a28b612f1a9f [file] [log] [blame] [edit]
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CORE_FXCRT_FX_SAFE_TYPES_H_
#define CORE_FXCRT_FX_SAFE_TYPES_H_
#include <stddef.h>
#include <stdint.h>
#include "core/fxcrt/fx_types.h"
#include "third_party/base/numerics/safe_math.h"
using FX_SAFE_UINT32 = pdfium::base::CheckedNumeric<uint32_t>;
using FX_SAFE_INT32 = pdfium::base::CheckedNumeric<int32_t>;
using FX_SAFE_SIZE_T = pdfium::base::CheckedNumeric<size_t>;
using FX_SAFE_FILESIZE = pdfium::base::CheckedNumeric<FX_FILESIZE>;
#endif // CORE_FXCRT_FX_SAFE_TYPES_H_