LeviLamina
Loading...
Searching...
No Matches
VarIntDataOutput.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/BytesDataOutput.h"
7
8// auto generated forward declare list
9// clang-format off
10class BinaryStream;
11// clang-format on
12
13class VarIntDataOutput : public ::BytesDataOutput {
14public:
15 // member variables
16 // NOLINTBEGIN
17 ::BinaryStream& mStream;
18 // NOLINTEND
19
20 VarIntDataOutput(BinaryStream& bs) : mStream(bs) {}
21
22public:
23 // prevent constructor by default
24 VarIntDataOutput& operator=(VarIntDataOutput const&);
25 VarIntDataOutput(VarIntDataOutput const&);
26 VarIntDataOutput();
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual void writeString(::std::string_view v) /*override*/;
32
33 virtual void writeLongString(::std::string_view v) /*override*/;
34
35 virtual void writeFloat(float v) /*override*/;
36
37 virtual void writeDouble(double v) /*override*/;
38
39 virtual void writeByte(char v) /*override*/;
40
41 virtual void writeShort(short v) /*override*/;
42
43 virtual void writeInt(int v) /*override*/;
44
45 virtual void writeLongLong(int64 v) /*override*/;
46
47 virtual void writeBytes(void const* data, uint64 bytes) /*override*/;
48 // NOLINTEND
49
50public:
51 // constructor thunks
52 // NOLINTBEGIN
53 MCAPI void* $ctor(::BinaryStream& stream);
54 // NOLINTEND
55
56public:
57 // virtual function thunks
58 // NOLINTBEGIN
59 MCAPI void $writeString(::std::string_view v);
60
61 MCAPI void $writeLongString(::std::string_view v);
62
63 MCAPI void $writeFloat(float v);
64
65 MCAPI void $writeDouble(double v);
66
67 MCAPI void $writeByte(char v);
68
69 MCAPI void $writeShort(short v);
70
71 MCAPI void $writeInt(int v);
72
73 MCAPI void $writeLongLong(int64 v);
74
75 MCAPI void $writeBytes(void const* data, uint64 bytes);
76
77
78 // NOLINTEND
79
80public:
81 // vftables
82 // NOLINTBEGIN
83 MCNAPI static void** $vftable();
84 // NOLINTEND
85};
Definition BinaryStream.h:11
Definition BytesDataOutput.h:8
static MCAPI void ** $vftable()