Hello,
Actually, for Akka 2.3.6 it seems to be:
val x: Long = ???
val byteString = (new ByteStringBuilder).putLong(x)(byteOrder).result()
val x2 = byteString.iterator.getLong(byteOrder)
as ByteStringBuilder does not have a companion.
Best, Oliver
On Thursday, September 25, 2014 5:27:56 PM UTC-4, √ wrote:
>
>
> val x: Long = ???
> val byteString =
> ByteStringBuilder.newBuilder.putLong(x)(byteOrder).result()
> val x2 = byteString.iterator.getLong(byteOrder)
>
> On Thu, Sep 25, 2014 at 10:11 PM, Oliver Ruebenacker <[email protected]
> <javascript:>> wrote:
>
>>
>> Hello,
>>
>> What is the preferred way to convert a Long into a ByteString and back?
>> Thanks!
>>
>> Best, Oliver
>>
>> --
>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>> >>>>>>>>>> Check the FAQ:
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Cheers,
> √
>
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.