Skip to content
Prev Previous commit
Next Next commit
#109: Add a case for BINARY type in toByteBuffer
  • Loading branch information
xerial committed Jun 30, 2014
commit a6619fbec008e83032f9d48e4a76bc2b7142bf89
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public byte[] toByteArray() {
public ByteBuffer toByteBuffer() {
switch(tpe) {
case STRING:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What about BINARY?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It is missing. I will add a statement for BINARY.

case BINARY:
return buf.toByteBuffer();
default:
throw UNREACHABLE;
Expand Down