/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkBuffer_DEFINED #define SkBuffer_DEFINED #include "include/private/base/SkAssert.h" #include "include/private/base/SkNoncopyable.h" #include "src/base/SkSafeMath.h" #include <cstddef> #include <cstdint> SkScalar; /** \class SkRBuffer Light weight class for reading data from a memory block. The RBuffer is given the buffer to read from, with either a specified size or no size (in which case no range checking is performed). It is iillegal to attempt to read a value from an empty RBuffer (data == null). */ class SkRBuffer : SkNoncopyable { … }; /** \class SkWBuffer Light weight class for writing data to a memory block. The WBuffer is given the buffer to write into, with either a specified size or no size, in which case no range checking is performed. An empty WBuffer is legal, in which case no data is ever written, but the relative pos() is updated. */ class SkWBuffer : SkNoncopyable { … }; #endif