Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

From Sharp minds come... pointed heads. -- Bryan Sparrowhawk


devel / comp.compression / Re: Is this a valid LZO compressed byte string?

SubjectAuthor
* Re: Is this a valid LZO compressed byte string?Mukesh Jat
`* Re: Is this a valid LZO compressed byte string?apurv khandelwal
 `- Re: Is this a valid LZO compressed byte string?Keith Thompson

1
Re: Is this a valid LZO compressed byte string?

<bed20e91-27da-4eb5-8ee7-d21f7e840e9fn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=242&group=comp.compression#242

  copy link   Newsgroups: comp.compression
X-Received: by 2002:ac8:4e51:0:b0:31b:efe0:aa24 with SMTP id e17-20020ac84e51000000b0031befe0aa24mr26519851qtw.635.1657006548606;
Tue, 05 Jul 2022 00:35:48 -0700 (PDT)
X-Received: by 2002:a05:620a:15cd:b0:6af:2bef:2f69 with SMTP id
o13-20020a05620a15cd00b006af2bef2f69mr22101413qkm.374.1657006548332; Tue, 05
Jul 2022 00:35:48 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.compression
Date: Tue, 5 Jul 2022 00:35:48 -0700 (PDT)
In-Reply-To: <04352f0c-4ff3-4c61-9514-7f983ad20588@j5g2000vbg.googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=49.205.173.68; posting-account=HXcKQwoAAAABxAtTFHWe7EYPN9HpkQ8P
NNTP-Posting-Host: 49.205.173.68
References: <45816859-09f0-49c4-b096-df64a67281cd@z25g2000vbn.googlegroups.com>
<a2b31e69-256e-4c13-afa4-e19a66e58e9d@c21g2000vba.googlegroups.com>
<e33ede80-1cce-443a-beac-0a6a2b50b575@c21g2000vba.googlegroups.com> <04352f0c-4ff3-4c61-9514-7f983ad20588@j5g2000vbg.googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bed20e91-27da-4eb5-8ee7-d21f7e840e9fn@googlegroups.com>
Subject: Re: Is this a valid LZO compressed byte string?
From: mr.jat2310@gmail.com (Mukesh Jat)
Injection-Date: Tue, 05 Jul 2022 07:35:48 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2481
 by: Mukesh Jat - Tue, 5 Jul 2022 07:35 UTC

On Friday, September 10, 2010 at 6:53:48 PM UTC+5:30, Slaunger wrote:
> Although I am just having a dialogue with myself here, I finally
> figured out what the problem is:-) (I cannot solve my problem, but now
> I at least know what it is)
> The lzo python bindings does not return the exact same array of bytes
> as the C-library functions. They add a header, where the first byte is
> 0xF= for LZO-1X compr lvl 1, and then an uint 32 representing the
> number of bytes in the *uncompressed* byet array. Apparently, this
> convenience information is used in the Python binding uncompress
> function, to allocate the right sized buffer for the output prior to
> calling the lzo library uncompress function. Really crap binding code
> if you ask me as it measn that I have to know *in advance* how many
> bytes a compressed array of bytes will unpack into *prior* to calling
> lzo.uncompress. And if it is compressed data from another data source,
> it is really not possible to know that final data size beforehand,
> which is...crap.
Just use lzo.decompress(data,False,out_len,alogrithm="XYZ")

Re: Is this a valid LZO compressed byte string?

<365db619-a441-4547-ae26-b1c1817a1433n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=248&group=comp.compression#248

  copy link   Newsgroups: comp.compression
X-Received: by 2002:a05:622a:4899:b0:3a5:64a0:5eba with SMTP id fc25-20020a05622a489900b003a564a05ebamr45158608qtb.96.1669846788667;
Wed, 30 Nov 2022 14:19:48 -0800 (PST)
X-Received: by 2002:a37:68b:0:b0:6ea:7791:1e7b with SMTP id
133-20020a37068b000000b006ea77911e7bmr42797853qkg.478.1669846788444; Wed, 30
Nov 2022 14:19:48 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.compression
Date: Wed, 30 Nov 2022 14:19:48 -0800 (PST)
In-Reply-To: <bed20e91-27da-4eb5-8ee7-d21f7e840e9fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=110.226.181.105; posting-account=rFtK_QoAAAAk5WZ7bR2sc1tofj8YiBE6
NNTP-Posting-Host: 110.226.181.105
References: <45816859-09f0-49c4-b096-df64a67281cd@z25g2000vbn.googlegroups.com>
<a2b31e69-256e-4c13-afa4-e19a66e58e9d@c21g2000vba.googlegroups.com>
<e33ede80-1cce-443a-beac-0a6a2b50b575@c21g2000vba.googlegroups.com>
<04352f0c-4ff3-4c61-9514-7f983ad20588@j5g2000vbg.googlegroups.com> <bed20e91-27da-4eb5-8ee7-d21f7e840e9fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <365db619-a441-4547-ae26-b1c1817a1433n@googlegroups.com>
Subject: Re: Is this a valid LZO compressed byte string?
From: apurvk2000@gmail.com (apurv khandelwal)
Injection-Date: Wed, 30 Nov 2022 22:19:48 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1720
 by: apurv khandelwal - Wed, 30 Nov 2022 22:19 UTC

lzo.decompress(data,False,out_len,alogrithm="XYZ")

this does not work. Shows the error: decompress() takes no keyword arguments

Also, the function only takes 3 arguments. Running lzo.decompress(c, False, 512, "LZO1Z") gives the error: function takes at most 3 arguments (4 given)

Re: Is this a valid LZO compressed byte string?

<87lensjcxx.fsf@nosuchdomain.example.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=249&group=comp.compression#249

  copy link   Newsgroups: comp.compression
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Keith.S.Thompson+u@gmail.com (Keith Thompson)
Newsgroups: comp.compression
Subject: Re: Is this a valid LZO compressed byte string?
Date: Wed, 30 Nov 2022 14:27:06 -0800
Organization: None to speak of
Lines: 15
Message-ID: <87lensjcxx.fsf@nosuchdomain.example.com>
References: <45816859-09f0-49c4-b096-df64a67281cd@z25g2000vbn.googlegroups.com>
<a2b31e69-256e-4c13-afa4-e19a66e58e9d@c21g2000vba.googlegroups.com>
<e33ede80-1cce-443a-beac-0a6a2b50b575@c21g2000vba.googlegroups.com>
<04352f0c-4ff3-4c61-9514-7f983ad20588@j5g2000vbg.googlegroups.com>
<bed20e91-27da-4eb5-8ee7-d21f7e840e9fn@googlegroups.com>
<365db619-a441-4547-ae26-b1c1817a1433n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="cc9fe9237de1151f854ce978a0494a2f";
logging-data="2748571"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+QbNt40BqwyhkfzhSEl2QY"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:Kd4vCkkf+Bas/T6lgdVntSpbPYc=
sha1:08B9mSWZOq3F0g8Nlrg3HwOd+YE=
 by: Keith Thompson - Wed, 30 Nov 2022 22:27 UTC

apurv khandelwal <apurvk2000@gmail.com> writes:
> lzo.decompress(data,False,out_len,alogrithm="XYZ")
>
> this does not work. Shows the error: decompress() takes no keyword arguments
>
> Also, the function only takes 3 arguments. Running lzo.decompress(c,
> False, 512, "LZO1Z") gives the error: function takes at most 3
> arguments (4 given)

In what language?

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for XCOM Labs
void Void(void) { Void(); } /* The recursive call of the void */

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor