diff --git a/PKM/PKMConverter.cs b/PKM/PKMConverter.cs
index 03e506a58..be573542a 100644
--- a/PKM/PKMConverter.cs
+++ b/PKM/PKMConverter.cs
@@ -58,7 +58,14 @@ public static int getPKMDataFormat(byte[] data)
}
return -1;
}
- internal static PKM getPKMfromBytes(byte[] data, string ident = null)
+
+ ///
+ /// Creates an instance of from the given data.
+ ///
+ /// Raw data of the Pokemon file.
+ /// Optional identifier for the Pokemon. Usually the full path of the source file.
+ /// An instance of created from the given , or null if is invalid.
+ public static PKM getPKMfromBytes(byte[] data, string ident = null)
{
checkEncrypted(ref data);
switch (getPKMDataFormat(data))
diff --git a/PKM/PKX.cs b/PKM/PKX.cs
index 3a683088e..8aebbcbae 100644
--- a/PKM/PKX.cs
+++ b/PKM/PKX.cs
@@ -25,6 +25,11 @@ public static class PKX
internal const int SIZE_6STORED = 0xE8;
internal const int SIZE_6BLOCK = 56;
+ ///
+ /// Determines if the given length is valid for a Pokemon file.
+ ///
+ /// Length of the data to check.
+ /// A boolean indicating whether or not the length is valid for a Pokemon file.
public static bool getIsPKM(long len)
{
return new[] {SIZE_3STORED, SIZE_3PARTY, SIZE_4STORED, SIZE_4PARTY, SIZE_5PARTY, SIZE_6STORED, SIZE_6PARTY}.Contains((int)len);