Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a first-party converter for Wire. #311

Merged
merged 1 commit into from
Aug 24, 2013
Merged

Conversation

JakeWharton
Copy link
Member

No description provided.

@JakeWharton
Copy link
Member Author

@swankjesse @danrice-square

@danrice67
Copy link
Contributor

LGTM

@codefromthecrypt
Copy link

Missed the memo on wire release! Good job guys.


/** Reads a stream into a {@code byte} array. */
private byte[] consumeAsBytes(InputStream in) throws IOException {
ByteArrayOutputStream out = new ByteArrayOutputStream();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danrice-square Wire should have an API to read a Message off of an InputStream. This code is tedious and does an unnecessary copy

@swankjesse
Copy link
Member

LGTM

JakeWharton added a commit that referenced this pull request Aug 24, 2013
Add a first-party converter for Wire.
@JakeWharton JakeWharton merged commit c2e65d2 into master Aug 24, 2013
@JakeWharton JakeWharton deleted the jw/omar-comin-yo branch August 24, 2013 21:37
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.

None yet

4 participants