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
12class ByteBufferReader {
13public:
14 // member variables
15 // NOLINTBEGIN
20 // NOLINTEND
21
22public:
23 // prevent constructor by default
24 ByteBufferReader& operator=(ByteBufferReader const&);
25 ByteBufferReader(ByteBufferReader const&);
26 ByteBufferReader();
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCNAPI explicit ByteBufferReader(::rtc::ByteBufferWriter const& buf);
32
34
35 MCNAPI bool Consume(uint64 size);
36
38
39 MCNAPI bool ReadString(::std::string* val, uint64 len);
40
41 MCNAPI bool ReadStringView(::std::string_view* val, uint64 len);
42
43 MCNAPI bool ReadUInt16(ushort* val);
44
45 MCNAPI bool ReadUInt32(uint* val);
46
47 MCNAPI bool ReadUInt64(uint64* val);
48
49 MCNAPI bool ReadUInt8(uchar* val);
50
51 MCNAPI bool ReadUVarint(uint64* val);
52 // NOLINTEND
53
54public:
55 // constructor thunks
56 // NOLINTBEGIN
57 MCNAPI void* $ctor(::rtc::ByteBufferWriter const& buf);
58
60 // NOLINTEND
61};
62
63} // namespace rtc
Definition _HeaderOutputPredefine.h:311
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 ByteBufferReader(::rtc::ArrayView< uchar const > bytes)
MCAPI bool Consume(uint64 size)
MCAPI ByteBufferReader(::rtc::ByteBufferWriter const &buf)
MCAPI bool ReadUInt64(uint64 *val)
MCAPI bool ReadUInt16(ushort *val)
Definition ByteBufferWriter.h:11
Definition Alias.h:14