Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #760 from sebright/remove-max-serialized-tagcontex…
Browse files Browse the repository at this point in the history
…t-size

Avoid specifying maximum size of serialized TagContext.
  • Loading branch information
sebright authored Nov 1, 2017
2 parents ef48449 + 7147808 commit 6093d22
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public abstract class TagContextBinarySerializer {
*
* @param tags the {@code TagContext} to serialize.
* @return the on-the-wire representation of a {@code TagContext}.
* @throws TagContextSerializationException if the result would be larger than 8192 bytes.
* @throws TagContextSerializationException if the result would be larger than the maximum allowed
* serialized size.
*/
public abstract byte[] toByteArray(TagContext tags) throws TagContextSerializationException;

Expand All @@ -46,7 +47,7 @@ public abstract class TagContextBinarySerializer {
* @param bytes on-the-wire representation of a {@code TagContext}.
* @return a {@code TagContext} deserialized from {@code bytes}.
* @throws TagContextDeserializationException if there is a parse error, the input contains
* invalid tags, or the input is larger than 8192 bytes.
* invalid tags, or the input is larger than the maximum allowed serialized size.
*/
public abstract TagContext fromByteArray(byte[] bytes) throws TagContextDeserializationException;
}

0 comments on commit 6093d22

Please sign in to comment.