diff --git a/BrawlboxHelper/Syroot.NintenTools.Bfres.dll b/BrawlboxHelper/Syroot.NintenTools.Bfres.dll index 8d612653..7d8f5720 100644 Binary files a/BrawlboxHelper/Syroot.NintenTools.Bfres.dll and b/BrawlboxHelper/Syroot.NintenTools.Bfres.dll differ diff --git a/BrawlboxHelper/Syroot.NintenTools.Bfres.pdb b/BrawlboxHelper/Syroot.NintenTools.Bfres.pdb index a372bd91..54a5e2bc 100644 Binary files a/BrawlboxHelper/Syroot.NintenTools.Bfres.pdb and b/BrawlboxHelper/Syroot.NintenTools.Bfres.pdb differ diff --git a/BrawlboxHelper/Syroot.NintenTools.Bfres.xml b/BrawlboxHelper/Syroot.NintenTools.Bfres.xml index 645500dd..83c3d978 100644 --- a/BrawlboxHelper/Syroot.NintenTools.Bfres.xml +++ b/BrawlboxHelper/Syroot.NintenTools.Bfres.xml @@ -5736,5 +5736,70 @@ Material visibility is controlled. + + + Sets if the presence of nulls in a buffer indicate the buffer is binary data rather than text. + + + + + Gets the BOM length for a given Encoding mode. + + + The BOM length. + + + + Checks for a BOM sequence in a byte buffer. + + + + Encoding type or Encoding.None if no BOM. + + + + Automatically detects the Encoding type of a given byte buffer. + + The byte buffer. + The size of the byte buffer. + The Encoding type or Encoding.None if unknown. + + + + Checks if a buffer contains text that looks like utf16 by scanning for + newline chars that would be present even in non-english text. + + The byte buffer. + The size of the byte buffer. + Encoding.none, Encoding.Utf16LeNoBom or Encoding.Utf16BeNoBom. + + + + Checks if a buffer contains any nulls. Used to check for binary vs text data. + + The byte buffer. + The size of the byte buffer. + + + + Checks if a buffer contains text that looks like utf16. This is done based + on the use of nulls which in ASCII/script like text can be useful to identify. + + The byte buffer. + The size of the byte buffer. + Encoding.none, Encoding.Utf16LeNoBom or Encoding.Utf16BeNoBom. + + + + Checks if a buffer contains valid utf8. + + The byte buffer. + The size of the byte buffer. + + Encoding type of Encoding.None (invalid UTF8), Encoding.Utf8NoBom (valid utf8 multibyte strings) or + Encoding.ASCII (data in 0.127 range). + + 2 + diff --git a/BrawlboxHelper/Syroot.NintenTools.NSW.Bfres.dll b/BrawlboxHelper/Syroot.NintenTools.NSW.Bfres.dll index 78e1fe6f..a28a1f4d 100644 Binary files a/BrawlboxHelper/Syroot.NintenTools.NSW.Bfres.dll and b/BrawlboxHelper/Syroot.NintenTools.NSW.Bfres.dll differ diff --git a/BrawlboxHelper/Syroot.NintenTools.NSW.Bfres.pdb b/BrawlboxHelper/Syroot.NintenTools.NSW.Bfres.pdb index 9e77bfc0..3ecc1e02 100644 Binary files a/BrawlboxHelper/Syroot.NintenTools.NSW.Bfres.pdb and b/BrawlboxHelper/Syroot.NintenTools.NSW.Bfres.pdb differ diff --git a/Toolbox/Lib/Syroot.NintenTools.Bfres.dll b/Toolbox/Lib/Syroot.NintenTools.Bfres.dll index 8d612653..7d8f5720 100644 Binary files a/Toolbox/Lib/Syroot.NintenTools.Bfres.dll and b/Toolbox/Lib/Syroot.NintenTools.Bfres.dll differ diff --git a/Toolbox/Lib/Syroot.NintenTools.Bfres.pdb b/Toolbox/Lib/Syroot.NintenTools.Bfres.pdb index a372bd91..54a5e2bc 100644 Binary files a/Toolbox/Lib/Syroot.NintenTools.Bfres.pdb and b/Toolbox/Lib/Syroot.NintenTools.Bfres.pdb differ diff --git a/Toolbox/Lib/Syroot.NintenTools.Bfres.xml b/Toolbox/Lib/Syroot.NintenTools.Bfres.xml index 645500dd..83c3d978 100644 --- a/Toolbox/Lib/Syroot.NintenTools.Bfres.xml +++ b/Toolbox/Lib/Syroot.NintenTools.Bfres.xml @@ -5736,5 +5736,70 @@ Material visibility is controlled. + + + Sets if the presence of nulls in a buffer indicate the buffer is binary data rather than text. + + + + + Gets the BOM length for a given Encoding mode. + + + The BOM length. + + + + Checks for a BOM sequence in a byte buffer. + + + + Encoding type or Encoding.None if no BOM. + + + + Automatically detects the Encoding type of a given byte buffer. + + The byte buffer. + The size of the byte buffer. + The Encoding type or Encoding.None if unknown. + + + + Checks if a buffer contains text that looks like utf16 by scanning for + newline chars that would be present even in non-english text. + + The byte buffer. + The size of the byte buffer. + Encoding.none, Encoding.Utf16LeNoBom or Encoding.Utf16BeNoBom. + + + + Checks if a buffer contains any nulls. Used to check for binary vs text data. + + The byte buffer. + The size of the byte buffer. + + + + Checks if a buffer contains text that looks like utf16. This is done based + on the use of nulls which in ASCII/script like text can be useful to identify. + + The byte buffer. + The size of the byte buffer. + Encoding.none, Encoding.Utf16LeNoBom or Encoding.Utf16BeNoBom. + + + + Checks if a buffer contains valid utf8. + + The byte buffer. + The size of the byte buffer. + + Encoding type of Encoding.None (invalid UTF8), Encoding.Utf8NoBom (valid utf8 multibyte strings) or + Encoding.ASCII (data in 0.127 range). + + 2 + diff --git a/Toolbox/Lib/Syroot.NintenTools.NSW.Bfres.dll b/Toolbox/Lib/Syroot.NintenTools.NSW.Bfres.dll index 78e1fe6f..a28a1f4d 100644 Binary files a/Toolbox/Lib/Syroot.NintenTools.NSW.Bfres.dll and b/Toolbox/Lib/Syroot.NintenTools.NSW.Bfres.dll differ diff --git a/Toolbox/Lib/Syroot.NintenTools.NSW.Bfres.pdb b/Toolbox/Lib/Syroot.NintenTools.NSW.Bfres.pdb index 9e77bfc0..3ecc1e02 100644 Binary files a/Toolbox/Lib/Syroot.NintenTools.NSW.Bfres.pdb and b/Toolbox/Lib/Syroot.NintenTools.NSW.Bfres.pdb differ