byaml/writer: Add ByamlWriterUInt64

This commit is contained in:
MonsterDruide1 2021-10-07 19:19:48 +02:00
parent 638680be6e
commit 049917285f
3 changed files with 23 additions and 5 deletions

View File

@ -65153,10 +65153,10 @@ Address,Quality,Size,Name
0x0000007100a3296c,O,000008,_ZNK2al16ByamlWriterInt6411getTypeCodeEv
0x0000007100a32974,O,000016,_ZNK2al16ByamlWriterInt6412writeBigDataEPN4sead11WriteStreamE
0x0000007100a32984,O,000004,_ZNK2al16ByamlWriterInt645printEi
0x0000007100a32988,U,000084,_ZN2al17ByamlWriterUInt64C2EmPNS_22ByamlWriterBigDataListE
0x0000007100a329dc,U,000008,_ZNK2al17ByamlWriterUInt6411getTypeCodeEv
0x0000007100a329e4,U,000016,_ZNK2al17ByamlWriterUInt6412writeBigDataEPN4sead11WriteStreamE
0x0000007100a329f4,U,000004,_ZNK2al17ByamlWriterUInt645printEi
0x0000007100a32988,O,000084,_ZN2al17ByamlWriterUInt64C2EmPNS_22ByamlWriterBigDataListE
0x0000007100a329dc,O,000008,_ZNK2al17ByamlWriterUInt6411getTypeCodeEv
0x0000007100a329e4,O,000016,_ZNK2al17ByamlWriterUInt6412writeBigDataEPN4sead11WriteStreamE
0x0000007100a329f4,O,000004,_ZNK2al17ByamlWriterUInt645printEi
0x0000007100a329f8,U,000092,_ZN2al17ByamlWriterDoubleC1EdPNS_22ByamlWriterBigDataListE
0x0000007100a32a54,U,000008,_ZNK2al17ByamlWriterDouble11getTypeCodeEv
0x0000007100a32a5c,U,000016,_ZNK2al17ByamlWriterDouble12writeBigDataEPN4sead11WriteStreamE
@ -65210,7 +65210,7 @@ Address,Quality,Size,Name
0x0000007100a32b90,O,000004,_ZN2al16ByamlWriterFloatD0Ev
0x0000007100a32b94,O,000004,_ZN2al16ByamlWriterInt64D0Ev
0x0000007100a32b98,O,000004,_ZN2al15ByamlWriterDataD2Ev
0x0000007100a32b9c,U,000004,_ZN2al17ByamlWriterUInt64D0Ev
0x0000007100a32b9c,O,000004,_ZN2al17ByamlWriterUInt64D0Ev
0x0000007100a32ba0,U,000004,_ZN2al17ByamlWriterDoubleD0Ev
0x0000007100a32ba4,O,000004,_ZN2al15ByamlWriterBoolD0Ev
0x0000007100a32ba8,U,000004,_ZN2al15ByamlWriterNullD0Ev

Can't render this file because it is too large.

View File

@ -89,4 +89,15 @@ private:
long mValue;
};
class ByamlWriterUInt64 : public ByamlWriterBigData {
public:
ByamlWriterUInt64(u64, ByamlWriterBigDataList*);
~ByamlWriterUInt64();
u8 getTypeCode() const override;
void writeBigData(sead::WriteStream*) const override;
void print(int) const override;
private:
u64 mValue;
};
}

View File

@ -46,9 +46,16 @@ u32 ByamlWriterBigData::calcBigDataSize() const {return 8;}
void ByamlWriterBigData::writeBigData(sead::WriteStream*) const {}
ByamlWriterInt64::ByamlWriterInt64(long value, ByamlWriterBigDataList* list) : ByamlWriterBigData(list), mValue(value) {}
ByamlWriterInt64::~ByamlWriterInt64() = default;
u8 ByamlWriterInt64::getTypeCode() const {return 0xD4;}
void ByamlWriterInt64::writeBigData(sead::WriteStream* stream) const {stream->writeS64(mValue);}
void ByamlWriterInt64::print(int) const {}
ByamlWriterUInt64::ByamlWriterUInt64(u64 value, ByamlWriterBigDataList* list) : ByamlWriterBigData(list), mValue(value) {}
ByamlWriterUInt64::~ByamlWriterUInt64() = default;
u8 ByamlWriterUInt64::getTypeCode() const {return 0xD5;}
void ByamlWriterUInt64::writeBigData(sead::WriteStream* stream) const {stream->writeU64(mValue);}
void ByamlWriterUInt64::print(int) const {}
}