Commit d0898fd0 authored by Wouter van Oortmerssen's avatar Wouter van Oortmerssen

Merge pull request #3863 from pjulien/cseq

Can now use ``CharSequence`` of ``String``.  Works with
parents ba7204a7 599f5e39
......@@ -373,7 +373,7 @@ public class FlatBufferBuilder {
* @param s The string to encode.
* @return The offset in the buffer where the encoded string starts.
*/
public int createString(String s) {
public int createString(CharSequence s) {
int length = s.length();
int estimatedDstCapacity = (int) (length * encoder.maxBytesPerChar());
if (dst == null || dst.capacity() < estimatedDstCapacity) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment