Re: "Byte Array"
| From: | Ian Firla | Date: | Tue, 14 Dec 2004 11:12:08 +0000 |
| Subject: | Re: "Byte Array" | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204281@lists.php.net to get a copy of this message | ||
You're right. I think it will. Thanks.
I've got another issue now though which may indeed be a show-stopper.
It seems that while socket_recvfrom is binary safe, there's no way to
send data in any way other than a string... Is that right? Can I not
send data of other types?
Ian
On Mon, 2004-12-13 at 07:57 -0800, Chris wrote:
> Try the unpack function, it should do quite nicely.
>
> Chris
>
> Ian Firla wrote:
>
> >Hello All,
> >
> >I've hit a bit of a show stopper in a project I'm working on.
> >
> >I'm getting a 65 byte stream of data. 32 of those bytes are of the type
> >"Byte Array". Is there a way that I can covert that data into something
> >useful?
> >
> >For the record, the data stream that I'm getting is in the format:
> >
> >|ascii|ascii|asciiX10|integerX4|byte arrayX32|
> >
> >The byte array looks like this: g÷.ãÜ.ЃÀÚäU‚úAé»9xšµñ|%ür½ñ9‹.
> >
> >Any ideas?
> >
> >Ian
> >
> >
> >
>