-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lz4bson cannot be loaded #4
Comments
class Program
{
static void Main(string[] args)
{
if (args.Length != 2)
{
System.Console.Error.WriteLine("Usage: [in: lz4bson] [out: bson]");
return;
}
using var inFile = File.OpenRead(args[0]);
using var legacyNonStandardLz4Stream = new LZ4Stream(inFile, LZ4StreamMode.Decompress);
using var outFile = new FileStream(args[1], FileMode.Truncate);
legacyNonStandardLz4Stream.CopyTo(outFile);
}
} むり |
行けた |
6バイト読み飛ばせば良さそう…? |
176バイト目までは一致するが、それ以降が一致しないので単純な小細工ではだめっぽい |
181バイト目からビハインド3で追いかけているのでまた切り詰めてみる |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ひねくれたblock headerを使っているからデコードできないらしい:
K4os.Compressions.LZ4.Legacy
を使えばデコードできるか?The text was updated successfully, but these errors were encountered: