Skip to content

okio / okio / ByteString / substring

substring

(js, jvm) fun substring(beginIndex:Int= 0, endIndex:Int= size):ByteString(native) open fun substring(beginIndex:Int, endIndex:Int):ByteString

Returns a byte string that is a substring of this byte string, beginning at the specified beginIndex and ends at the specified endIndex. Returns this byte string if beginIndex is 0 and endIndex is the length of this byte string.