Skip to content

Add MessagePacker.totalWrittenBytes - #195

Closed
slandelle wants to merge 1 commit into
msgpack:v07-developfrom
slandelle:byteswritten
Closed

Add MessagePacker.totalWrittenBytes#195
slandelle wants to merge 1 commit into
msgpack:v07-developfrom
slandelle:byteswritten

Conversation

@slandelle

Copy link
Copy Markdown
Contributor

This PR adds the ability to track the number of bytes a MessagePacker has packed.

@slandelle

Copy link
Copy Markdown
Contributor Author

@xerial ping :)

@xerial

xerial commented Feb 10, 2015

Copy link
Copy Markdown
Member

Thanks. I feel ensureCapacity is not a good place to embed this counter. I'll reorganize the code based on your changes so that totalWrittenBytes and position variables are synchronized.

xerial added a commit to xerial/msgpack-java that referenced this pull request Feb 10, 2015
@xerial

xerial commented Feb 10, 2015

Copy link
Copy Markdown
Member

I created a new PR based on your commits: #196

@xerial xerial closed this Feb 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants