LeviLamina
Loading...
Searching...
No Matches
ByteBufferReader.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace rtc { class ByteBufferWriter; }
8// clang-format on
9
10namespace rtc {
11
13public:
14 // member variables
15 // NOLINTBEGIN
20 // NOLINTEND
21
22public:
23 // prevent constructor by default
24 ByteBufferReader& operator=(ByteBufferReader const&);
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCNAPI explicit ByteBufferReader(::rtc::ByteBufferWriter const& buf);
32
34
35 MCNAPI void Construct(uchar const* bytes, uint64 len);
36
37 MCNAPI bool Consume(uint64 size);
38
40
41 MCNAPI bool ReadBytes(uchar* val, uint64 len);
42
43 MCNAPI bool ReadString(::std::string* val, uint64 len);
44
45 MCNAPI bool ReadStringView(::std::string_view* val, uint64 len);
46
47 MCNAPI bool ReadUInt16(ushort* val);
48
49 MCNAPI bool ReadUInt32(uint* val);
50
51 MCNAPI bool ReadUInt64(uint64* val);
52
53 MCNAPI bool ReadUInt8(uchar* val);
54
55 MCNAPI bool ReadUVarint(uint64* val);
56 // NOLINTEND
57
58public:
59 // constructor thunks
60 // NOLINTBEGIN
61 MCNAPI void* $ctor(::rtc::ByteBufferWriter const& buf);
62
64 // NOLINTEND
65};
66
67} // namespace rtc
Definition _HeaderOutputPredefine.h:260
Definition ByteBufferReader.h:12
MCAPI bool ReadStringView(::std::string_view *val, uint64 len)
MCAPI void * $ctor(::rtc::ByteBufferWriter const &buf)
MCAPI void * $ctor(::rtc::ArrayView< uchar const > bytes)
MCAPI bool ReadBytes(::rtc::ArrayView< uchar > val)
MCAPI bool ReadUVarint(uint64 *val)
MCAPI bool ReadString(::std::string *val, uint64 len)
MCAPI bool ReadUInt8(uchar *val)
MCAPI bool ReadUInt32(uint *val)
MCAPI bool ReadBytes(uchar *val, uint64 len)
MCAPI ByteBufferReader(::rtc::ArrayView< uchar const > bytes)
MCAPI bool Consume(uint64 size)
MCAPI ByteBufferReader(::rtc::ByteBufferWriter const &buf)
MCAPI void Construct(uchar const *bytes, uint64 len)
MCAPI bool ReadUInt64(uint64 *val)
MCAPI bool ReadUInt16(ushort *val)
Definition ByteBufferWriter.h:11
Definition Alias.h:14