Searched refs:maxBytesLength (Results 1 – 1 of 1) sorted by relevance
465 public static String truncateUtf8StringToString(String utf8InString, int maxBytesLength) in truncateUtf8StringToString() argument469 if (utf8InBytes.length <= maxBytesLength) { in truncateUtf8StringToString()474 ByteBuffer truncatedString = ByteBuffer.wrap(utf8InBytes, 0, maxBytesLength); in truncateUtf8StringToString()475 CharBuffer validUtf8Buffer = CharBuffer.allocate(maxBytesLength); in truncateUtf8StringToString()