net / com.drake.net.body / NetResponseBody / peekString
fun peekString(byteCount:Long= 1024 * 1024 * 4, discard:Boolean= false):String
fun peekString(byteCount:
Long
= 1024 * 1024 * 4, discard:
Boolean
= false):
String
复制一段指定长度的字符串内容
byteCount - 复制的字节长度. 如果-1则返回完整的字符串内容
byteCount
discard - 如果实际长度大于指定长度则直接返回null. 可以保证数据完整性
discard