MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / Decoder

Class Decoder

LuaSTGPlus/Bencode.h:76–105  ·  view source on GitHub ↗

@brief Bencode������

Source from the content-addressed store, hash-verified

74
75 /// @brief Bencode������
76 class Decoder
77 {
78 private:
79 Value m_RootValue;
80
81 // === �ڲ�״̬ ===
82 int m_State;
83 std::stack<Value> m_StackValue;
84 std::stack<int> m_DictReadState;
85 std::stack<StringType> m_DictKeyState;
86 StringType m_TempString;
87 IntType m_TempInt;
88 bool m_TempIntNeg;
89 private:
90 bool closeValue();
91 public:
92 /// @brief �����ַ����н���
93 /// @return ���ܲ���һ���������򷵻�true
94 bool operator<<(char c);
95 /// @brief ��ȡ���������
96 const Value& operator->();
97 const Value& operator*();
98 /// @brief ����״̬
99 void Reset();
100 private:
101 Decoder& operator=(const Decoder&);
102 Decoder(const Decoder&);
103 public:
104 Decoder();
105 };
106}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected