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