mirror of
https://github.com/mangosfour/server.git
synced 2025-12-22 22:37:06 +00:00
[8496] Resolve some #include cycles and unsafe code.
* Common.h -> Threading.h -> Errors.h -> Common.h * Remove reduncdent #include "ByteBuffer.h" in headers * Remove redundent #include "Auth/BigNumber.h" in headers * Avoid multyply data copy at use some now dropped functions in BigNumber. * Avoid copy fixed byte count from byte arrays with unknown real size created from BigNumber.
This commit is contained in:
parent
b276b05363
commit
50d426e72c
13 changed files with 12 additions and 27 deletions
|
|
@ -20,7 +20,6 @@
|
|||
#define _AUTH_BIGNUMBER_H
|
||||
|
||||
#include "Common.h"
|
||||
#include "ByteBuffer.h"
|
||||
|
||||
struct bignum_st;
|
||||
|
||||
|
|
@ -83,8 +82,6 @@ class BigNumber
|
|||
|
||||
uint32 AsDword();
|
||||
uint8* AsByteArray(int minSize = 0);
|
||||
ByteBuffer AsByteBuffer();
|
||||
std::vector<uint8> AsByteVector();
|
||||
|
||||
const char *AsHexStr();
|
||||
const char *AsDecStr();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue