Skip to content

okio / okio / Buffer / snapshot

snapshot

(js, jvm, native) fun snapshot():ByteString

Returns an immutable copy of this buffer as a byte string.

(js, jvm, native) fun snapshot(byteCount:Int):ByteString

Returns an immutable copy of the first byteCount bytes of this buffer as a byte string.