Skip to content

Commit a51b520

Browse files
isopovxerial
authored andcommitted
Add MessageBufferPacker#getSize()
Rename to getBufferSize()
1 parent eddb753 commit a51b520

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

msgpack-core/src/main/java/org/msgpack/core/MessageBufferPacker.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,12 @@ public List<MessageBuffer> toBufferList()
123123
}
124124
return getArrayBufferOut().toBufferList();
125125
}
126+
127+
/**
128+
* @return the size of the buffer in use
129+
*/
130+
public int getBufferSize()
131+
{
132+
return getArrayBufferOut().getSize();
133+
}
126134
}

0 commit comments

Comments
 (0)