Status: New
Owner: [email protected]
Labels: Type-Defect Priority-Medium

New issue 614 by [email protected]: ByteString: Method For Chunking
http://code.google.com/p/protobuf/issues/detail?id=614

The internal usage of RopeByteString (and RopeInputStream) is particularly interesting. Alongside this, it would be very handy if ByteString exposed a public method that is the reverse of:
public static ByteString copyFrom(Iterable<ByteString> byteStrings);

Essentially, it would be for chunking a ByteString into several smaller chunks and returning those chunks in a list.
Something along the lines of:
public static List<ByteString> chunkify(ByteString s, int chunkSize);

...where all but the final chunk are guaranteed to be of size 'chunkSize'.



--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" 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/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to