splited ASyncEvent

This commit is contained in:
2022-07-07 21:32:35 +08:00
parent 5a88a6072c
commit d3608bee15
7 changed files with 198 additions and 131 deletions

View File

@@ -125,6 +125,11 @@ namespace hgl
{4,{0x00,0x00,0xFE,0xFF},ByteOrderMask::UTF32BE,&utf32be_charset ,(uint16)CharCodePage::UTF32BE }
};
inline const BOMFileHeader *GetBOM(const ByteOrderMask &bom)
{
return RangeCheck(bom)?BOMData+uint(bom)-uint(ByteOrderMask::BEGIN_RANGE):nullptr;
}
inline ByteOrderMask CheckBOM(const void *data)
{
const BOMFileHeader *bom=BOMData;