[Kde-bindings] QByteArray
David Hallas Andersen
david at hallas.nu
Thu Jan 18 11:47:54 UTC 2007
Sounds like a good idea, I will try that. Thanks a lot for your help.
On Thursday 18 January 2007 12:42, Richard Dale wrote:
> On Thursday 18 January 2007 11:18, David Hallas Andersen wrote:
> > Hi Richard,
> >
> > thanks for your quick reply. I am working on a class that uses QSocket to
> > read data using the readAll call (which returns a QByteArray). And then i
> > need to analyze the data, using find, at and operator[]. But perhaps
> > there is a different way I can achieve the same?
>
> Perhaps you can just use Qt::ByteArray.to_s method to convert to a string
> (it will make a byte for byte copy) and then use the Ruby String methods to
> examine the contents?
>
> -- Richard
> _______________________________________________
> Kde-bindings mailing list
> Kde-bindings at kde.org
> https://mail.kde.org/mailman/listinfo/kde-bindings
--
Cheers...
/David
More information about the Kde-bindings
mailing list