Add LumpFactory method for NumList.

This commit is contained in:
Will
2015-09-17 00:54:24 -06:00
parent 88527aaec4
commit facb96e307

View File

@@ -81,5 +81,15 @@ namespace LibBSP {
}
}
}
/// <summary>
/// Creates a new <c>NumList</c> object from a <c>byte</c> array and returns it.
/// </summary>
/// <param name="data"><c>byte</c> array to parse</param>
/// <param name="type">The type of number to store</param>
/// <returns>The resulting <c>NumList</c></returns>
public static NumList LumpFactory(byte[] data, DataType type) {
return new NumList(data, type);
}
}
}