1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef nsHtml5ByteReadable_h
6 #define nsHtml5ByteReadable_h
9 * A weak reference wrapper around a byte array.
11 class nsHtml5ByteReadable
{
13 nsHtml5ByteReadable(const uint8_t* aCurrent
, const uint8_t* aEnd
)
14 : current(aCurrent
), end(aEnd
) {}
16 inline int32_t read() {
25 const uint8_t* current
;