dsdecmp/CSharp/DSDecmp/Exceptions/StreamTooShortException.cs
barubary d64137221a C#: A step into a new system, where game-specific formats can be defined as plugins, preventing users from having to download DSDecmp itself again and again. Such plugins must be stores in a 'Plugins' folder in the same location as the DSDecmp.exe.
To keep the base program mobile, all native NDS formats do not require plugins.

The 8-bit Huffman format cannot be used to compress at the moment; thanks to CUE a bug has been found where the offset-field of a node overflows, corrupting the compressed file.
2011-11-13 16:14:45 +00:00

23 lines
733 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace DSDecmp
{
/// <summary>
/// An exception thrown by the compression or decompression function, indicating that the
/// given input length was too large for the given input stream.
/// </summary>
public class StreamTooShortException : EndOfStreamException
{
/// <summary>
/// Creates a new exception that indicates that the stream was shorter than the given input length.
/// </summary>
public StreamTooShortException()
: base("The end of the stream was reached "
+ "before the given amout of data was read.")
{ }
}
}