diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000000..e69de29bb2 diff --git a/1.x/benchmarks/META-INF/MANIFEST.MF b/1.x/benchmarks/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..1a12ffb44d --- /dev/null +++ b/1.x/benchmarks/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_162 + diff --git a/1.x/benchmarks/allclasses-frame.html b/1.x/benchmarks/allclasses-frame.html new file mode 100644 index 0000000000..46e1fd7299 --- /dev/null +++ b/1.x/benchmarks/allclasses-frame.html @@ -0,0 +1,72 @@ + + + + + + +All Classes (Okio Performance Benchmarks 1.16.0 API) + + + + + +

All Classes

+
+ +
+ + diff --git a/1.x/benchmarks/allclasses-noframe.html b/1.x/benchmarks/allclasses-noframe.html new file mode 100644 index 0000000000..4255443dcc --- /dev/null +++ b/1.x/benchmarks/allclasses-noframe.html @@ -0,0 +1,72 @@ + + + + + + +All Classes (Okio Performance Benchmarks 1.16.0 API) + + + + + +

All Classes

+
+ +
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferCursorSeekBenchmark.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferCursorSeekBenchmark.html new file mode 100644 index 0000000000..ba2b88e1f0 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferCursorSeekBenchmark.html @@ -0,0 +1,354 @@ + + + + + + +BufferCursorSeekBenchmark (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks
+

Class BufferCursorSeekBenchmark

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.BufferSetup.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.BufferSetup.html new file mode 100644 index 0000000000..1738650ea5 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.BufferSetup.html @@ -0,0 +1,332 @@ + + + + + + +BufferPerformanceBench.BufferSetup (Okio Performance Benchmarks 1.6.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks
+

Class BufferPerformanceBench.BufferSetup

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2015. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.BufferState.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.BufferState.html new file mode 100644 index 0000000000..4d27fead22 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.BufferState.html @@ -0,0 +1,334 @@ + + + + + + +BufferPerformanceBench.BufferState (Okio Performance Benchmarks 1.6.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks
+

Class BufferPerformanceBench.BufferState

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2015. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.ColdBuffers.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.ColdBuffers.html new file mode 100644 index 0000000000..a78bb95271 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.ColdBuffers.html @@ -0,0 +1,317 @@ + + + + + + +BufferPerformanceBench.ColdBuffers (Okio Performance Benchmarks 1.6.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks
+

Class BufferPerformanceBench.ColdBuffers

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2015. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.HotBuffers.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.HotBuffers.html new file mode 100644 index 0000000000..1ddff143c4 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.HotBuffers.html @@ -0,0 +1,299 @@ + + + + + + +BufferPerformanceBench.HotBuffers (Okio Performance Benchmarks 1.6.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks
+

Class BufferPerformanceBench.HotBuffers

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2015. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.html new file mode 100644 index 0000000000..fc54acfe21 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.html @@ -0,0 +1,487 @@ + + + + + + +BufferPerformanceBench (Okio Performance Benchmarks 1.6.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks
+

Class BufferPerformanceBench

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2015. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.BufferSetup.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.BufferSetup.html new file mode 100644 index 0000000000..874840ac2b --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.BufferSetup.html @@ -0,0 +1,334 @@ + + + + + + +BufferPerformanceBenchmark.BufferSetup (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks
+

Class BufferPerformanceBenchmark.BufferSetup

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.BufferState.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.BufferState.html new file mode 100644 index 0000000000..0b61cae1e0 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.BufferState.html @@ -0,0 +1,336 @@ + + + + + + +BufferPerformanceBenchmark.BufferState (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks
+

Class BufferPerformanceBenchmark.BufferState

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.ColdBuffers.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.ColdBuffers.html new file mode 100644 index 0000000000..3685c061d4 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.ColdBuffers.html @@ -0,0 +1,323 @@ + + + + + + +BufferPerformanceBenchmark.ColdBuffers (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks
+

Class BufferPerformanceBenchmark.ColdBuffers

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.HotBuffers.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.HotBuffers.html new file mode 100644 index 0000000000..39e50948e4 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.HotBuffers.html @@ -0,0 +1,305 @@ + + + + + + +BufferPerformanceBenchmark.HotBuffers (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks
+

Class BufferPerformanceBenchmark.HotBuffers

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.html new file mode 100644 index 0000000000..f98b91f7cb --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.html @@ -0,0 +1,493 @@ + + + + + + +BufferPerformanceBenchmark (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks
+

Class BufferPerformanceBenchmark

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/GetByteBenchmark.html b/1.x/benchmarks/com/squareup/okio/benchmarks/GetByteBenchmark.html new file mode 100644 index 0000000000..af821c1d64 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/GetByteBenchmark.html @@ -0,0 +1,341 @@ + + + + + + +GetByteBenchmark (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks
+

Class GetByteBenchmark

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/IndexOfElementBenchmark.html b/1.x/benchmarks/com/squareup/okio/benchmarks/IndexOfElementBenchmark.html new file mode 100644 index 0000000000..bb8e5ae516 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/IndexOfElementBenchmark.html @@ -0,0 +1,356 @@ + + + + + + +IndexOfElementBenchmark (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks
+

Class IndexOfElementBenchmark

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferCursorSeekBenchmark.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferCursorSeekBenchmark.html new file mode 100644 index 0000000000..6f53c1ffe4 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferCursorSeekBenchmark.html @@ -0,0 +1,178 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.BufferCursorSeekBenchmark (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.BufferCursorSeekBenchmark

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.BufferSetup.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.BufferSetup.html new file mode 100644 index 0000000000..8e662b2adc --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.BufferSetup.html @@ -0,0 +1,153 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.BufferPerformanceBench.BufferSetup (Okio Performance Benchmarks 1.6.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.BufferPerformanceBench.BufferSetup

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2015. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.BufferState.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.BufferState.html new file mode 100644 index 0000000000..d40a0e620b --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.BufferState.html @@ -0,0 +1,157 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.BufferPerformanceBench.BufferState (Okio Performance Benchmarks 1.6.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.BufferPerformanceBench.BufferState

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2015. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.ColdBuffers.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.ColdBuffers.html new file mode 100644 index 0000000000..77e7d2852e --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.ColdBuffers.html @@ -0,0 +1,149 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.BufferPerformanceBench.ColdBuffers (Okio Performance Benchmarks 1.6.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.BufferPerformanceBench.ColdBuffers

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2015. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.HotBuffers.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.HotBuffers.html new file mode 100644 index 0000000000..8170e546ac --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.HotBuffers.html @@ -0,0 +1,173 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.BufferPerformanceBench.HotBuffers (Okio Performance Benchmarks 1.6.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.BufferPerformanceBench.HotBuffers

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2015. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.html new file mode 100644 index 0000000000..834496ad7a --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.html @@ -0,0 +1,153 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.BufferPerformanceBench (Okio Performance Benchmarks 1.6.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.BufferPerformanceBench

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2015. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.BufferSetup.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.BufferSetup.html new file mode 100644 index 0000000000..48559e9cbd --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.BufferSetup.html @@ -0,0 +1,220 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.BufferPerformanceBenchmark.BufferSetup (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.BufferPerformanceBenchmark.BufferSetup

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.BufferState.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.BufferState.html new file mode 100644 index 0000000000..c7d7c04197 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.BufferState.html @@ -0,0 +1,224 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.BufferPerformanceBenchmark.BufferState (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.BufferPerformanceBenchmark.BufferState

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.ColdBuffers.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.ColdBuffers.html new file mode 100644 index 0000000000..cbfecb27a4 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.ColdBuffers.html @@ -0,0 +1,200 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.BufferPerformanceBenchmark.ColdBuffers (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.BufferPerformanceBenchmark.ColdBuffers

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.HotBuffers.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.HotBuffers.html new file mode 100644 index 0000000000..814cd23547 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.HotBuffers.html @@ -0,0 +1,224 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.BufferPerformanceBenchmark.HotBuffers (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.BufferPerformanceBenchmark.HotBuffers

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.html new file mode 100644 index 0000000000..db13d30be2 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.html @@ -0,0 +1,204 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.BufferPerformanceBenchmark (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.BufferPerformanceBenchmark

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/GetByteBenchmark.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/GetByteBenchmark.html new file mode 100644 index 0000000000..15236930bc --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/GetByteBenchmark.html @@ -0,0 +1,178 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.GetByteBenchmark (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.GetByteBenchmark

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/IndexOfElementBenchmark.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/IndexOfElementBenchmark.html new file mode 100644 index 0000000000..cca89007e7 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/IndexOfElementBenchmark.html @@ -0,0 +1,178 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.IndexOfElementBenchmark (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.IndexOfElementBenchmark

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh.html new file mode 100644 index 0000000000..dcf3ac791b --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh.html @@ -0,0 +1,281 @@ + + + + + + +BufferCursorSeekBenchmark_jmh (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferCursorSeekBenchmark_jmh

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh_B1.html new file mode 100644 index 0000000000..6f44769a92 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh_B1.html @@ -0,0 +1,255 @@ + + + + + + +BufferCursorSeekBenchmark_jmh_B1 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferCursorSeekBenchmark_jmh_B1

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh_B2.html new file mode 100644 index 0000000000..4b9cf1c4de --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh_B2.html @@ -0,0 +1,478 @@ + + + + + + +BufferCursorSeekBenchmark_jmh_B2 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferCursorSeekBenchmark_jmh_B2

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh_B3.html new file mode 100644 index 0000000000..e831be47b4 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh_B3.html @@ -0,0 +1,280 @@ + + + + + + +BufferCursorSeekBenchmark_jmh_B3 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferCursorSeekBenchmark_jmh_B3

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekBackward.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekBackward.html new file mode 100644 index 0000000000..0450873e3a --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekBackward.html @@ -0,0 +1,445 @@ + + + + + + +BufferCursorSeekBenchmark_seekBackward (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferCursorSeekBenchmark_seekBackward

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekBeginning.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekBeginning.html new file mode 100644 index 0000000000..b4ae18ee4d --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekBeginning.html @@ -0,0 +1,445 @@ + + + + + + +BufferCursorSeekBenchmark_seekBeginning (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferCursorSeekBenchmark_seekBeginning

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekEnd.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekEnd.html new file mode 100644 index 0000000000..c53ba210b1 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekEnd.html @@ -0,0 +1,445 @@ + + + + + + +BufferCursorSeekBenchmark_seekEnd (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferCursorSeekBenchmark_seekEnd

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekForward.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekForward.html new file mode 100644 index 0000000000..6970a3db9e --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekForward.html @@ -0,0 +1,445 @@ + + + + + + +BufferCursorSeekBenchmark_seekForward (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferCursorSeekBenchmark_seekForward

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh.html new file mode 100644 index 0000000000..5d7f2643a9 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh.html @@ -0,0 +1,305 @@ + + + + + + +BufferPerformanceBenchmark_ColdBuffers_jmh (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferPerformanceBenchmark_ColdBuffers_jmh

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh_B1.html new file mode 100644 index 0000000000..0a6578626d --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh_B1.html @@ -0,0 +1,279 @@ + + + + + + +BufferPerformanceBenchmark_ColdBuffers_jmh_B1 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferPerformanceBenchmark_ColdBuffers_jmh_B1

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh_B2.html new file mode 100644 index 0000000000..591c8892c3 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh_B2.html @@ -0,0 +1,502 @@ + + + + + + +BufferPerformanceBenchmark_ColdBuffers_jmh_B2 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferPerformanceBenchmark_ColdBuffers_jmh_B2

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh_B3.html new file mode 100644 index 0000000000..7af8f5f10b --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh_B3.html @@ -0,0 +1,304 @@ + + + + + + +BufferPerformanceBenchmark_ColdBuffers_jmh_B3 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferPerformanceBenchmark_ColdBuffers_jmh_B3

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh.html new file mode 100644 index 0000000000..b0820810ea --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh.html @@ -0,0 +1,305 @@ + + + + + + +BufferPerformanceBenchmark_HotBuffers_jmh (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferPerformanceBenchmark_HotBuffers_jmh

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh_B1.html new file mode 100644 index 0000000000..94476dfaf4 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh_B1.html @@ -0,0 +1,279 @@ + + + + + + +BufferPerformanceBenchmark_HotBuffers_jmh_B1 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferPerformanceBenchmark_HotBuffers_jmh_B1

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh_B2.html new file mode 100644 index 0000000000..29c870c9f9 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh_B2.html @@ -0,0 +1,502 @@ + + + + + + +BufferPerformanceBenchmark_HotBuffers_jmh_B2 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferPerformanceBenchmark_HotBuffers_jmh_B2

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh_B3.html new file mode 100644 index 0000000000..07b3774323 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh_B3.html @@ -0,0 +1,304 @@ + + + + + + +BufferPerformanceBenchmark_HotBuffers_jmh_B3 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferPerformanceBenchmark_HotBuffers_jmh_B3

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_cold.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_cold.html new file mode 100644 index 0000000000..9cecffb6a2 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_cold.html @@ -0,0 +1,565 @@ + + + + + + +BufferPerformanceBenchmark_cold (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferPerformanceBenchmark_cold

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh.html new file mode 100644 index 0000000000..fbbbaabcb6 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh.html @@ -0,0 +1,303 @@ + + + + + + +BufferPerformanceBenchmark_jmh (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferPerformanceBenchmark_jmh

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh_B1.html new file mode 100644 index 0000000000..2225f44880 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh_B1.html @@ -0,0 +1,285 @@ + + + + + + +BufferPerformanceBenchmark_jmh_B1 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferPerformanceBenchmark_jmh_B1

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh_B2.html new file mode 100644 index 0000000000..943d853705 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh_B2.html @@ -0,0 +1,500 @@ + + + + + + +BufferPerformanceBenchmark_jmh_B2 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferPerformanceBenchmark_jmh_B2

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh_B3.html new file mode 100644 index 0000000000..fea942357f --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh_B3.html @@ -0,0 +1,302 @@ + + + + + + +BufferPerformanceBenchmark_jmh_B3 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferPerformanceBenchmark_jmh_B3

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads16hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads16hot.html new file mode 100644 index 0000000000..5991225e21 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads16hot.html @@ -0,0 +1,453 @@ + + + + + + +BufferPerformanceBenchmark_threads16hot (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferPerformanceBenchmark_threads16hot

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads1hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads1hot.html new file mode 100644 index 0000000000..54c8a899f9 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads1hot.html @@ -0,0 +1,453 @@ + + + + + + +BufferPerformanceBenchmark_threads1hot (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferPerformanceBenchmark_threads1hot

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads2hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads2hot.html new file mode 100644 index 0000000000..3568ff3e5e --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads2hot.html @@ -0,0 +1,453 @@ + + + + + + +BufferPerformanceBenchmark_threads2hot (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferPerformanceBenchmark_threads2hot

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads32hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads32hot.html new file mode 100644 index 0000000000..b4c871f138 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads32hot.html @@ -0,0 +1,453 @@ + + + + + + +BufferPerformanceBenchmark_threads32hot (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferPerformanceBenchmark_threads32hot

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads4hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads4hot.html new file mode 100644 index 0000000000..070138c5b4 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads4hot.html @@ -0,0 +1,453 @@ + + + + + + +BufferPerformanceBenchmark_threads4hot (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferPerformanceBenchmark_threads4hot

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads8hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads8hot.html new file mode 100644 index 0000000000..d7b5ad52e6 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads8hot.html @@ -0,0 +1,453 @@ + + + + + + +BufferPerformanceBenchmark_threads8hot (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class BufferPerformanceBenchmark_threads8hot

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_getByteBeginning.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_getByteBeginning.html new file mode 100644 index 0000000000..7f709d11b0 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_getByteBeginning.html @@ -0,0 +1,445 @@ + + + + + + +GetByteBenchmark_getByteBeginning (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class GetByteBenchmark_getByteBeginning

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_getByteEnd.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_getByteEnd.html new file mode 100644 index 0000000000..a2beea50e7 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_getByteEnd.html @@ -0,0 +1,445 @@ + + + + + + +GetByteBenchmark_getByteEnd (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class GetByteBenchmark_getByteEnd

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_getByteMiddle.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_getByteMiddle.html new file mode 100644 index 0000000000..d2f26603da --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_getByteMiddle.html @@ -0,0 +1,445 @@ + + + + + + +GetByteBenchmark_getByteMiddle (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class GetByteBenchmark_getByteMiddle

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh.html new file mode 100644 index 0000000000..67101884df --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh.html @@ -0,0 +1,281 @@ + + + + + + +GetByteBenchmark_jmh (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class GetByteBenchmark_jmh

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh_B1.html new file mode 100644 index 0000000000..1299fe497c --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh_B1.html @@ -0,0 +1,255 @@ + + + + + + +GetByteBenchmark_jmh_B1 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class GetByteBenchmark_jmh_B1

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh_B2.html new file mode 100644 index 0000000000..a80f1ce45a --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh_B2.html @@ -0,0 +1,478 @@ + + + + + + +GetByteBenchmark_jmh_B2 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class GetByteBenchmark_jmh_B2

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh_B3.html new file mode 100644 index 0000000000..dd7f309c6f --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh_B3.html @@ -0,0 +1,280 @@ + + + + + + +GetByteBenchmark_jmh_B3 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class GetByteBenchmark_jmh_B3

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_indexOfByte.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_indexOfByte.html new file mode 100644 index 0000000000..22728b722b --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_indexOfByte.html @@ -0,0 +1,445 @@ + + + + + + +IndexOfElementBenchmark_indexOfByte (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class IndexOfElementBenchmark_indexOfByte

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_indexOfByteString.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_indexOfByteString.html new file mode 100644 index 0000000000..663dd3a90d --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_indexOfByteString.html @@ -0,0 +1,445 @@ + + + + + + +IndexOfElementBenchmark_indexOfByteString (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class IndexOfElementBenchmark_indexOfByteString

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_indexOfElement.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_indexOfElement.html new file mode 100644 index 0000000000..978684e71f --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_indexOfElement.html @@ -0,0 +1,445 @@ + + + + + + +IndexOfElementBenchmark_indexOfElement (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class IndexOfElementBenchmark_indexOfElement

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh.html new file mode 100644 index 0000000000..60633ddfa0 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh.html @@ -0,0 +1,281 @@ + + + + + + +IndexOfElementBenchmark_jmh (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class IndexOfElementBenchmark_jmh

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh_B1.html new file mode 100644 index 0000000000..ea1676a4e7 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh_B1.html @@ -0,0 +1,255 @@ + + + + + + +IndexOfElementBenchmark_jmh_B1 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class IndexOfElementBenchmark_jmh_B1

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh_B2.html new file mode 100644 index 0000000000..8a553a4fa7 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh_B2.html @@ -0,0 +1,478 @@ + + + + + + +IndexOfElementBenchmark_jmh_B2 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class IndexOfElementBenchmark_jmh_B2

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh_B3.html new file mode 100644 index 0000000000..1eaa929fb1 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh_B3.html @@ -0,0 +1,280 @@ + + + + + + +IndexOfElementBenchmark_jmh_B3 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
com.squareup.okio.benchmarks.generated
+

Class IndexOfElementBenchmark_jmh_B3

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh.html new file mode 100644 index 0000000000..56ad4fcbcf --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh.html @@ -0,0 +1,290 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh_B1.html new file mode 100644 index 0000000000..6762f56cce --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh_B1.html @@ -0,0 +1,174 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B1 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B1

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh_B2.html new file mode 100644 index 0000000000..d02e625abd --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh_B2.html @@ -0,0 +1,203 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B2 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B2

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh_B3.html new file mode 100644 index 0000000000..b55e3cf787 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh_B3.html @@ -0,0 +1,166 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B3 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B3

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekBackward.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekBackward.html new file mode 100644 index 0000000000..9619aa8671 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekBackward.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBackward (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBackward

+
+
No usage of com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBackward
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekBeginning.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekBeginning.html new file mode 100644 index 0000000000..2a3bdadb40 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekBeginning.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBeginning (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBeginning

+
+
No usage of com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBeginning
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekEnd.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekEnd.html new file mode 100644 index 0000000000..e4738a8279 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekEnd.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekEnd (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekEnd

+
+
No usage of com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekEnd
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekForward.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekForward.html new file mode 100644 index 0000000000..5b4015fd90 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekForward.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekForward (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekForward

+
+
No usage of com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekForward
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh.html new file mode 100644 index 0000000000..bb8cd78856 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh.html @@ -0,0 +1,198 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh_B1.html new file mode 100644 index 0000000000..1dbbe9ab9f --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh_B1.html @@ -0,0 +1,174 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B1 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B1

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh_B2.html new file mode 100644 index 0000000000..ccf19534eb --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh_B2.html @@ -0,0 +1,203 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B2 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B2

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh_B3.html new file mode 100644 index 0000000000..eae749dd6c --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh_B3.html @@ -0,0 +1,166 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B3 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B3

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh.html new file mode 100644 index 0000000000..221fd68a60 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh.html @@ -0,0 +1,414 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh_B1.html new file mode 100644 index 0000000000..f616a1bf22 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh_B1.html @@ -0,0 +1,174 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B1 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B1

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh_B2.html new file mode 100644 index 0000000000..0f9e57c577 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh_B2.html @@ -0,0 +1,203 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B2 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B2

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh_B3.html new file mode 100644 index 0000000000..4caee76d44 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh_B3.html @@ -0,0 +1,166 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B3 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B3

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_cold.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_cold.html new file mode 100644 index 0000000000..7920da6c6f --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_cold.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_cold (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_cold

+
+
No usage of com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_cold
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh.html new file mode 100644 index 0000000000..393416b24a --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh.html @@ -0,0 +1,450 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh_B1.html new file mode 100644 index 0000000000..72c1be6803 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh_B1.html @@ -0,0 +1,174 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B1 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B1

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh_B2.html new file mode 100644 index 0000000000..3b2552db13 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh_B2.html @@ -0,0 +1,203 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B2 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B2

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh_B3.html new file mode 100644 index 0000000000..191a554379 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh_B3.html @@ -0,0 +1,166 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B3 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B3

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads16hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads16hot.html new file mode 100644 index 0000000000..71410a3be6 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads16hot.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads16hot (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads16hot

+
+
No usage of com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads16hot
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads1hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads1hot.html new file mode 100644 index 0000000000..9011d652ea --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads1hot.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads1hot (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads1hot

+
+
No usage of com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads1hot
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads2hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads2hot.html new file mode 100644 index 0000000000..047b55df15 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads2hot.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads2hot (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads2hot

+
+
No usage of com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads2hot
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads32hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads32hot.html new file mode 100644 index 0000000000..ae9a33e698 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads32hot.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads32hot (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads32hot

+
+
No usage of com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads32hot
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads4hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads4hot.html new file mode 100644 index 0000000000..b3439980ef --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads4hot.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads4hot (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads4hot

+
+
No usage of com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads4hot
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads8hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads8hot.html new file mode 100644 index 0000000000..e8b709f9ed --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads8hot.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads8hot (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads8hot

+
+
No usage of com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads8hot
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_getByteBeginning.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_getByteBeginning.html new file mode 100644 index 0000000000..080ba474e6 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_getByteBeginning.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteBeginning (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteBeginning

+
+
No usage of com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteBeginning
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_getByteEnd.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_getByteEnd.html new file mode 100644 index 0000000000..539d236f21 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_getByteEnd.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteEnd (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteEnd

+
+
No usage of com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteEnd
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_getByteMiddle.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_getByteMiddle.html new file mode 100644 index 0000000000..9d84d67c55 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_getByteMiddle.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteMiddle (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteMiddle

+
+
No usage of com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteMiddle
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh.html new file mode 100644 index 0000000000..26c57b2b26 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh.html @@ -0,0 +1,258 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh_B1.html new file mode 100644 index 0000000000..20ee67cda8 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh_B1.html @@ -0,0 +1,174 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B1 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B1

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh_B2.html new file mode 100644 index 0000000000..ad4b30d6d8 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh_B2.html @@ -0,0 +1,203 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B2 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B2

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh_B3.html new file mode 100644 index 0000000000..84fad41c77 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh_B3.html @@ -0,0 +1,166 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B3 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B3

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_indexOfByte.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_indexOfByte.html new file mode 100644 index 0000000000..ffee9f6c12 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_indexOfByte.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByte (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByte

+
+
No usage of com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByte
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_indexOfByteString.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_indexOfByteString.html new file mode 100644 index 0000000000..abcd391fb7 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_indexOfByteString.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByteString (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByteString

+
+
No usage of com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByteString
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_indexOfElement.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_indexOfElement.html new file mode 100644 index 0000000000..a1ad489735 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_indexOfElement.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfElement (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfElement

+
+
No usage of com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfElement
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh.html new file mode 100644 index 0000000000..1fb9549763 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh.html @@ -0,0 +1,258 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh_B1.html new file mode 100644 index 0000000000..0a81533da9 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh_B1.html @@ -0,0 +1,174 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B1 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B1

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh_B2.html new file mode 100644 index 0000000000..2c8405b9e6 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh_B2.html @@ -0,0 +1,203 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B2 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B2

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh_B3.html new file mode 100644 index 0000000000..72bf7b0765 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh_B3.html @@ -0,0 +1,166 @@ + + + + + + +Uses of Class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B3 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B3

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-frame.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-frame.html new file mode 100644 index 0000000000..cee066e5fe --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-frame.html @@ -0,0 +1,61 @@ + + + + + + +com.squareup.okio.benchmarks.generated (Okio Performance Benchmarks 1.16.0 API) + + + + + +

com.squareup.okio.benchmarks.generated

+
+

Classes

+ +
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-summary.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-summary.html new file mode 100644 index 0000000000..bb5b413a97 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-summary.html @@ -0,0 +1,304 @@ + + + + + + +com.squareup.okio.benchmarks.generated (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package com.squareup.okio.benchmarks.generated

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-tree.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-tree.html new file mode 100644 index 0000000000..03382bd0e6 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-tree.html @@ -0,0 +1,265 @@ + + + + + + +com.squareup.okio.benchmarks.generated Class Hierarchy (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package com.squareup.okio.benchmarks.generated

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-use.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-use.html new file mode 100644 index 0000000000..a93f5b44eb --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-use.html @@ -0,0 +1,228 @@ + + + + + + +Uses of Package com.squareup.okio.benchmarks.generated (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
com.squareup.okio.benchmarks.generated

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/package-frame.html b/1.x/benchmarks/com/squareup/okio/benchmarks/package-frame.html new file mode 100644 index 0000000000..8c18957ba7 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/package-frame.html @@ -0,0 +1,28 @@ + + + + + + +com.squareup.okio.benchmarks (Okio Performance Benchmarks 1.16.0 API) + + + + + +

com.squareup.okio.benchmarks

+
+

Classes

+ +
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/package-summary.html b/1.x/benchmarks/com/squareup/okio/benchmarks/package-summary.html new file mode 100644 index 0000000000..a138d78e0c --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/package-summary.html @@ -0,0 +1,172 @@ + + + + + + +com.squareup.okio.benchmarks (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package com.squareup.okio.benchmarks

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/package-tree.html b/1.x/benchmarks/com/squareup/okio/benchmarks/package-tree.html new file mode 100644 index 0000000000..b5b98d1ad7 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/package-tree.html @@ -0,0 +1,152 @@ + + + + + + +com.squareup.okio.benchmarks Class Hierarchy (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package com.squareup.okio.benchmarks

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/package-use.html b/1.x/benchmarks/com/squareup/okio/benchmarks/package-use.html new file mode 100644 index 0000000000..478d54ce0e --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/package-use.html @@ -0,0 +1,211 @@ + + + + + + +Uses of Package com.squareup.okio.benchmarks (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
com.squareup.okio.benchmarks

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/constant-values.html b/1.x/benchmarks/constant-values.html new file mode 100644 index 0000000000..d37dcd5fe3 --- /dev/null +++ b/1.x/benchmarks/constant-values.html @@ -0,0 +1,126 @@ + + + + + + +Constant Field Values (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Constant Field Values

+

Contents

+
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/deprecated-list.html b/1.x/benchmarks/deprecated-list.html new file mode 100644 index 0000000000..fc5ab5421a --- /dev/null +++ b/1.x/benchmarks/deprecated-list.html @@ -0,0 +1,126 @@ + + + + + + +Deprecated List (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/help-doc.html b/1.x/benchmarks/help-doc.html new file mode 100644 index 0000000000..09ba77f211 --- /dev/null +++ b/1.x/benchmarks/help-doc.html @@ -0,0 +1,231 @@ + + + + + + +API Help (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+ +This help file applies to API documentation generated using the standard doclet.
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/index-all.html b/1.x/benchmarks/index-all.html new file mode 100644 index 0000000000..5365034f9e --- /dev/null +++ b/1.x/benchmarks/index-all.html @@ -0,0 +1,977 @@ + + + + + + +Index (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
B C D G H I L M O R S T  + + +

B

+
+
Blackhole_jmh - Class in org.openjdk.jmh.infra.generated
+
 
+
Blackhole_jmh() - Constructor for class org.openjdk.jmh.infra.generated.Blackhole_jmh
+
 
+
Blackhole_jmh_B1 - Class in org.openjdk.jmh.infra.generated
+
 
+
Blackhole_jmh_B1() - Constructor for class org.openjdk.jmh.infra.generated.Blackhole_jmh_B1
+
 
+
Blackhole_jmh_B2 - Class in org.openjdk.jmh.infra.generated
+
 
+
Blackhole_jmh_B2() - Constructor for class org.openjdk.jmh.infra.generated.Blackhole_jmh_B2
+
 
+
Blackhole_jmh_B3 - Class in org.openjdk.jmh.infra.generated
+
 
+
Blackhole_jmh_B3() - Constructor for class org.openjdk.jmh.infra.generated.Blackhole_jmh_B3
+
 
+
BufferCursorSeekBenchmark - Class in com.squareup.okio.benchmarks
+
 
+
BufferCursorSeekBenchmark() - Constructor for class com.squareup.okio.benchmarks.BufferCursorSeekBenchmark
+
 
+
BufferCursorSeekBenchmark_jmh - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferCursorSeekBenchmark_jmh() - Constructor for class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh
+
 
+
BufferCursorSeekBenchmark_jmh_B1 - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferCursorSeekBenchmark_jmh_B1() - Constructor for class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B1
+
 
+
BufferCursorSeekBenchmark_jmh_B2 - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferCursorSeekBenchmark_jmh_B2() - Constructor for class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B2
+
 
+
BufferCursorSeekBenchmark_jmh_B3 - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferCursorSeekBenchmark_jmh_B3() - Constructor for class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B3
+
 
+
BufferCursorSeekBenchmark_seekBackward - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferCursorSeekBenchmark_seekBackward() - Constructor for class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBackward
+
 
+
BufferCursorSeekBenchmark_seekBeginning - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferCursorSeekBenchmark_seekBeginning() - Constructor for class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBeginning
+
 
+
BufferCursorSeekBenchmark_seekEnd - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferCursorSeekBenchmark_seekEnd() - Constructor for class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekEnd
+
 
+
BufferCursorSeekBenchmark_seekForward - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferCursorSeekBenchmark_seekForward() - Constructor for class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekForward
+
 
+
BufferPerformanceBenchmark - Class in com.squareup.okio.benchmarks
+
 
+
BufferPerformanceBenchmark() - Constructor for class com.squareup.okio.benchmarks.BufferPerformanceBenchmark
+
 
+
BufferPerformanceBenchmark.BufferSetup - Class in com.squareup.okio.benchmarks
+
 
+
BufferPerformanceBenchmark.BufferState - Class in com.squareup.okio.benchmarks
+
 
+
BufferPerformanceBenchmark.ColdBuffers - Class in com.squareup.okio.benchmarks
+
 
+
BufferPerformanceBenchmark.HotBuffers - Class in com.squareup.okio.benchmarks
+
 
+
BufferPerformanceBenchmark_cold - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferPerformanceBenchmark_cold() - Constructor for class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_cold
+
 
+
BufferPerformanceBenchmark_ColdBuffers_jmh - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferPerformanceBenchmark_ColdBuffers_jmh() - Constructor for class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh
+
 
+
BufferPerformanceBenchmark_ColdBuffers_jmh_B1 - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferPerformanceBenchmark_ColdBuffers_jmh_B1() - Constructor for class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B1
+
 
+
BufferPerformanceBenchmark_ColdBuffers_jmh_B2 - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferPerformanceBenchmark_ColdBuffers_jmh_B2() - Constructor for class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B2
+
 
+
BufferPerformanceBenchmark_ColdBuffers_jmh_B3 - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferPerformanceBenchmark_ColdBuffers_jmh_B3() - Constructor for class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B3
+
 
+
BufferPerformanceBenchmark_HotBuffers_jmh - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferPerformanceBenchmark_HotBuffers_jmh() - Constructor for class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh
+
 
+
BufferPerformanceBenchmark_HotBuffers_jmh_B1 - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferPerformanceBenchmark_HotBuffers_jmh_B1() - Constructor for class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B1
+
 
+
BufferPerformanceBenchmark_HotBuffers_jmh_B2 - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferPerformanceBenchmark_HotBuffers_jmh_B2() - Constructor for class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B2
+
 
+
BufferPerformanceBenchmark_HotBuffers_jmh_B3 - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferPerformanceBenchmark_HotBuffers_jmh_B3() - Constructor for class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B3
+
 
+
BufferPerformanceBenchmark_jmh - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferPerformanceBenchmark_jmh() - Constructor for class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh
+
 
+
BufferPerformanceBenchmark_jmh_B1 - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferPerformanceBenchmark_jmh_B1() - Constructor for class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B1
+
 
+
BufferPerformanceBenchmark_jmh_B2 - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferPerformanceBenchmark_jmh_B2() - Constructor for class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B2
+
 
+
BufferPerformanceBenchmark_jmh_B3 - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferPerformanceBenchmark_jmh_B3() - Constructor for class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B3
+
 
+
BufferPerformanceBenchmark_threads16hot - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferPerformanceBenchmark_threads16hot() - Constructor for class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads16hot
+
 
+
BufferPerformanceBenchmark_threads1hot - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferPerformanceBenchmark_threads1hot() - Constructor for class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads1hot
+
 
+
BufferPerformanceBenchmark_threads2hot - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferPerformanceBenchmark_threads2hot() - Constructor for class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads2hot
+
 
+
BufferPerformanceBenchmark_threads32hot - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferPerformanceBenchmark_threads32hot() - Constructor for class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads32hot
+
 
+
BufferPerformanceBenchmark_threads4hot - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferPerformanceBenchmark_threads4hot() - Constructor for class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads4hot
+
 
+
BufferPerformanceBenchmark_threads8hot - Class in com.squareup.okio.benchmarks.generated
+
 
+
BufferPerformanceBenchmark_threads8hot() - Constructor for class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads8hot
+
 
+
BufferSetup() - Constructor for class com.squareup.okio.benchmarks.BufferPerformanceBenchmark.BufferSetup
+
 
+
BufferState() - Constructor for class com.squareup.okio.benchmarks.BufferPerformanceBenchmark.BufferState
+
 
+
+ + + +

C

+
+
cold_AverageTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_cold
+
 
+
cold_SampleTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_cold
+
 
+
cold_SingleShotTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_cold
+
 
+
cold_Throughput(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_cold
+
 
+
ColdBuffers() - Constructor for class com.squareup.okio.benchmarks.BufferPerformanceBenchmark.ColdBuffers
+
 
+
com.squareup.okio.benchmarks - package com.squareup.okio.benchmarks
+
 
+
com.squareup.okio.benchmarks.generated - package com.squareup.okio.benchmarks.generated
+
 
+
+ + + +

D

+
+
dispose() - Method in class com.squareup.okio.benchmarks.BufferPerformanceBenchmark.BufferSetup
+
 
+
+ + + +

G

+
+
getByteBeginning() - Method in class com.squareup.okio.benchmarks.GetByteBenchmark
+
 
+
getByteBeginning_AverageTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteBeginning
+
 
+
getByteBeginning_avgt_jmhStub(InfraControl, RawResults, GetByteBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteBeginning
+
 
+
getByteBeginning_sample_jmhStub(InfraControl, SampleBuffer, int, long, int, GetByteBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteBeginning
+
 
+
getByteBeginning_SampleTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteBeginning
+
 
+
getByteBeginning_SingleShotTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteBeginning
+
 
+
getByteBeginning_ss_jmhStub(InfraControl, int, RawResults, GetByteBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteBeginning
+
 
+
getByteBeginning_Throughput(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteBeginning
+
 
+
getByteBeginning_thrpt_jmhStub(InfraControl, RawResults, GetByteBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteBeginning
+
 
+
GetByteBenchmark - Class in com.squareup.okio.benchmarks
+
 
+
GetByteBenchmark() - Constructor for class com.squareup.okio.benchmarks.GetByteBenchmark
+
 
+
GetByteBenchmark_getByteBeginning - Class in com.squareup.okio.benchmarks.generated
+
 
+
GetByteBenchmark_getByteBeginning() - Constructor for class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteBeginning
+
 
+
GetByteBenchmark_getByteEnd - Class in com.squareup.okio.benchmarks.generated
+
 
+
GetByteBenchmark_getByteEnd() - Constructor for class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteEnd
+
 
+
GetByteBenchmark_getByteMiddle - Class in com.squareup.okio.benchmarks.generated
+
 
+
GetByteBenchmark_getByteMiddle() - Constructor for class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteMiddle
+
 
+
GetByteBenchmark_jmh - Class in com.squareup.okio.benchmarks.generated
+
 
+
GetByteBenchmark_jmh() - Constructor for class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh
+
 
+
GetByteBenchmark_jmh_B1 - Class in com.squareup.okio.benchmarks.generated
+
 
+
GetByteBenchmark_jmh_B1() - Constructor for class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B1
+
 
+
GetByteBenchmark_jmh_B2 - Class in com.squareup.okio.benchmarks.generated
+
 
+
GetByteBenchmark_jmh_B2() - Constructor for class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B2
+
 
+
GetByteBenchmark_jmh_B3 - Class in com.squareup.okio.benchmarks.generated
+
 
+
GetByteBenchmark_jmh_B3() - Constructor for class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B3
+
 
+
getByteEnd() - Method in class com.squareup.okio.benchmarks.GetByteBenchmark
+
 
+
getByteEnd_AverageTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteEnd
+
 
+
getByteEnd_avgt_jmhStub(InfraControl, RawResults, GetByteBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteEnd
+
 
+
getByteEnd_sample_jmhStub(InfraControl, SampleBuffer, int, long, int, GetByteBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteEnd
+
 
+
getByteEnd_SampleTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteEnd
+
 
+
getByteEnd_SingleShotTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteEnd
+
 
+
getByteEnd_ss_jmhStub(InfraControl, int, RawResults, GetByteBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteEnd
+
 
+
getByteEnd_Throughput(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteEnd
+
 
+
getByteEnd_thrpt_jmhStub(InfraControl, RawResults, GetByteBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteEnd
+
 
+
getByteMiddle() - Method in class com.squareup.okio.benchmarks.GetByteBenchmark
+
 
+
getByteMiddle_AverageTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteMiddle
+
 
+
getByteMiddle_avgt_jmhStub(InfraControl, RawResults, GetByteBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteMiddle
+
 
+
getByteMiddle_sample_jmhStub(InfraControl, SampleBuffer, int, long, int, GetByteBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteMiddle
+
 
+
getByteMiddle_SampleTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteMiddle
+
 
+
getByteMiddle_SingleShotTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteMiddle
+
 
+
getByteMiddle_ss_jmhStub(InfraControl, int, RawResults, GetByteBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteMiddle
+
 
+
getByteMiddle_Throughput(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteMiddle
+
 
+
getByteMiddle_thrpt_jmhStub(InfraControl, RawResults, GetByteBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_getByteMiddle
+
 
+
+ + + +

H

+
+
HotBuffers() - Constructor for class com.squareup.okio.benchmarks.BufferPerformanceBenchmark.HotBuffers
+
 
+
+ + + +

I

+
+
indexOfByte() - Method in class com.squareup.okio.benchmarks.IndexOfElementBenchmark
+
 
+
indexOfByte_AverageTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByte
+
 
+
indexOfByte_avgt_jmhStub(InfraControl, RawResults, IndexOfElementBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByte
+
 
+
indexOfByte_sample_jmhStub(InfraControl, SampleBuffer, int, long, int, IndexOfElementBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByte
+
 
+
indexOfByte_SampleTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByte
+
 
+
indexOfByte_SingleShotTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByte
+
 
+
indexOfByte_ss_jmhStub(InfraControl, int, RawResults, IndexOfElementBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByte
+
 
+
indexOfByte_Throughput(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByte
+
 
+
indexOfByte_thrpt_jmhStub(InfraControl, RawResults, IndexOfElementBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByte
+
 
+
indexOfByteString() - Method in class com.squareup.okio.benchmarks.IndexOfElementBenchmark
+
 
+
indexOfByteString_AverageTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByteString
+
 
+
indexOfByteString_avgt_jmhStub(InfraControl, RawResults, IndexOfElementBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByteString
+
 
+
indexOfByteString_sample_jmhStub(InfraControl, SampleBuffer, int, long, int, IndexOfElementBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByteString
+
 
+
indexOfByteString_SampleTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByteString
+
 
+
indexOfByteString_SingleShotTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByteString
+
 
+
indexOfByteString_ss_jmhStub(InfraControl, int, RawResults, IndexOfElementBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByteString
+
 
+
indexOfByteString_Throughput(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByteString
+
 
+
indexOfByteString_thrpt_jmhStub(InfraControl, RawResults, IndexOfElementBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByteString
+
 
+
indexOfElement() - Method in class com.squareup.okio.benchmarks.IndexOfElementBenchmark
+
 
+
indexOfElement_AverageTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfElement
+
 
+
indexOfElement_avgt_jmhStub(InfraControl, RawResults, IndexOfElementBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfElement
+
 
+
indexOfElement_sample_jmhStub(InfraControl, SampleBuffer, int, long, int, IndexOfElementBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfElement
+
 
+
indexOfElement_SampleTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfElement
+
 
+
indexOfElement_SingleShotTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfElement
+
 
+
indexOfElement_ss_jmhStub(InfraControl, int, RawResults, IndexOfElementBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfElement
+
 
+
indexOfElement_Throughput(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfElement
+
 
+
indexOfElement_thrpt_jmhStub(InfraControl, RawResults, IndexOfElementBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfElement
+
 
+
IndexOfElementBenchmark - Class in com.squareup.okio.benchmarks
+
 
+
IndexOfElementBenchmark() - Constructor for class com.squareup.okio.benchmarks.IndexOfElementBenchmark
+
 
+
IndexOfElementBenchmark_indexOfByte - Class in com.squareup.okio.benchmarks.generated
+
 
+
IndexOfElementBenchmark_indexOfByte() - Constructor for class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByte
+
 
+
IndexOfElementBenchmark_indexOfByteString - Class in com.squareup.okio.benchmarks.generated
+
 
+
IndexOfElementBenchmark_indexOfByteString() - Constructor for class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfByteString
+
 
+
IndexOfElementBenchmark_indexOfElement - Class in com.squareup.okio.benchmarks.generated
+
 
+
IndexOfElementBenchmark_indexOfElement() - Constructor for class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_indexOfElement
+
 
+
IndexOfElementBenchmark_jmh - Class in com.squareup.okio.benchmarks.generated
+
 
+
IndexOfElementBenchmark_jmh() - Constructor for class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh
+
 
+
IndexOfElementBenchmark_jmh_B1 - Class in com.squareup.okio.benchmarks.generated
+
 
+
IndexOfElementBenchmark_jmh_B1() - Constructor for class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B1
+
 
+
IndexOfElementBenchmark_jmh_B2 - Class in com.squareup.okio.benchmarks.generated
+
 
+
IndexOfElementBenchmark_jmh_B2() - Constructor for class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B2
+
 
+
IndexOfElementBenchmark_jmh_B3 - Class in com.squareup.okio.benchmarks.generated
+
 
+
IndexOfElementBenchmark_jmh_B3() - Constructor for class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B3
+
 
+
+ + + +

L

+
+
lag() - Method in class com.squareup.okio.benchmarks.BufferPerformanceBenchmark.ColdBuffers
+
 
+
+ + + +

M

+
+
main(String[]) - Static method in class com.squareup.okio.benchmarks.BufferCursorSeekBenchmark
+
 
+
main(String[]) - Static method in class com.squareup.okio.benchmarks.GetByteBenchmark
+
 
+
main(String[]) - Static method in class com.squareup.okio.benchmarks.IndexOfElementBenchmark
+
 
+
+ + + +

O

+
+
org.openjdk.jmh.infra.generated - package org.openjdk.jmh.infra.generated
+
 
+
OriginPath - Static variable in class com.squareup.okio.benchmarks.BufferPerformanceBenchmark
+
 
+
+ + + +

R

+
+
readyInvocation - Variable in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B2
+
 
+
readyInvocation - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B2
+
 
+
readyInvocation - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B2
+
 
+
readyInvocation - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B2
+
 
+
readyInvocation - Variable in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B2
+
 
+
readyInvocation - Variable in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B2
+
 
+
readyInvocation - Variable in class org.openjdk.jmh.infra.generated.Blackhole_jmh_B2
+
 
+
readyIteration - Variable in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B2
+
 
+
readyIteration - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B2
+
 
+
readyIteration - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B2
+
 
+
readyIteration - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B2
+
 
+
readyIteration - Variable in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B2
+
 
+
readyIteration - Variable in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B2
+
 
+
readyIteration - Variable in class org.openjdk.jmh.infra.generated.Blackhole_jmh_B2
+
 
+
readyTrial - Variable in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B2
+
 
+
readyTrial - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B2
+
 
+
readyTrial - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B2
+
 
+
readyTrial - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B2
+
 
+
readyTrial - Variable in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B2
+
 
+
readyTrial - Variable in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B2
+
 
+
readyTrial - Variable in class org.openjdk.jmh.infra.generated.Blackhole_jmh_B2
+
 
+
receive(byte[]) - Method in class com.squareup.okio.benchmarks.BufferPerformanceBenchmark.BufferSetup
+
 
+
receive(byte[], int) - Method in class com.squareup.okio.benchmarks.BufferPerformanceBenchmark.BufferState
+
+
Fills up the receive buffer, hands off to process buffer and returns it for consuming.
+
+
releaseBuffers() - Method in class com.squareup.okio.benchmarks.BufferPerformanceBenchmark.BufferState
+
 
+
+ + + +

S

+
+
seekBackward() - Method in class com.squareup.okio.benchmarks.BufferCursorSeekBenchmark
+
 
+
seekBackward_AverageTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBackward
+
 
+
seekBackward_avgt_jmhStub(InfraControl, RawResults, BufferCursorSeekBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBackward
+
 
+
seekBackward_sample_jmhStub(InfraControl, SampleBuffer, int, long, int, BufferCursorSeekBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBackward
+
 
+
seekBackward_SampleTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBackward
+
 
+
seekBackward_SingleShotTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBackward
+
 
+
seekBackward_ss_jmhStub(InfraControl, int, RawResults, BufferCursorSeekBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBackward
+
 
+
seekBackward_Throughput(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBackward
+
 
+
seekBackward_thrpt_jmhStub(InfraControl, RawResults, BufferCursorSeekBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBackward
+
 
+
seekBeginning() - Method in class com.squareup.okio.benchmarks.BufferCursorSeekBenchmark
+
 
+
seekBeginning_AverageTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBeginning
+
 
+
seekBeginning_avgt_jmhStub(InfraControl, RawResults, BufferCursorSeekBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBeginning
+
 
+
seekBeginning_sample_jmhStub(InfraControl, SampleBuffer, int, long, int, BufferCursorSeekBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBeginning
+
 
+
seekBeginning_SampleTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBeginning
+
 
+
seekBeginning_SingleShotTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBeginning
+
 
+
seekBeginning_ss_jmhStub(InfraControl, int, RawResults, BufferCursorSeekBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBeginning
+
 
+
seekBeginning_Throughput(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBeginning
+
 
+
seekBeginning_thrpt_jmhStub(InfraControl, RawResults, BufferCursorSeekBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekBeginning
+
 
+
seekEnd() - Method in class com.squareup.okio.benchmarks.BufferCursorSeekBenchmark
+
 
+
seekEnd_AverageTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekEnd
+
 
+
seekEnd_avgt_jmhStub(InfraControl, RawResults, BufferCursorSeekBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekEnd
+
 
+
seekEnd_sample_jmhStub(InfraControl, SampleBuffer, int, long, int, BufferCursorSeekBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekEnd
+
 
+
seekEnd_SampleTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekEnd
+
 
+
seekEnd_SingleShotTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekEnd
+
 
+
seekEnd_ss_jmhStub(InfraControl, int, RawResults, BufferCursorSeekBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekEnd
+
 
+
seekEnd_Throughput(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekEnd
+
 
+
seekEnd_thrpt_jmhStub(InfraControl, RawResults, BufferCursorSeekBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekEnd
+
 
+
seekForward() - Method in class com.squareup.okio.benchmarks.BufferCursorSeekBenchmark
+
 
+
seekForward_AverageTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekForward
+
 
+
seekForward_avgt_jmhStub(InfraControl, RawResults, BufferCursorSeekBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekForward
+
 
+
seekForward_sample_jmhStub(InfraControl, SampleBuffer, int, long, int, BufferCursorSeekBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekForward
+
 
+
seekForward_SampleTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekForward
+
 
+
seekForward_SingleShotTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekForward
+
 
+
seekForward_ss_jmhStub(InfraControl, int, RawResults, BufferCursorSeekBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekForward
+
 
+
seekForward_Throughput(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekForward
+
 
+
seekForward_thrpt_jmhStub(InfraControl, RawResults, BufferCursorSeekBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_seekForward
+
 
+
setup() - Method in class com.squareup.okio.benchmarks.BufferCursorSeekBenchmark
+
 
+
setup() - Method in class com.squareup.okio.benchmarks.GetByteBenchmark
+
 
+
setup() - Method in class com.squareup.okio.benchmarks.IndexOfElementBenchmark
+
 
+
setupBench(BufferPerformanceBenchmark) - Method in class com.squareup.okio.benchmarks.BufferPerformanceBenchmark.ColdBuffers
+
 
+
setupBench(BufferPerformanceBenchmark) - Method in class com.squareup.okio.benchmarks.BufferPerformanceBenchmark.HotBuffers
+
 
+
setupInvocationMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B2
+
 
+
setupInvocationMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B2
+
 
+
setupInvocationMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B2
+
 
+
setupInvocationMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B2
+
 
+
setupInvocationMutex - Variable in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B2
+
 
+
setupInvocationMutex - Variable in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B2
+
 
+
setupInvocationMutex - Variable in class org.openjdk.jmh.infra.generated.Blackhole_jmh_B2
+
 
+
setupInvocationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B2
+
 
+
setupInvocationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B2
+
 
+
setupInvocationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B2
+
 
+
setupInvocationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B2
+
 
+
setupInvocationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B2
+
 
+
setupInvocationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B2
+
 
+
setupInvocationMutexUpdater - Static variable in class org.openjdk.jmh.infra.generated.Blackhole_jmh_B2
+
 
+
setupIterationMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B2
+
 
+
setupIterationMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B2
+
 
+
setupIterationMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B2
+
 
+
setupIterationMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B2
+
 
+
setupIterationMutex - Variable in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B2
+
 
+
setupIterationMutex - Variable in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B2
+
 
+
setupIterationMutex - Variable in class org.openjdk.jmh.infra.generated.Blackhole_jmh_B2
+
 
+
setupIterationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B2
+
 
+
setupIterationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B2
+
 
+
setupIterationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B2
+
 
+
setupIterationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B2
+
 
+
setupIterationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B2
+
 
+
setupIterationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B2
+
 
+
setupIterationMutexUpdater - Static variable in class org.openjdk.jmh.infra.generated.Blackhole_jmh_B2
+
 
+
setupTrialMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B2
+
 
+
setupTrialMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B2
+
 
+
setupTrialMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B2
+
 
+
setupTrialMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B2
+
 
+
setupTrialMutex - Variable in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B2
+
 
+
setupTrialMutex - Variable in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B2
+
 
+
setupTrialMutex - Variable in class org.openjdk.jmh.infra.generated.Blackhole_jmh_B2
+
 
+
setupTrialMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B2
+
 
+
setupTrialMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B2
+
 
+
setupTrialMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B2
+
 
+
setupTrialMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B2
+
 
+
setupTrialMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B2
+
 
+
setupTrialMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B2
+
 
+
setupTrialMutexUpdater - Static variable in class org.openjdk.jmh.infra.generated.Blackhole_jmh_B2
+
 
+
storeRequestResponseData() - Method in class com.squareup.okio.benchmarks.BufferPerformanceBenchmark
+
 
+
+ + + +

T

+
+
tearInvocationMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B2
+
 
+
tearInvocationMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B2
+
 
+
tearInvocationMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B2
+
 
+
tearInvocationMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B2
+
 
+
tearInvocationMutex - Variable in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B2
+
 
+
tearInvocationMutex - Variable in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B2
+
 
+
tearInvocationMutex - Variable in class org.openjdk.jmh.infra.generated.Blackhole_jmh_B2
+
 
+
tearInvocationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B2
+
 
+
tearInvocationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B2
+
 
+
tearInvocationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B2
+
 
+
tearInvocationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B2
+
 
+
tearInvocationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B2
+
 
+
tearInvocationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B2
+
 
+
tearInvocationMutexUpdater - Static variable in class org.openjdk.jmh.infra.generated.Blackhole_jmh_B2
+
 
+
tearIterationMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B2
+
 
+
tearIterationMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B2
+
 
+
tearIterationMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B2
+
 
+
tearIterationMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B2
+
 
+
tearIterationMutex - Variable in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B2
+
 
+
tearIterationMutex - Variable in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B2
+
 
+
tearIterationMutex - Variable in class org.openjdk.jmh.infra.generated.Blackhole_jmh_B2
+
 
+
tearIterationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B2
+
 
+
tearIterationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B2
+
 
+
tearIterationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B2
+
 
+
tearIterationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B2
+
 
+
tearIterationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B2
+
 
+
tearIterationMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B2
+
 
+
tearIterationMutexUpdater - Static variable in class org.openjdk.jmh.infra.generated.Blackhole_jmh_B2
+
 
+
tearTrialMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B2
+
 
+
tearTrialMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B2
+
 
+
tearTrialMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B2
+
 
+
tearTrialMutex - Variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B2
+
 
+
tearTrialMutex - Variable in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B2
+
 
+
tearTrialMutex - Variable in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B2
+
 
+
tearTrialMutex - Variable in class org.openjdk.jmh.infra.generated.Blackhole_jmh_B2
+
 
+
tearTrialMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferCursorSeekBenchmark_jmh_B2
+
 
+
tearTrialMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_ColdBuffers_jmh_B2
+
 
+
tearTrialMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_HotBuffers_jmh_B2
+
 
+
tearTrialMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_jmh_B2
+
 
+
tearTrialMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.GetByteBenchmark_jmh_B2
+
 
+
tearTrialMutexUpdater - Static variable in class com.squareup.okio.benchmarks.generated.IndexOfElementBenchmark_jmh_B2
+
 
+
tearTrialMutexUpdater - Static variable in class org.openjdk.jmh.infra.generated.Blackhole_jmh_B2
+
 
+
thinkReadHot(BufferPerformanceBenchmark.HotBuffers) - Method in class com.squareup.okio.benchmarks.BufferPerformanceBenchmark
+
 
+
thinkReadHot_avgt_jmhStub(InfraControl, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_cold
+
 
+
thinkReadHot_sample_jmhStub(InfraControl, SampleBuffer, int, long, int, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_cold
+
 
+
thinkReadHot_ss_jmhStub(InfraControl, int, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_cold
+
 
+
thinkReadHot_thrpt_jmhStub(InfraControl, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_cold
+
 
+
thinkWriteCold(BufferPerformanceBenchmark.ColdBuffers) - Method in class com.squareup.okio.benchmarks.BufferPerformanceBenchmark
+
 
+
thinkWriteCold_avgt_jmhStub(InfraControl, RawResults, BufferPerformanceBenchmark_ColdBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_cold
+
 
+
thinkWriteCold_sample_jmhStub(InfraControl, SampleBuffer, int, long, int, BufferPerformanceBenchmark_ColdBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_cold
+
 
+
thinkWriteCold_ss_jmhStub(InfraControl, int, RawResults, BufferPerformanceBenchmark_ColdBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_cold
+
 
+
thinkWriteCold_thrpt_jmhStub(InfraControl, RawResults, BufferPerformanceBenchmark_ColdBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_cold
+
 
+
threads16hot(BufferPerformanceBenchmark.HotBuffers) - Method in class com.squareup.okio.benchmarks.BufferPerformanceBenchmark
+
 
+
threads16hot_AverageTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads16hot
+
 
+
threads16hot_avgt_jmhStub(InfraControl, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads16hot
+
 
+
threads16hot_sample_jmhStub(InfraControl, SampleBuffer, int, long, int, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads16hot
+
 
+
threads16hot_SampleTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads16hot
+
 
+
threads16hot_SingleShotTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads16hot
+
 
+
threads16hot_ss_jmhStub(InfraControl, int, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads16hot
+
 
+
threads16hot_Throughput(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads16hot
+
 
+
threads16hot_thrpt_jmhStub(InfraControl, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads16hot
+
 
+
threads1hot(BufferPerformanceBenchmark.HotBuffers) - Method in class com.squareup.okio.benchmarks.BufferPerformanceBenchmark
+
 
+
threads1hot_AverageTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads1hot
+
 
+
threads1hot_avgt_jmhStub(InfraControl, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads1hot
+
 
+
threads1hot_sample_jmhStub(InfraControl, SampleBuffer, int, long, int, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads1hot
+
 
+
threads1hot_SampleTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads1hot
+
 
+
threads1hot_SingleShotTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads1hot
+
 
+
threads1hot_ss_jmhStub(InfraControl, int, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads1hot
+
 
+
threads1hot_Throughput(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads1hot
+
 
+
threads1hot_thrpt_jmhStub(InfraControl, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads1hot
+
 
+
threads2hot(BufferPerformanceBenchmark.HotBuffers) - Method in class com.squareup.okio.benchmarks.BufferPerformanceBenchmark
+
 
+
threads2hot_AverageTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads2hot
+
 
+
threads2hot_avgt_jmhStub(InfraControl, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads2hot
+
 
+
threads2hot_sample_jmhStub(InfraControl, SampleBuffer, int, long, int, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads2hot
+
 
+
threads2hot_SampleTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads2hot
+
 
+
threads2hot_SingleShotTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads2hot
+
 
+
threads2hot_ss_jmhStub(InfraControl, int, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads2hot
+
 
+
threads2hot_Throughput(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads2hot
+
 
+
threads2hot_thrpt_jmhStub(InfraControl, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads2hot
+
 
+
threads32hot(BufferPerformanceBenchmark.HotBuffers) - Method in class com.squareup.okio.benchmarks.BufferPerformanceBenchmark
+
 
+
threads32hot_AverageTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads32hot
+
 
+
threads32hot_avgt_jmhStub(InfraControl, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads32hot
+
 
+
threads32hot_sample_jmhStub(InfraControl, SampleBuffer, int, long, int, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads32hot
+
 
+
threads32hot_SampleTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads32hot
+
 
+
threads32hot_SingleShotTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads32hot
+
 
+
threads32hot_ss_jmhStub(InfraControl, int, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads32hot
+
 
+
threads32hot_Throughput(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads32hot
+
 
+
threads32hot_thrpt_jmhStub(InfraControl, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads32hot
+
 
+
threads4hot(BufferPerformanceBenchmark.HotBuffers) - Method in class com.squareup.okio.benchmarks.BufferPerformanceBenchmark
+
 
+
threads4hot_AverageTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads4hot
+
 
+
threads4hot_avgt_jmhStub(InfraControl, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads4hot
+
 
+
threads4hot_sample_jmhStub(InfraControl, SampleBuffer, int, long, int, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads4hot
+
 
+
threads4hot_SampleTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads4hot
+
 
+
threads4hot_SingleShotTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads4hot
+
 
+
threads4hot_ss_jmhStub(InfraControl, int, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads4hot
+
 
+
threads4hot_Throughput(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads4hot
+
 
+
threads4hot_thrpt_jmhStub(InfraControl, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads4hot
+
 
+
threads8hot(BufferPerformanceBenchmark.HotBuffers) - Method in class com.squareup.okio.benchmarks.BufferPerformanceBenchmark
+
 
+
threads8hot_AverageTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads8hot
+
 
+
threads8hot_avgt_jmhStub(InfraControl, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads8hot
+
 
+
threads8hot_sample_jmhStub(InfraControl, SampleBuffer, int, long, int, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads8hot
+
 
+
threads8hot_SampleTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads8hot
+
 
+
threads8hot_SingleShotTime(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads8hot
+
 
+
threads8hot_ss_jmhStub(InfraControl, int, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads8hot
+
 
+
threads8hot_Throughput(InfraControl, ThreadParams) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads8hot
+
 
+
threads8hot_thrpt_jmhStub(InfraControl, RawResults, BufferPerformanceBenchmark_HotBuffers_jmh, BufferPerformanceBenchmark_jmh, Blackhole_jmh) - Method in class com.squareup.okio.benchmarks.generated.BufferPerformanceBenchmark_threads8hot
+
 
+
transmit(byte[]) - Method in class com.squareup.okio.benchmarks.BufferPerformanceBenchmark.BufferSetup
+
 
+
transmit(byte[], int) - Method in class com.squareup.okio.benchmarks.BufferPerformanceBenchmark.BufferState
+
+
Fills up the process buffer, hands off to send buffer and returns it for consuming.
+
+
+B C D G H I L M O R S T 
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/index.html b/1.x/benchmarks/index.html new file mode 100644 index 0000000000..43cfa89b63 --- /dev/null +++ b/1.x/benchmarks/index.html @@ -0,0 +1,76 @@ + + + + + + +Okio Performance Benchmarks 1.16.0 API + + + + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> + + + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh.html new file mode 100644 index 0000000000..b717693122 --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh.html @@ -0,0 +1,569 @@ + + + + + + +Blackhole_jmh (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
org.openjdk.jmh.infra.generated
+

Class Blackhole_jmh

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh_B1.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh_B1.html new file mode 100644 index 0000000000..2507759d68 --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh_B1.html @@ -0,0 +1,551 @@ + + + + + + +Blackhole_jmh_B1 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
org.openjdk.jmh.infra.generated
+

Class Blackhole_jmh_B1

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh_B2.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh_B2.html new file mode 100644 index 0000000000..5b08e05538 --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh_B2.html @@ -0,0 +1,751 @@ + + + + + + +Blackhole_jmh_B2 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
org.openjdk.jmh.infra.generated
+

Class Blackhole_jmh_B2

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh_B3.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh_B3.html new file mode 100644 index 0000000000..0ce74349eb --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh_B3.html @@ -0,0 +1,568 @@ + + + + + + +Blackhole_jmh_B3 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
org.openjdk.jmh.infra.generated
+

Class Blackhole_jmh_B3

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh.html new file mode 100644 index 0000000000..ce1180b08d --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh.html @@ -0,0 +1,770 @@ + + + + + + +Uses of Class org.openjdk.jmh.infra.generated.Blackhole_jmh (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
org.openjdk.jmh.infra.generated.Blackhole_jmh

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh_B1.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh_B1.html new file mode 100644 index 0000000000..0d73ebe503 --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh_B1.html @@ -0,0 +1,174 @@ + + + + + + +Uses of Class org.openjdk.jmh.infra.generated.Blackhole_jmh_B1 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
org.openjdk.jmh.infra.generated.Blackhole_jmh_B1

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh_B2.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh_B2.html new file mode 100644 index 0000000000..f1d7720872 --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh_B2.html @@ -0,0 +1,203 @@ + + + + + + +Uses of Class org.openjdk.jmh.infra.generated.Blackhole_jmh_B2 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
org.openjdk.jmh.infra.generated.Blackhole_jmh_B2

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh_B3.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh_B3.html new file mode 100644 index 0000000000..f0d5fba5f7 --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh_B3.html @@ -0,0 +1,166 @@ + + + + + + +Uses of Class org.openjdk.jmh.infra.generated.Blackhole_jmh_B3 (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
org.openjdk.jmh.infra.generated.Blackhole_jmh_B3

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-frame.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-frame.html new file mode 100644 index 0000000000..55a4490835 --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-frame.html @@ -0,0 +1,24 @@ + + + + + + +org.openjdk.jmh.infra.generated (Okio Performance Benchmarks 1.16.0 API) + + + + + +

org.openjdk.jmh.infra.generated

+
+

Classes

+ +
+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-summary.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-summary.html new file mode 100644 index 0000000000..81ed1d9663 --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-summary.html @@ -0,0 +1,156 @@ + + + + + + +org.openjdk.jmh.infra.generated (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package org.openjdk.jmh.infra.generated

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-tree.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-tree.html new file mode 100644 index 0000000000..d4e863db2a --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-tree.html @@ -0,0 +1,155 @@ + + + + + + +org.openjdk.jmh.infra.generated Class Hierarchy (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package org.openjdk.jmh.infra.generated

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-use.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-use.html new file mode 100644 index 0000000000..9eb7827246 --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-use.html @@ -0,0 +1,184 @@ + + + + + + +Uses of Package org.openjdk.jmh.infra.generated (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
org.openjdk.jmh.infra.generated

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/overview-frame.html b/1.x/benchmarks/overview-frame.html new file mode 100644 index 0000000000..e6ad46b1ff --- /dev/null +++ b/1.x/benchmarks/overview-frame.html @@ -0,0 +1,24 @@ + + + + + + +Overview List (Okio Performance Benchmarks 1.16.0 API) + + + + + +
All Classes
+
+

Packages

+ +
+

 

+ + diff --git a/1.x/benchmarks/overview-summary.html b/1.x/benchmarks/overview-summary.html new file mode 100644 index 0000000000..8120f29727 --- /dev/null +++ b/1.x/benchmarks/overview-summary.html @@ -0,0 +1,148 @@ + + + + + + +Overview (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Okio Performance Benchmarks 1.16.0 API

+
+
+ + + + + + + + + + + + + + + + + + + + +
Packages 
PackageDescription
com.squareup.okio.benchmarks 
com.squareup.okio.benchmarks.generated 
org.openjdk.jmh.infra.generated 
+
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/overview-tree.html b/1.x/benchmarks/overview-tree.html new file mode 100644 index 0000000000..3f6abfdf77 --- /dev/null +++ b/1.x/benchmarks/overview-tree.html @@ -0,0 +1,284 @@ + + + + + + +Class Hierarchy (Okio Performance Benchmarks 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For All Packages

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/benchmarks/package-list b/1.x/benchmarks/package-list new file mode 100644 index 0000000000..5518c18064 --- /dev/null +++ b/1.x/benchmarks/package-list @@ -0,0 +1,3 @@ +com.squareup.okio.benchmarks +com.squareup.okio.benchmarks.generated +org.openjdk.jmh.infra.generated diff --git a/1.x/benchmarks/script.js b/1.x/benchmarks/script.js new file mode 100644 index 0000000000..b346356931 --- /dev/null +++ b/1.x/benchmarks/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/1.x/benchmarks/stylesheet.css b/1.x/benchmarks/stylesheet.css new file mode 100644 index 0000000000..8841f37c43 --- /dev/null +++ b/1.x/benchmarks/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/1.x/benchmarks/version.txt b/1.x/benchmarks/version.txt new file mode 100644 index 0000000000..15b989e398 --- /dev/null +++ b/1.x/benchmarks/version.txt @@ -0,0 +1 @@ +1.16.0 diff --git a/1.x/index.html b/1.x/index.html new file mode 100644 index 0000000000..a8001e4e9b --- /dev/null +++ b/1.x/index.html @@ -0,0 +1,10 @@ + +com.squareup.okio + +

com.squareup.okio

+ + + diff --git a/1.x/okio/META-INF/MANIFEST.MF b/1.x/okio/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..1a12ffb44d --- /dev/null +++ b/1.x/okio/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_162 + diff --git a/1.x/okio/allclasses-frame.html b/1.x/okio/allclasses-frame.html new file mode 100644 index 0000000000..7ec761acf6 --- /dev/null +++ b/1.x/okio/allclasses-frame.html @@ -0,0 +1,41 @@ + + + + + + +All Classes (Okio 1.15.0 API) + + + + + +

All Classes

+
+ +
+ + diff --git a/1.x/okio/allclasses-noframe.html b/1.x/okio/allclasses-noframe.html new file mode 100644 index 0000000000..51b79a3cc9 --- /dev/null +++ b/1.x/okio/allclasses-noframe.html @@ -0,0 +1,41 @@ + + + + + + +All Classes (Okio 1.15.0 API) + + + + + +

All Classes

+
+ +
+ + diff --git a/1.x/okio/constant-values.html b/1.x/okio/constant-values.html new file mode 100644 index 0000000000..82a8cd4f04 --- /dev/null +++ b/1.x/okio/constant-values.html @@ -0,0 +1,124 @@ + + + + + + +Constant Field Values (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Constant Field Values

+

Contents

+
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/deprecated-list.html b/1.x/okio/deprecated-list.html new file mode 100644 index 0000000000..18070abc0e --- /dev/null +++ b/1.x/okio/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Deprecated List (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/help-doc.html b/1.x/okio/help-doc.html new file mode 100644 index 0000000000..b447d49312 --- /dev/null +++ b/1.x/okio/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +API Help (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+ +This help file applies to API documentation generated using the standard doclet.
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/index-all.html b/1.x/okio/index-all.html new file mode 100644 index 0000000000..8a850d08ff --- /dev/null +++ b/1.x/okio/index-all.html @@ -0,0 +1,1396 @@ + + + + + + +Index (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I L M N O P R S T U W  + + +

A

+
+
appendingSink(File) - Static method in class okio.Okio
+
+
Returns a sink that appends to file.
+
+
asByteBuffer() - Method in class okio.ByteString
+
+
Returns a ByteBuffer view of the bytes in this ByteString.
+
+
AsyncTimeout - Class in okio
+
+
This timeout uses a background thread to take action exactly when the timeout occurs.
+
+
AsyncTimeout() - Constructor for class okio.AsyncTimeout
+
 
+
+ + + +

B

+
+
base64() - Method in class okio.ByteString
+
+
Returns this byte string encoded as Base64.
+
+
base64Url() - Method in class okio.ByteString
+
+
Returns this byte string encoded as URL-safe + Base64.
+
+
blackhole() - Static method in class okio.Okio
+
+
Returns a sink that writes nowhere.
+
+
Buffer - Class in okio
+
+
A collection of bytes in memory.
+
+
Buffer() - Constructor for class okio.Buffer
+
 
+
buffer() - Method in class okio.Buffer
+
 
+
buffer - Variable in class okio.Buffer.UnsafeCursor
+
 
+
buffer() - Method in interface okio.BufferedSink
+
+
Returns this sink's internal buffer.
+
+
buffer() - Method in interface okio.BufferedSource
+
+
Returns this source's internal buffer.
+
+
buffer(Source) - Static method in class okio.Okio
+
+
Returns a new source that buffers reads from source.
+
+
buffer(Sink) - Static method in class okio.Okio
+
+
Returns a new sink that buffers writes to sink.
+
+
Buffer.UnsafeCursor - Class in okio
+
+
A handle to the underlying data in a buffer.
+
+
BufferedSink - Interface in okio
+
+
A sink that keeps a buffer internally so that callers can do small writes + without a performance penalty.
+
+
BufferedSource - Interface in okio
+
+
A source that keeps a buffer internally so that callers can do small reads without a performance + penalty.
+
+
ByteString - Class in okio
+
+
An immutable sequence of bytes.
+
+
+ + + +

C

+
+
clear() - Method in class okio.Buffer
+
+
Discards all bytes in this buffer.
+
+
clearDeadline() - Method in class okio.ForwardingTimeout
+
 
+
clearDeadline() - Method in class okio.Timeout
+
+
Clears the deadline.
+
+
clearTimeout() - Method in class okio.ForwardingTimeout
+
 
+
clearTimeout() - Method in class okio.Timeout
+
+
Clears the timeout.
+
+
clone() - Method in class okio.Buffer
+
+
Returns a deep copy of this buffer.
+
+
close() - Method in class okio.Buffer
+
 
+
close() - Method in class okio.Buffer.UnsafeCursor
+
 
+
close() - Method in class okio.DeflaterSink
+
 
+
close() - Method in class okio.ForwardingSink
+
 
+
close() - Method in class okio.ForwardingSource
+
 
+
close() - Method in class okio.GzipSink
+
 
+
close() - Method in class okio.GzipSource
+
 
+
close() - Method in class okio.InflaterSource
+
 
+
close() - Method in interface okio.Sink
+
+
Pushes all buffered bytes to their final destination and releases the + resources held by this sink.
+
+
close() - Method in interface okio.Source
+
+
Closes this source and releases the resources held by this source.
+
+
compareTo(ByteString) - Method in class okio.ByteString
+
 
+
completeSegmentByteCount() - Method in class okio.Buffer
+
+
Returns the number of bytes in segments that are not writable.
+
+
copyTo(OutputStream) - Method in class okio.Buffer
+
+
Copy the contents of this to out.
+
+
copyTo(OutputStream, long, long) - Method in class okio.Buffer
+
+
Copy byteCount bytes from this, starting at offset, to + out.
+
+
copyTo(Buffer, long, long) - Method in class okio.Buffer
+
+
Copy byteCount bytes from this, starting at offset, to out.
+
+
+ + + +

D

+
+
data - Variable in class okio.Buffer.UnsafeCursor
+
 
+
deadline(long, TimeUnit) - Method in class okio.Timeout
+
+
Set a deadline of now plus duration time.
+
+
deadlineNanoTime() - Method in class okio.ForwardingTimeout
+
 
+
deadlineNanoTime(long) - Method in class okio.ForwardingTimeout
+
 
+
deadlineNanoTime() - Method in class okio.Timeout
+
+
Returns the nano time when the deadline will + be reached.
+
+
deadlineNanoTime(long) - Method in class okio.Timeout
+
+
Sets the nano time when the deadline will be + reached.
+
+
decodeBase64(String) - Static method in class okio.ByteString
+
+
Decodes the Base64-encoded bytes and returns their value as a byte string.
+
+
decodeHex(String) - Static method in class okio.ByteString
+
+
Decodes the hex-encoded bytes and returns their value a byte string.
+
+
deflater() - Method in class okio.GzipSink
+
+
Returns the Deflater.
+
+
DeflaterSink - Class in okio
+
+
A sink that uses DEFLATE to + compress data written to another source.
+
+
DeflaterSink(Sink, Deflater) - Constructor for class okio.DeflaterSink
+
 
+
delegate() - Method in class okio.ForwardingSink
+
+
Sink to which this instance is delegating.
+
+
delegate() - Method in class okio.ForwardingSource
+
+
Source to which this instance is delegating.
+
+
delegate() - Method in class okio.ForwardingTimeout
+
+
Timeout instance to which this instance is currently delegating.
+
+
+ + + +

E

+
+
emit() - Method in class okio.Buffer
+
 
+
emit() - Method in interface okio.BufferedSink
+
+
Writes all buffered data to the underlying sink, if one exists.
+
+
emitCompleteSegments() - Method in class okio.Buffer
+
 
+
emitCompleteSegments() - Method in interface okio.BufferedSink
+
+
Writes complete segments to the underlying sink, if one exists.
+
+
EMPTY - Static variable in class okio.ByteString
+
+
A singleton empty ByteString.
+
+
encodeString(String, Charset) - Static method in class okio.ByteString
+
+
Returns a new byte string containing the charset-encoded bytes of s.
+
+
encodeUtf8(String) - Static method in class okio.ByteString
+
+
Returns a new byte string containing the UTF-8 bytes of s.
+
+
end - Variable in class okio.Buffer.UnsafeCursor
+
 
+
endsWith(ByteString) - Method in class okio.ByteString
+
 
+
endsWith(byte[]) - Method in class okio.ByteString
+
 
+
enter() - Method in class okio.AsyncTimeout
+
 
+
equals(Object) - Method in class okio.Buffer
+
 
+
equals(Object) - Method in class okio.ByteString
+
 
+
exhausted() - Method in class okio.Buffer
+
 
+
exhausted() - Method in interface okio.BufferedSource
+
+
Returns true if there are no more bytes in this source.
+
+
exit() - Method in class okio.AsyncTimeout
+
+
Returns true if the timeout occurred.
+
+
expandBuffer(int) - Method in class okio.Buffer.UnsafeCursor
+
+
Grow the buffer by adding a contiguous range of capacity in a single + segment.
+
+
+ + + +

F

+
+
flush() - Method in class okio.Buffer
+
 
+
flush() - Method in interface okio.BufferedSink
+
+
Writes all buffered data to the underlying sink, if one exists.
+
+
flush() - Method in class okio.DeflaterSink
+
 
+
flush() - Method in class okio.ForwardingSink
+
 
+
flush() - Method in class okio.GzipSink
+
 
+
flush() - Method in interface okio.Sink
+
+
Pushes all buffered bytes to their final destination.
+
+
ForwardingSink - Class in okio
+
+
A Sink which forwards calls to another.
+
+
ForwardingSink(Sink) - Constructor for class okio.ForwardingSink
+
 
+
ForwardingSource - Class in okio
+
+
A Source which forwards calls to another.
+
+
ForwardingSource(Source) - Constructor for class okio.ForwardingSource
+
 
+
ForwardingTimeout - Class in okio
+
+
A Timeout which forwards calls to another.
+
+
ForwardingTimeout(Timeout) - Constructor for class okio.ForwardingTimeout
+
 
+
+ + + +

G

+
+
get(int) - Method in class okio.Options
+
 
+
getByte(long) - Method in class okio.Buffer
+
+
Returns the byte at pos.
+
+
getByte(int) - Method in class okio.ByteString
+
+
Returns the byte at pos.
+
+
GzipSink - Class in okio
+
+
A sink that uses GZIP to + compress written data to another sink.
+
+
GzipSink(Sink) - Constructor for class okio.GzipSink
+
 
+
GzipSource - Class in okio
+
+
A source that uses GZIP to + decompress data read from another source.
+
+
GzipSource(Source) - Constructor for class okio.GzipSource
+
 
+
+ + + +

H

+
+
hasDeadline() - Method in class okio.ForwardingTimeout
+
 
+
hasDeadline() - Method in class okio.Timeout
+
+
Returns true if a deadline is enabled.
+
+
hash() - Method in class okio.HashingSink
+
+
Returns the hash of the bytes accepted thus far and resets the internal state of this sink.
+
+
hash() - Method in class okio.HashingSource
+
+
Returns the hash of the bytes supplied thus far and resets the internal state of this source.
+
+
hashCode() - Method in class okio.Buffer
+
 
+
hashCode() - Method in class okio.ByteString
+
 
+
HashingSink - Class in okio
+
+
A sink that computes a hash of the full stream of bytes it has accepted.
+
+
HashingSource - Class in okio
+
+
A source that computes a hash of the full stream of bytes it has supplied.
+
+
hex() - Method in class okio.ByteString
+
+
Returns this byte string encoded in hexadecimal.
+
+
hmacSha1(ByteString) - Method in class okio.Buffer
+
+
Returns the 160-bit SHA-1 HMAC of this buffer.
+
+
hmacSha1(ByteString) - Method in class okio.ByteString
+
+
Returns the 160-bit SHA-1 HMAC of this byte string.
+
+
hmacSha1(Sink, ByteString) - Static method in class okio.HashingSink
+
+
Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.
+
+
hmacSha1(Source, ByteString) - Static method in class okio.HashingSource
+
+
Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.
+
+
hmacSha256(ByteString) - Method in class okio.Buffer
+
+
Returns the 256-bit SHA-256 HMAC of this buffer.
+
+
hmacSha256(ByteString) - Method in class okio.ByteString
+
+
Returns the 256-bit SHA-256 HMAC of this byte string.
+
+
hmacSha256(Sink, ByteString) - Static method in class okio.HashingSink
+
+
Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.
+
+
hmacSha256(Source, ByteString) - Static method in class okio.HashingSource
+
+
Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.
+
+
hmacSha512(ByteString) - Method in class okio.Buffer
+
+
Returns the 512-bit SHA-512 HMAC of this buffer.
+
+
hmacSha512(ByteString) - Method in class okio.ByteString
+
+
Returns the 512-bit SHA-512 HMAC of this byte string.
+
+
hmacSha512(Sink, ByteString) - Static method in class okio.HashingSink
+
+
Returns a sink that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.
+
+
+ + + +

I

+
+
indexOf(byte) - Method in class okio.Buffer
+
 
+
indexOf(byte, long) - Method in class okio.Buffer
+
+
Returns the index of b in this at or beyond fromIndex, or + -1 if this buffer does not contain b in that range.
+
+
indexOf(byte, long, long) - Method in class okio.Buffer
+
 
+
indexOf(ByteString) - Method in class okio.Buffer
+
 
+
indexOf(ByteString, long) - Method in class okio.Buffer
+
 
+
indexOf(byte) - Method in interface okio.BufferedSource
+
+
Equivalent to indexOf(b, 0).
+
+
indexOf(byte, long) - Method in interface okio.BufferedSource
+
+
Returns the index of the first b in the buffer at or after fromIndex.
+
+
indexOf(byte, long, long) - Method in interface okio.BufferedSource
+
+
Returns the index of b if it is found in the range of fromIndex inclusive + to toIndex exclusive.
+
+
indexOf(ByteString) - Method in interface okio.BufferedSource
+
+
Equivalent to indexOf(bytes, 0).
+
+
indexOf(ByteString, long) - Method in interface okio.BufferedSource
+
+
Returns the index of the first match for bytes in the buffer at or after fromIndex.
+
+
indexOf(ByteString) - Method in class okio.ByteString
+
 
+
indexOf(ByteString, int) - Method in class okio.ByteString
+
 
+
indexOf(byte[]) - Method in class okio.ByteString
+
 
+
indexOf(byte[], int) - Method in class okio.ByteString
+
 
+
indexOfElement(ByteString) - Method in class okio.Buffer
+
 
+
indexOfElement(ByteString, long) - Method in class okio.Buffer
+
 
+
indexOfElement(ByteString) - Method in interface okio.BufferedSource
+
+ +
+
indexOfElement(ByteString, long) - Method in interface okio.BufferedSource
+
+
Returns the first index in this buffer that is at or after fromIndex and that contains + any of the bytes in targetBytes.
+
+
InflaterSource - Class in okio
+
+
A source that uses DEFLATE + to decompress data read from another source.
+
+
InflaterSource(Source, Inflater) - Constructor for class okio.InflaterSource
+
 
+
inputStream() - Method in class okio.Buffer
+
 
+
inputStream() - Method in interface okio.BufferedSource
+
+
Returns an input stream that reads from this source.
+
+
isOpen() - Method in class okio.Buffer
+
 
+
+ + + +

L

+
+
lastIndexOf(ByteString) - Method in class okio.ByteString
+
 
+
lastIndexOf(ByteString, int) - Method in class okio.ByteString
+
 
+
lastIndexOf(byte[]) - Method in class okio.ByteString
+
 
+
lastIndexOf(byte[], int) - Method in class okio.ByteString
+
 
+
+ + + +

M

+
+
md5() - Method in class okio.Buffer
+
+
Returns the 128-bit MD5 hash of this buffer.
+
+
md5() - Method in class okio.ByteString
+
+
Returns the 128-bit MD5 hash of this byte string.
+
+
md5(Sink) - Static method in class okio.HashingSink
+
+
Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.
+
+
md5(Source) - Static method in class okio.HashingSource
+
+
Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.
+
+
+ + + +

N

+
+
newTimeoutException(IOException) - Method in class okio.AsyncTimeout
+
+
Returns an IOException to represent a timeout.
+
+
next() - Method in class okio.Buffer.UnsafeCursor
+
+
Seeks to the next range of bytes, advancing the offset by end - start.
+
+
NONE - Static variable in class okio.Timeout
+
+
An empty timeout that neither tracks nor detects timeouts.
+
+
+ + + +

O

+
+
of(byte...) - Static method in class okio.ByteString
+
+
Returns a new byte string containing a clone of the bytes of data.
+
+
of(byte[], int, int) - Static method in class okio.ByteString
+
+
Returns a new byte string containing a copy of byteCount bytes of data starting + at offset.
+
+
of(ByteBuffer) - Static method in class okio.ByteString
+
 
+
of(ByteString...) - Static method in class okio.Options
+
 
+
offset - Variable in class okio.Buffer.UnsafeCursor
+
 
+
okio - package okio
+
+
Okio complements java.io and java.nio to make it much easier to access, store, + and process your data.
+
+
Okio - Class in okio
+
+
Essential APIs for working with Okio.
+
+
Options - Class in okio
+
+
An indexed set of values that may be read with BufferedSource.select(okio.Options).
+
+
outputStream() - Method in class okio.Buffer
+
 
+
outputStream() - Method in interface okio.BufferedSink
+
+
Returns an output stream that writes to this sink.
+
+
+ + + +

P

+
+
Pipe - Class in okio
+
+
A source and a sink that are attached.
+
+
Pipe(long) - Constructor for class okio.Pipe
+
 
+
+ + + +

R

+
+
rangeEquals(long, ByteString) - Method in class okio.Buffer
+
 
+
rangeEquals(long, ByteString, int, int) - Method in class okio.Buffer
+
 
+
rangeEquals(long, ByteString) - Method in interface okio.BufferedSource
+
+
Returns true if the bytes at offset in this source equal bytes.
+
+
rangeEquals(long, ByteString, int, int) - Method in interface okio.BufferedSource
+
+
Returns true if byteCount bytes at offset in this source equal bytes + at bytesOffset.
+
+
rangeEquals(int, ByteString, int, int) - Method in class okio.ByteString
+
+
Returns true if the bytes of this in [offset..offset+byteCount) equal the bytes of + other in [otherOffset..otherOffset+byteCount).
+
+
rangeEquals(int, byte[], int, int) - Method in class okio.ByteString
+
+
Returns true if the bytes of this in [offset..offset+byteCount) equal the bytes of + other in [otherOffset..otherOffset+byteCount).
+
+
read(byte[]) - Method in class okio.Buffer
+
 
+
read(byte[], int, int) - Method in class okio.Buffer
+
 
+
read(ByteBuffer) - Method in class okio.Buffer
+
 
+
read(Buffer, long) - Method in class okio.Buffer
+
 
+
read(byte[]) - Method in interface okio.BufferedSource
+
+
Removes up to sink.length bytes from this and copies them into sink.
+
+
read(byte[], int, int) - Method in interface okio.BufferedSource
+
+
Removes up to byteCount bytes from this and copies them into sink at offset.
+
+
read(InputStream, int) - Static method in class okio.ByteString
+
+
Reads count bytes from in and returns the result.
+
+
read(Buffer, long) - Method in class okio.ForwardingSource
+
 
+
read(Buffer, long) - Method in class okio.GzipSource
+
 
+
read(Buffer, long) - Method in class okio.HashingSource
+
 
+
read(Buffer, long) - Method in class okio.InflaterSource
+
 
+
read(Buffer, long) - Method in interface okio.Source
+
+
Removes at least 1, and up to byteCount bytes from this and appends + them to sink.
+
+
readAll(Sink) - Method in class okio.Buffer
+
 
+
readAll(Sink) - Method in interface okio.BufferedSource
+
+
Removes all bytes from this and appends them to sink.
+
+
readAndWriteUnsafe() - Method in class okio.Buffer
+
 
+
readAndWriteUnsafe(Buffer.UnsafeCursor) - Method in class okio.Buffer
+
 
+
readByte() - Method in class okio.Buffer
+
 
+
readByte() - Method in interface okio.BufferedSource
+
+
Removes a byte from this source and returns it.
+
+
readByteArray() - Method in class okio.Buffer
+
 
+
readByteArray(long) - Method in class okio.Buffer
+
 
+
readByteArray() - Method in interface okio.BufferedSource
+
+
Removes all bytes from this and returns them as a byte array.
+
+
readByteArray(long) - Method in interface okio.BufferedSource
+
+
Removes byteCount bytes from this and returns them as a byte array.
+
+
readByteString() - Method in class okio.Buffer
+
 
+
readByteString(long) - Method in class okio.Buffer
+
 
+
readByteString() - Method in interface okio.BufferedSource
+
+
Removes all bytes bytes from this and returns them as a byte string.
+
+
readByteString(long) - Method in interface okio.BufferedSource
+
+
Removes byteCount bytes from this and returns them as a byte string.
+
+
readDecimalLong() - Method in class okio.Buffer
+
 
+
readDecimalLong() - Method in interface okio.BufferedSource
+
+
Reads a long from this source in signed decimal form (i.e., as a string in base 10 with + optional leading '-').
+
+
readFrom(InputStream) - Method in class okio.Buffer
+
+
Read and exhaust bytes from in to this.
+
+
readFrom(InputStream, long) - Method in class okio.Buffer
+
+
Read byteCount bytes from in to this.
+
+
readFully(Buffer, long) - Method in class okio.Buffer
+
 
+
readFully(byte[]) - Method in class okio.Buffer
+
 
+
readFully(byte[]) - Method in interface okio.BufferedSource
+
+
Removes exactly sink.length bytes from this and copies them into sink.
+
+
readFully(Buffer, long) - Method in interface okio.BufferedSource
+
+
Removes exactly byteCount bytes from this and appends them to sink.
+
+
readHexadecimalUnsignedLong() - Method in class okio.Buffer
+
 
+
readHexadecimalUnsignedLong() - Method in interface okio.BufferedSource
+
+
Reads a long form this source in hexadecimal form (i.e., as a string in base 16).
+
+
readInt() - Method in class okio.Buffer
+
 
+
readInt() - Method in interface okio.BufferedSource
+
+
Removes four bytes from this source and returns a big-endian int.
+
+
readIntLe() - Method in class okio.Buffer
+
 
+
readIntLe() - Method in interface okio.BufferedSource
+
+
Removes four bytes from this source and returns a little-endian int.
+
+
readLong() - Method in class okio.Buffer
+
 
+
readLong() - Method in interface okio.BufferedSource
+
+
Removes eight bytes from this source and returns a big-endian long.
+
+
readLongLe() - Method in class okio.Buffer
+
 
+
readLongLe() - Method in interface okio.BufferedSource
+
+
Removes eight bytes from this source and returns a little-endian long.
+
+
readShort() - Method in class okio.Buffer
+
 
+
readShort() - Method in interface okio.BufferedSource
+
+
Removes two bytes from this source and returns a big-endian short.
+
+
readShortLe() - Method in class okio.Buffer
+
 
+
readShortLe() - Method in interface okio.BufferedSource
+
+
Removes two bytes from this source and returns a little-endian short.
+
+
readString(Charset) - Method in class okio.Buffer
+
 
+
readString(long, Charset) - Method in class okio.Buffer
+
 
+
readString(Charset) - Method in interface okio.BufferedSource
+
+
Removes all bytes from this, decodes them as charset, and returns the string.
+
+
readString(long, Charset) - Method in interface okio.BufferedSource
+
+
Removes byteCount bytes from this, decodes them as charset, and returns the + string.
+
+
readUnsafe() - Method in class okio.Buffer
+
 
+
readUnsafe(Buffer.UnsafeCursor) - Method in class okio.Buffer
+
 
+
readUtf8() - Method in class okio.Buffer
+
 
+
readUtf8(long) - Method in class okio.Buffer
+
 
+
readUtf8() - Method in interface okio.BufferedSource
+
+
Removes all bytes from this, decodes them as UTF-8, and returns the string.
+
+
readUtf8(long) - Method in interface okio.BufferedSource
+
+
Removes byteCount bytes from this, decodes them as UTF-8, and returns the string.
+
+
readUtf8CodePoint() - Method in class okio.Buffer
+
 
+
readUtf8CodePoint() - Method in interface okio.BufferedSource
+
+
Removes and returns a single UTF-8 code point, reading between 1 and 4 bytes as necessary.
+
+
readUtf8Line() - Method in class okio.Buffer
+
 
+
readUtf8Line() - Method in interface okio.BufferedSource
+
+
Removes and returns characters up to but not including the next line break.
+
+
readUtf8LineStrict() - Method in class okio.Buffer
+
 
+
readUtf8LineStrict(long) - Method in class okio.Buffer
+
 
+
readUtf8LineStrict() - Method in interface okio.BufferedSource
+
+
Removes and returns characters up to but not including the next line break.
+
+
readUtf8LineStrict(long) - Method in interface okio.BufferedSource
+
+
Like BufferedSource.readUtf8LineStrict(), except this allows the caller to specify the longest + allowed match.
+
+
readWrite - Variable in class okio.Buffer.UnsafeCursor
+
 
+
refill() - Method in class okio.InflaterSource
+
+
Refills the inflater with compressed data if it needs input.
+
+
request(long) - Method in class okio.Buffer
+
 
+
request(long) - Method in interface okio.BufferedSource
+
+
Returns true when the buffer contains at least byteCount bytes, expanding it as + necessary.
+
+
require(long) - Method in class okio.Buffer
+
 
+
require(long) - Method in interface okio.BufferedSource
+
+
Returns when the buffer contains at least byteCount bytes.
+
+
resizeBuffer(long) - Method in class okio.Buffer.UnsafeCursor
+
+
Change the size of the buffer so that it equals newSize by either adding new + capacity at the end or truncating the buffer at the end.
+
+
+ + + +

S

+
+
seek(long) - Method in class okio.Buffer.UnsafeCursor
+
+
Reposition the cursor so that the data at offset is readable at data[start].
+
+
select(Options) - Method in class okio.Buffer
+
 
+
select(Options) - Method in interface okio.BufferedSource
+
+
Finds the first string in options that is a prefix of this buffer, consumes it from + this buffer, and returns its index.
+
+
setDelegate(Timeout) - Method in class okio.ForwardingTimeout
+
 
+
sha1() - Method in class okio.Buffer
+
+
Returns the 160-bit SHA-1 hash of this buffer.
+
+
sha1() - Method in class okio.ByteString
+
+
Returns the 160-bit SHA-1 hash of this byte string.
+
+
sha1(Sink) - Static method in class okio.HashingSink
+
+
Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.
+
+
sha1(Source) - Static method in class okio.HashingSource
+
+
Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.
+
+
sha256() - Method in class okio.Buffer
+
+
Returns the 256-bit SHA-256 hash of this buffer.
+
+
sha256() - Method in class okio.ByteString
+
+
Returns the 256-bit SHA-256 hash of this byte string.
+
+
sha256(Sink) - Static method in class okio.HashingSink
+
+
Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.
+
+
sha256(Source) - Static method in class okio.HashingSource
+
+
Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.
+
+
sha512() - Method in class okio.Buffer
+
+
Returns the 512-bit SHA-512 hash of this buffer.
+
+
sha512() - Method in class okio.ByteString
+
+
Returns the 512-bit SHA-512 hash of this byte string.
+
+
sha512(Sink) - Static method in class okio.HashingSink
+
+
Returns a sink that uses the SHA-512 hash algorithm to produce 512-bit hashes.
+
+
sink(Sink) - Method in class okio.AsyncTimeout
+
+
Returns a new sink that delegates to sink, using this to implement timeouts.
+
+
sink(OutputStream) - Static method in class okio.Okio
+
+
Returns a sink that writes to out.
+
+
sink(Socket) - Static method in class okio.Okio
+
+
Returns a sink that writes to socket.
+
+
sink(File) - Static method in class okio.Okio
+
+
Returns a sink that writes to file.
+
+
sink(Path, OpenOption...) - Static method in class okio.Okio
+
+
Returns a sink that writes to path.
+
+
sink() - Method in class okio.Pipe
+
 
+
Sink - Interface in okio
+
+
Receives a stream of bytes.
+
+
size() - Method in class okio.Buffer
+
+
Returns the number of bytes currently in this buffer.
+
+
size() - Method in class okio.ByteString
+
+
Returns the number of bytes in this ByteString.
+
+
size() - Method in class okio.Options
+
 
+
size(String) - Static method in class okio.Utf8
+
+
Returns the number of bytes used to encode string as UTF-8 when using ByteString.encodeUtf8(java.lang.String) or Buffer.writeUtf8(String).
+
+
size(String, int, int) - Static method in class okio.Utf8
+
+
Returns the number of bytes used to encode the slice of string as UTF-8 when using + BufferedSink.writeUtf8(String, int, int).
+
+
skip(long) - Method in class okio.Buffer
+
+
Discards byteCount bytes from the head of this buffer.
+
+
skip(long) - Method in interface okio.BufferedSource
+
+
Reads and discards byteCount bytes from this source.
+
+
snapshot() - Method in class okio.Buffer
+
+
Returns an immutable copy of this buffer as a byte string.
+
+
snapshot(int) - Method in class okio.Buffer
+
+
Returns an immutable copy of the first byteCount bytes of this buffer as a byte string.
+
+
source(Source) - Method in class okio.AsyncTimeout
+
+
Returns a new source that delegates to source, using this to implement timeouts.
+
+
source(InputStream) - Static method in class okio.Okio
+
+
Returns a source that reads from in.
+
+
source(File) - Static method in class okio.Okio
+
+
Returns a source that reads from file.
+
+
source(Path, OpenOption...) - Static method in class okio.Okio
+
+
Returns a source that reads from path.
+
+
source(Socket) - Static method in class okio.Okio
+
+
Returns a source that reads from socket.
+
+
source() - Method in class okio.Pipe
+
 
+
Source - Interface in okio
+
+
Supplies a stream of bytes.
+
+
start - Variable in class okio.Buffer.UnsafeCursor
+
 
+
startsWith(ByteString) - Method in class okio.ByteString
+
 
+
startsWith(byte[]) - Method in class okio.ByteString
+
 
+
string(Charset) - Method in class okio.ByteString
+
+
Constructs a new String by decoding the bytes using charset.
+
+
substring(int) - Method in class okio.ByteString
+
+
Returns a byte string that is a substring of this byte string, beginning at the specified + index until the end of this string.
+
+
substring(int, int) - Method in class okio.ByteString
+
+
Returns a byte string that is a substring of this byte string, beginning at the specified + beginIndex and ends at the specified endIndex.
+
+
+ + + +

T

+
+
throwIfReached() - Method in class okio.ForwardingTimeout
+
 
+
throwIfReached() - Method in class okio.Timeout
+
+
Throws an InterruptedIOException if the deadline has been reached or if the current + thread has been interrupted.
+
+
timedOut() - Method in class okio.AsyncTimeout
+
+
Invoked by the watchdog thread when the time between calls to AsyncTimeout.enter() and AsyncTimeout.exit() has exceeded the timeout.
+
+
timeout() - Method in class okio.Buffer
+
 
+
timeout() - Method in class okio.DeflaterSink
+
 
+
timeout() - Method in class okio.ForwardingSink
+
 
+
timeout() - Method in class okio.ForwardingSource
+
 
+
timeout(long, TimeUnit) - Method in class okio.ForwardingTimeout
+
 
+
timeout() - Method in class okio.GzipSink
+
 
+
timeout() - Method in class okio.GzipSource
+
 
+
timeout() - Method in class okio.InflaterSource
+
 
+
timeout() - Method in interface okio.Sink
+
+
Returns the timeout for this sink.
+
+
timeout() - Method in interface okio.Source
+
+
Returns the timeout for this source.
+
+
Timeout - Class in okio
+
+
A policy on how much time to spend on a task before giving up.
+
+
Timeout() - Constructor for class okio.Timeout
+
 
+
timeout(long, TimeUnit) - Method in class okio.Timeout
+
+
Wait at most timeout time before aborting an operation.
+
+
timeoutNanos() - Method in class okio.ForwardingTimeout
+
 
+
timeoutNanos() - Method in class okio.Timeout
+
+
Returns the timeout in nanoseconds, or 0 for no timeout.
+
+
toAsciiLowercase() - Method in class okio.ByteString
+
+
Returns a byte string equal to this byte string, but with the bytes 'A' + through 'Z' replaced with the corresponding byte in 'a' through 'z'.
+
+
toAsciiUppercase() - Method in class okio.ByteString
+
+
Returns a byte string equal to this byte string, but with the bytes 'a' + through 'z' replaced with the corresponding byte in 'A' through 'Z'.
+
+
toByteArray() - Method in class okio.ByteString
+
+
Returns a byte array containing a copy of the bytes in this ByteString.
+
+
toString() - Method in class okio.Buffer
+
+
Returns a human-readable string that describes the contents of this buffer.
+
+
toString() - Method in class okio.ByteString
+
+
Returns a human-readable string that describes the contents of this byte string.
+
+
toString() - Method in class okio.DeflaterSink
+
 
+
toString() - Method in class okio.ForwardingSink
+
 
+
toString() - Method in class okio.ForwardingSource
+
 
+
+ + + +

U

+
+
UnsafeCursor() - Constructor for class okio.Buffer.UnsafeCursor
+
 
+
utf8() - Method in class okio.ByteString
+
+
Constructs a new String by decoding the bytes as UTF-8.
+
+
Utf8 - Class in okio
+
+
Okio assumes most applications use UTF-8 exclusively, and offers optimized implementations of + common operations on UTF-8 strings.
+
+
+ + + +

W

+
+
waitUntilNotified(Object) - Method in class okio.Timeout
+
+
Waits on monitor until it is notified.
+
+
write(ByteString) - Method in class okio.Buffer
+
 
+
write(byte[]) - Method in class okio.Buffer
+
 
+
write(byte[], int, int) - Method in class okio.Buffer
+
 
+
write(ByteBuffer) - Method in class okio.Buffer
+
 
+
write(Source, long) - Method in class okio.Buffer
+
 
+
write(Buffer, long) - Method in class okio.Buffer
+
 
+
write(ByteString) - Method in interface okio.BufferedSink
+
 
+
write(byte[]) - Method in interface okio.BufferedSink
+
+
Like OutputStream.write(byte[]), this writes a complete byte array to + this sink.
+
+
write(byte[], int, int) - Method in interface okio.BufferedSink
+
+
Like OutputStream.write(byte[], int, int), this writes byteCount + bytes of source, starting at offset.
+
+
write(Source, long) - Method in interface okio.BufferedSink
+
+
Removes byteCount bytes from source and appends them to this sink.
+
+
write(OutputStream) - Method in class okio.ByteString
+
+
Writes the contents of this byte string to out.
+
+
write(Buffer, long) - Method in class okio.DeflaterSink
+
 
+
write(Buffer, long) - Method in class okio.ForwardingSink
+
 
+
write(Buffer, long) - Method in class okio.GzipSink
+
 
+
write(Buffer, long) - Method in class okio.HashingSink
+
 
+
write(Buffer, long) - Method in interface okio.Sink
+
+
Removes byteCount bytes from source and appends them to this.
+
+
writeAll(Source) - Method in class okio.Buffer
+
 
+
writeAll(Source) - Method in interface okio.BufferedSink
+
+
Removes all bytes from source and appends them to this sink.
+
+
writeByte(int) - Method in class okio.Buffer
+
 
+
writeByte(int) - Method in interface okio.BufferedSink
+
+
Writes a byte to this sink.
+
+
writeDecimalLong(long) - Method in class okio.Buffer
+
 
+
writeDecimalLong(long) - Method in interface okio.BufferedSink
+
+
Writes a long to this sink in signed decimal form (i.e., as a string in base 10).
+
+
writeHexadecimalUnsignedLong(long) - Method in class okio.Buffer
+
 
+
writeHexadecimalUnsignedLong(long) - Method in interface okio.BufferedSink
+
+
Writes a long to this sink in hexadecimal form (i.e., as a string in base 16).
+
+
writeInt(int) - Method in class okio.Buffer
+
 
+
writeInt(int) - Method in interface okio.BufferedSink
+
+
Writes a big-endian int to this sink using four bytes.
+
+
writeIntLe(int) - Method in class okio.Buffer
+
 
+
writeIntLe(int) - Method in interface okio.BufferedSink
+
+
Writes a little-endian int to this sink using four bytes.
+
+
writeLong(long) - Method in class okio.Buffer
+
 
+
writeLong(long) - Method in interface okio.BufferedSink
+
+
Writes a big-endian long to this sink using eight bytes.
+
+
writeLongLe(long) - Method in class okio.Buffer
+
 
+
writeLongLe(long) - Method in interface okio.BufferedSink
+
+
Writes a little-endian long to this sink using eight bytes.
+
+
writeShort(int) - Method in class okio.Buffer
+
 
+
writeShort(int) - Method in interface okio.BufferedSink
+
+
Writes a big-endian short to this sink using two bytes.
+
+
writeShortLe(int) - Method in class okio.Buffer
+
 
+
writeShortLe(int) - Method in interface okio.BufferedSink
+
+
Writes a little-endian short to this sink using two bytes.
+
+
writeString(String, Charset) - Method in class okio.Buffer
+
 
+
writeString(String, int, int, Charset) - Method in class okio.Buffer
+
 
+
writeString(String, Charset) - Method in interface okio.BufferedSink
+
+
Encodes string in charset and writes it to this sink.
+
+
writeString(String, int, int, Charset) - Method in interface okio.BufferedSink
+
+
Encodes the characters at beginIndex up to endIndex from string in + charset and writes it to this sink.
+
+
writeTo(OutputStream) - Method in class okio.Buffer
+
+
Write the contents of this to out.
+
+
writeTo(OutputStream, long) - Method in class okio.Buffer
+
+
Write byteCount bytes from this to out.
+
+
writeUtf8(String) - Method in class okio.Buffer
+
 
+
writeUtf8(String, int, int) - Method in class okio.Buffer
+
 
+
writeUtf8(String) - Method in interface okio.BufferedSink
+
+
Encodes string in UTF-8 and writes it to this sink.
+
+
writeUtf8(String, int, int) - Method in interface okio.BufferedSink
+
+
Encodes the characters at beginIndex up to endIndex from string in + UTF-8 and writes it to this sink.
+
+
writeUtf8CodePoint(int) - Method in class okio.Buffer
+
 
+
writeUtf8CodePoint(int) - Method in interface okio.BufferedSink
+
+
Encodes codePoint in UTF-8 and writes it to this sink.
+
+
+A B C D E F G H I L M N O P R S T U W 
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/index.html b/1.x/okio/index.html new file mode 100644 index 0000000000..252ae1269d --- /dev/null +++ b/1.x/okio/index.html @@ -0,0 +1,73 @@ + + + + + + +Okio 1.15.0 API + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="okio/package-summary.html">Non-frame version</a>.</p> + + + diff --git a/1.x/okio/okio/AsyncTimeout.html b/1.x/okio/okio/AsyncTimeout.html new file mode 100644 index 0000000000..dc7f7a963a --- /dev/null +++ b/1.x/okio/okio/AsyncTimeout.html @@ -0,0 +1,395 @@ + + + + + + +AsyncTimeout (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Class AsyncTimeout

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/Buffer.UnsafeCursor.html b/1.x/okio/okio/Buffer.UnsafeCursor.html new file mode 100644 index 0000000000..29441f8688 --- /dev/null +++ b/1.x/okio/okio/Buffer.UnsafeCursor.html @@ -0,0 +1,691 @@ + + + + + + +Buffer.UnsafeCursor (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Class Buffer.UnsafeCursor

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/Buffer.html b/1.x/okio/okio/Buffer.html new file mode 100644 index 0000000000..1c0ca73d2b --- /dev/null +++ b/1.x/okio/okio/Buffer.html @@ -0,0 +1,2926 @@ + + + + + + +Buffer (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Class Buffer

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/BufferedSink.html b/1.x/okio/okio/BufferedSink.html new file mode 100644 index 0000000000..f1b9a74ed3 --- /dev/null +++ b/1.x/okio/okio/BufferedSink.html @@ -0,0 +1,961 @@ + + + + + + +BufferedSink (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Interface BufferedSink

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/BufferedSource.html b/1.x/okio/okio/BufferedSource.html new file mode 100644 index 0000000000..c084af147e --- /dev/null +++ b/1.x/okio/okio/BufferedSource.html @@ -0,0 +1,1462 @@ + + + + + + +BufferedSource (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Interface BufferedSource

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/ByteString.html b/1.x/okio/okio/ByteString.html new file mode 100644 index 0000000000..5a6b02631b --- /dev/null +++ b/1.x/okio/okio/ByteString.html @@ -0,0 +1,1072 @@ + + + + + + +ByteString (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Class ByteString

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/DeflaterSink.html b/1.x/okio/okio/DeflaterSink.html new file mode 100644 index 0000000000..8aabde900a --- /dev/null +++ b/1.x/okio/okio/DeflaterSink.html @@ -0,0 +1,398 @@ + + + + + + +DeflaterSink (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Class DeflaterSink

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/ForwardingSink.html b/1.x/okio/okio/ForwardingSink.html new file mode 100644 index 0000000000..2d79e8acd0 --- /dev/null +++ b/1.x/okio/okio/ForwardingSink.html @@ -0,0 +1,405 @@ + + + + + + +ForwardingSink (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Class ForwardingSink

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/ForwardingSource.html b/1.x/okio/okio/ForwardingSource.html new file mode 100644 index 0000000000..52991a0071 --- /dev/null +++ b/1.x/okio/okio/ForwardingSource.html @@ -0,0 +1,380 @@ + + + + + + +ForwardingSource (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Class ForwardingSource

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/ForwardingTimeout.html b/1.x/okio/okio/ForwardingTimeout.html new file mode 100644 index 0000000000..a1a04f7225 --- /dev/null +++ b/1.x/okio/okio/ForwardingTimeout.html @@ -0,0 +1,501 @@ + + + + + + +ForwardingTimeout (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Class ForwardingTimeout

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/GzipSink.html b/1.x/okio/okio/GzipSink.html new file mode 100644 index 0000000000..cc4ed3bcc9 --- /dev/null +++ b/1.x/okio/okio/GzipSink.html @@ -0,0 +1,396 @@ + + + + + + +GzipSink (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Class GzipSink

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/GzipSource.html b/1.x/okio/okio/GzipSource.html new file mode 100644 index 0000000000..2c06e19ad6 --- /dev/null +++ b/1.x/okio/okio/GzipSource.html @@ -0,0 +1,344 @@ + + + + + + +GzipSource (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Class GzipSource

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/HashingSink.html b/1.x/okio/okio/HashingSink.html new file mode 100644 index 0000000000..d889c4a5e7 --- /dev/null +++ b/1.x/okio/okio/HashingSink.html @@ -0,0 +1,419 @@ + + + + + + +HashingSink (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Class HashingSink

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/HashingSource.html b/1.x/okio/okio/HashingSource.html new file mode 100644 index 0000000000..8b0590ed67 --- /dev/null +++ b/1.x/okio/okio/HashingSource.html @@ -0,0 +1,388 @@ + + + + + + +HashingSource (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Class HashingSource

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/InflaterSource.html b/1.x/okio/okio/InflaterSource.html new file mode 100644 index 0000000000..86fb6f006d --- /dev/null +++ b/1.x/okio/okio/InflaterSource.html @@ -0,0 +1,369 @@ + + + + + + +InflaterSource (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Class InflaterSource

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/Okio.html b/1.x/okio/okio/Okio.html new file mode 100644 index 0000000000..8ca242aee5 --- /dev/null +++ b/1.x/okio/okio/Okio.html @@ -0,0 +1,464 @@ + + + + + + +Okio (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Class Okio

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/Options.html b/1.x/okio/okio/Options.html new file mode 100644 index 0000000000..0425817367 --- /dev/null +++ b/1.x/okio/okio/Options.html @@ -0,0 +1,343 @@ + + + + + + +Options (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Class Options

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/Pipe.html b/1.x/okio/okio/Pipe.html new file mode 100644 index 0000000000..3d07ce5fa9 --- /dev/null +++ b/1.x/okio/okio/Pipe.html @@ -0,0 +1,298 @@ + + + + + + +Pipe (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Class Pipe

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/Sink.html b/1.x/okio/okio/Sink.html new file mode 100644 index 0000000000..215b9d9845 --- /dev/null +++ b/1.x/okio/okio/Sink.html @@ -0,0 +1,335 @@ + + + + + + +Sink (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Interface Sink

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/Source.html b/1.x/okio/okio/Source.html new file mode 100644 index 0000000000..32c364372f --- /dev/null +++ b/1.x/okio/okio/Source.html @@ -0,0 +1,323 @@ + + + + + + +Source (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Interface Source

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/Timeout.html b/1.x/okio/okio/Timeout.html new file mode 100644 index 0000000000..3627d7fbd1 --- /dev/null +++ b/1.x/okio/okio/Timeout.html @@ -0,0 +1,545 @@ + + + + + + +Timeout (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Class Timeout

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/Utf8.html b/1.x/okio/okio/Utf8.html new file mode 100644 index 0000000000..afba65558e --- /dev/null +++ b/1.x/okio/okio/Utf8.html @@ -0,0 +1,307 @@ + + + + + + +Utf8 (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio
+

Class Utf8

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/AsyncTimeout.html b/1.x/okio/okio/class-use/AsyncTimeout.html new file mode 100644 index 0000000000..739dc7ea7f --- /dev/null +++ b/1.x/okio/okio/class-use/AsyncTimeout.html @@ -0,0 +1,124 @@ + + + + + + +Uses of Class okio.AsyncTimeout (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
okio.AsyncTimeout

+
+
No usage of okio.AsyncTimeout
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/Buffer.UnsafeCursor.html b/1.x/okio/okio/class-use/Buffer.UnsafeCursor.html new file mode 100644 index 0000000000..780f945d07 --- /dev/null +++ b/1.x/okio/okio/class-use/Buffer.UnsafeCursor.html @@ -0,0 +1,178 @@ + + + + + + +Uses of Class okio.Buffer.UnsafeCursor (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
okio.Buffer.UnsafeCursor

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/Buffer.html b/1.x/okio/okio/class-use/Buffer.html new file mode 100644 index 0000000000..2d9dabdddb --- /dev/null +++ b/1.x/okio/okio/class-use/Buffer.html @@ -0,0 +1,403 @@ + + + + + + +Uses of Class okio.Buffer (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
okio.Buffer

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/BufferedSink.html b/1.x/okio/okio/class-use/BufferedSink.html new file mode 100644 index 0000000000..b035e4161e --- /dev/null +++ b/1.x/okio/okio/class-use/BufferedSink.html @@ -0,0 +1,306 @@ + + + + + + +Uses of Interface okio.BufferedSink (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
okio.BufferedSink

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/BufferedSource.html b/1.x/okio/okio/class-use/BufferedSource.html new file mode 100644 index 0000000000..ca594229e5 --- /dev/null +++ b/1.x/okio/okio/class-use/BufferedSource.html @@ -0,0 +1,166 @@ + + + + + + +Uses of Interface okio.BufferedSource (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
okio.BufferedSource

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/ByteString.html b/1.x/okio/okio/class-use/ByteString.html new file mode 100644 index 0000000000..89fe8467a8 --- /dev/null +++ b/1.x/okio/okio/class-use/ByteString.html @@ -0,0 +1,578 @@ + + + + + + +Uses of Class okio.ByteString (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
okio.ByteString

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/DeflaterSink.html b/1.x/okio/okio/class-use/DeflaterSink.html new file mode 100644 index 0000000000..7a7824bc70 --- /dev/null +++ b/1.x/okio/okio/class-use/DeflaterSink.html @@ -0,0 +1,124 @@ + + + + + + +Uses of Class okio.DeflaterSink (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
okio.DeflaterSink

+
+
No usage of okio.DeflaterSink
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/ForwardingSink.html b/1.x/okio/okio/class-use/ForwardingSink.html new file mode 100644 index 0000000000..b1f1af8758 --- /dev/null +++ b/1.x/okio/okio/class-use/ForwardingSink.html @@ -0,0 +1,151 @@ + + + + + + +Uses of Class okio.ForwardingSink (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
okio.ForwardingSink

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/ForwardingSource.html b/1.x/okio/okio/class-use/ForwardingSource.html new file mode 100644 index 0000000000..1f0f2d80cc --- /dev/null +++ b/1.x/okio/okio/class-use/ForwardingSource.html @@ -0,0 +1,151 @@ + + + + + + +Uses of Class okio.ForwardingSource (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
okio.ForwardingSource

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/ForwardingTimeout.html b/1.x/okio/okio/class-use/ForwardingTimeout.html new file mode 100644 index 0000000000..b97f4a916c --- /dev/null +++ b/1.x/okio/okio/class-use/ForwardingTimeout.html @@ -0,0 +1,149 @@ + + + + + + +Uses of Class okio.ForwardingTimeout (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
okio.ForwardingTimeout

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/GzipSink.html b/1.x/okio/okio/class-use/GzipSink.html new file mode 100644 index 0000000000..b33256fca4 --- /dev/null +++ b/1.x/okio/okio/class-use/GzipSink.html @@ -0,0 +1,124 @@ + + + + + + +Uses of Class okio.GzipSink (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
okio.GzipSink

+
+
No usage of okio.GzipSink
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/GzipSource.html b/1.x/okio/okio/class-use/GzipSource.html new file mode 100644 index 0000000000..cfe877ec1b --- /dev/null +++ b/1.x/okio/okio/class-use/GzipSource.html @@ -0,0 +1,124 @@ + + + + + + +Uses of Class okio.GzipSource (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
okio.GzipSource

+
+
No usage of okio.GzipSource
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/HashingSink.html b/1.x/okio/okio/class-use/HashingSink.html new file mode 100644 index 0000000000..6d1a33cff4 --- /dev/null +++ b/1.x/okio/okio/class-use/HashingSink.html @@ -0,0 +1,190 @@ + + + + + + +Uses of Class okio.HashingSink (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
okio.HashingSink

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/HashingSource.html b/1.x/okio/okio/class-use/HashingSource.html new file mode 100644 index 0000000000..25cd47cb27 --- /dev/null +++ b/1.x/okio/okio/class-use/HashingSource.html @@ -0,0 +1,177 @@ + + + + + + +Uses of Class okio.HashingSource (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
okio.HashingSource

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/InflaterSource.html b/1.x/okio/okio/class-use/InflaterSource.html new file mode 100644 index 0000000000..a5850cb993 --- /dev/null +++ b/1.x/okio/okio/class-use/InflaterSource.html @@ -0,0 +1,124 @@ + + + + + + +Uses of Class okio.InflaterSource (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
okio.InflaterSource

+
+
No usage of okio.InflaterSource
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/Okio.html b/1.x/okio/okio/class-use/Okio.html new file mode 100644 index 0000000000..d7666f3ce9 --- /dev/null +++ b/1.x/okio/okio/class-use/Okio.html @@ -0,0 +1,124 @@ + + + + + + +Uses of Class okio.Okio (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
okio.Okio

+
+
No usage of okio.Okio
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/Options.html b/1.x/okio/okio/class-use/Options.html new file mode 100644 index 0000000000..77c4876fc8 --- /dev/null +++ b/1.x/okio/okio/class-use/Options.html @@ -0,0 +1,169 @@ + + + + + + +Uses of Class okio.Options (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
okio.Options

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/Pipe.html b/1.x/okio/okio/class-use/Pipe.html new file mode 100644 index 0000000000..4bef606875 --- /dev/null +++ b/1.x/okio/okio/class-use/Pipe.html @@ -0,0 +1,124 @@ + + + + + + +Uses of Class okio.Pipe (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
okio.Pipe

+
+
No usage of okio.Pipe
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/Sink.html b/1.x/okio/okio/class-use/Sink.html new file mode 100644 index 0000000000..5f5c089dd7 --- /dev/null +++ b/1.x/okio/okio/class-use/Sink.html @@ -0,0 +1,349 @@ + + + + + + +Uses of Interface okio.Sink (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
okio.Sink

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/Source.html b/1.x/okio/okio/class-use/Source.html new file mode 100644 index 0000000000..b683f15ae1 --- /dev/null +++ b/1.x/okio/okio/class-use/Source.html @@ -0,0 +1,336 @@ + + + + + + +Uses of Interface okio.Source (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
okio.Source

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/Timeout.html b/1.x/okio/okio/class-use/Timeout.html new file mode 100644 index 0000000000..4badb6d580 --- /dev/null +++ b/1.x/okio/okio/class-use/Timeout.html @@ -0,0 +1,301 @@ + + + + + + +Uses of Class okio.Timeout (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
okio.Timeout

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/class-use/Utf8.html b/1.x/okio/okio/class-use/Utf8.html new file mode 100644 index 0000000000..c5fdcf6adf --- /dev/null +++ b/1.x/okio/okio/class-use/Utf8.html @@ -0,0 +1,124 @@ + + + + + + +Uses of Class okio.Utf8 (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
okio.Utf8

+
+
No usage of okio.Utf8
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/package-frame.html b/1.x/okio/okio/package-frame.html new file mode 100644 index 0000000000..abf9f11446 --- /dev/null +++ b/1.x/okio/okio/package-frame.html @@ -0,0 +1,45 @@ + + + + + + +okio (Okio 1.15.0 API) + + + + + +

okio

+
+

Interfaces

+ +

Classes

+ +
+ + diff --git a/1.x/okio/okio/package-summary.html b/1.x/okio/okio/package-summary.html new file mode 100644 index 0000000000..e66f84b15e --- /dev/null +++ b/1.x/okio/okio/package-summary.html @@ -0,0 +1,301 @@ + + + + + + +okio (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

@ParametersAreNonnullByDefault +

+

Package okio

+
+
Okio complements java.io and java.nio to make it much easier to access, store, + and process your data.
+
+

See: Description

+
+
+ + + + +

Package okio Description

+
Okio complements java.io and java.nio to make it much easier to access, store, + and process your data.
+
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/package-tree.html b/1.x/okio/okio/package-tree.html new file mode 100644 index 0000000000..c94bf30fa5 --- /dev/null +++ b/1.x/okio/okio/package-tree.html @@ -0,0 +1,211 @@ + + + + + + +okio Class Hierarchy (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package okio

+
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/okio/package-use.html b/1.x/okio/okio/package-use.html new file mode 100644 index 0000000000..84fcfad9d1 --- /dev/null +++ b/1.x/okio/okio/package-use.html @@ -0,0 +1,211 @@ + + + + + + +Uses of Package okio (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
okio

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/overview-tree.html b/1.x/okio/overview-tree.html new file mode 100644 index 0000000000..2704ea8cf9 --- /dev/null +++ b/1.x/okio/overview-tree.html @@ -0,0 +1,268 @@ + + + + + + +Class Hierarchy (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For All Packages

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/package-list b/1.x/okio/package-list new file mode 100644 index 0000000000..1e84585768 --- /dev/null +++ b/1.x/okio/package-list @@ -0,0 +1 @@ +okio diff --git a/1.x/okio/script.js b/1.x/okio/script.js new file mode 100644 index 0000000000..b346356931 --- /dev/null +++ b/1.x/okio/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/1.x/okio/serialized-form.html b/1.x/okio/serialized-form.html new file mode 100644 index 0000000000..039e711158 --- /dev/null +++ b/1.x/okio/serialized-form.html @@ -0,0 +1,175 @@ + + + + + + +Serialized Form (Okio 1.15.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Serialized Form

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/okio/stylesheet.css b/1.x/okio/stylesheet.css new file mode 100644 index 0000000000..8841f37c43 --- /dev/null +++ b/1.x/okio/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/1.x/okio/version.txt b/1.x/okio/version.txt new file mode 100644 index 0000000000..141f2e805b --- /dev/null +++ b/1.x/okio/version.txt @@ -0,0 +1 @@ +1.15.0 diff --git a/1.x/samples/META-INF/MANIFEST.MF b/1.x/samples/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..1a12ffb44d --- /dev/null +++ b/1.x/samples/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_162 + diff --git a/1.x/samples/allclasses-frame.html b/1.x/samples/allclasses-frame.html new file mode 100644 index 0000000000..c15af15a7d --- /dev/null +++ b/1.x/samples/allclasses-frame.html @@ -0,0 +1,20 @@ + + + + + + +All Classes (Okio Samples 1.16.0 API) + + + + + +

All Classes

+
+ +
+ + diff --git a/1.x/samples/allclasses-noframe.html b/1.x/samples/allclasses-noframe.html new file mode 100644 index 0000000000..687cb6d203 --- /dev/null +++ b/1.x/samples/allclasses-noframe.html @@ -0,0 +1,20 @@ + + + + + + +All Classes (Okio Samples 1.16.0 API) + + + + + +

All Classes

+
+ +
+ + diff --git a/1.x/samples/constant-values.html b/1.x/samples/constant-values.html new file mode 100644 index 0000000000..7e3fa8484b --- /dev/null +++ b/1.x/samples/constant-values.html @@ -0,0 +1,124 @@ + + + + + + +Constant Field Values (Okio Samples 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Constant Field Values

+

Contents

+
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/samples/deprecated-list.html b/1.x/samples/deprecated-list.html new file mode 100644 index 0000000000..f849c0e348 --- /dev/null +++ b/1.x/samples/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Deprecated List (Okio Samples 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/samples/help-doc.html b/1.x/samples/help-doc.html new file mode 100644 index 0000000000..d87e4a7381 --- /dev/null +++ b/1.x/samples/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +API Help (Okio Samples 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+ +This help file applies to API documentation generated using the standard doclet.
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/samples/index-all.html b/1.x/samples/index-all.html new file mode 100644 index 0000000000..b165d0c314 --- /dev/null +++ b/1.x/samples/index-all.html @@ -0,0 +1,149 @@ + + + + + + +Index (Okio Samples 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
M O R  + + +

M

+
+
main(String...) - Static method in class okio.samples.Randoms
+
 
+
+ + + +

O

+
+
okio.samples - package okio.samples
+
 
+
+ + + +

R

+
+
Randoms - Class in okio.samples
+
 
+
Randoms() - Constructor for class okio.samples.Randoms
+
 
+
run() - Method in class okio.samples.Randoms
+
 
+
+M O R 
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/samples/index.html b/1.x/samples/index.html new file mode 100644 index 0000000000..d81912fd1b --- /dev/null +++ b/1.x/samples/index.html @@ -0,0 +1,73 @@ + + + + + + +Okio Samples 1.16.0 API + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="okio/samples/package-summary.html">Non-frame version</a>.</p> + + + diff --git a/1.x/samples/okio/samples/Randoms.html b/1.x/samples/okio/samples/Randoms.html new file mode 100644 index 0000000000..66efa5d06e --- /dev/null +++ b/1.x/samples/okio/samples/Randoms.html @@ -0,0 +1,296 @@ + + + + + + +Randoms (Okio Samples 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
okio.samples
+

Class Randoms

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/samples/okio/samples/class-use/Randoms.html b/1.x/samples/okio/samples/class-use/Randoms.html new file mode 100644 index 0000000000..236f6a8c1b --- /dev/null +++ b/1.x/samples/okio/samples/class-use/Randoms.html @@ -0,0 +1,124 @@ + + + + + + +Uses of Class okio.samples.Randoms (Okio Samples 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
okio.samples.Randoms

+
+
No usage of okio.samples.Randoms
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/samples/okio/samples/package-frame.html b/1.x/samples/okio/samples/package-frame.html new file mode 100644 index 0000000000..50baade05c --- /dev/null +++ b/1.x/samples/okio/samples/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +okio.samples (Okio Samples 1.16.0 API) + + + + + +

okio.samples

+
+

Classes

+ +
+ + diff --git a/1.x/samples/okio/samples/package-summary.html b/1.x/samples/okio/samples/package-summary.html new file mode 100644 index 0000000000..fc79e8426e --- /dev/null +++ b/1.x/samples/okio/samples/package-summary.html @@ -0,0 +1,142 @@ + + + + + + +okio.samples (Okio Samples 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package okio.samples

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/samples/okio/samples/package-tree.html b/1.x/samples/okio/samples/package-tree.html new file mode 100644 index 0000000000..33f89a4480 --- /dev/null +++ b/1.x/samples/okio/samples/package-tree.html @@ -0,0 +1,133 @@ + + + + + + +okio.samples Class Hierarchy (Okio Samples 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package okio.samples

+
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/samples/okio/samples/package-use.html b/1.x/samples/okio/samples/package-use.html new file mode 100644 index 0000000000..9ec4243356 --- /dev/null +++ b/1.x/samples/okio/samples/package-use.html @@ -0,0 +1,124 @@ + + + + + + +Uses of Package okio.samples (Okio Samples 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
okio.samples

+
+
No usage of okio.samples
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/samples/overview-tree.html b/1.x/samples/overview-tree.html new file mode 100644 index 0000000000..ce04806f73 --- /dev/null +++ b/1.x/samples/overview-tree.html @@ -0,0 +1,137 @@ + + + + + + +Class Hierarchy (Okio Samples 1.16.0 API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For All Packages

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2018. All Rights Reserved.

+ + diff --git a/1.x/samples/package-list b/1.x/samples/package-list new file mode 100644 index 0000000000..8fda5f5cf7 --- /dev/null +++ b/1.x/samples/package-list @@ -0,0 +1 @@ +okio.samples diff --git a/1.x/samples/script.js b/1.x/samples/script.js new file mode 100644 index 0000000000..b346356931 --- /dev/null +++ b/1.x/samples/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/1.x/samples/stylesheet.css b/1.x/samples/stylesheet.css new file mode 100644 index 0000000000..8841f37c43 --- /dev/null +++ b/1.x/samples/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/1.x/samples/version.txt b/1.x/samples/version.txt new file mode 100644 index 0000000000..15b989e398 --- /dev/null +++ b/1.x/samples/version.txt @@ -0,0 +1 @@ +1.16.0 diff --git a/2.x/images/anchor-copy-button.svg b/2.x/images/anchor-copy-button.svg new file mode 100644 index 0000000000..bab9d747ff --- /dev/null +++ b/2.x/images/anchor-copy-button.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/2.x/images/arrow_down.svg b/2.x/images/arrow_down.svg new file mode 100644 index 0000000000..89e7df4710 --- /dev/null +++ b/2.x/images/arrow_down.svg @@ -0,0 +1,3 @@ + + + diff --git a/2.x/images/copy-icon.svg b/2.x/images/copy-icon.svg new file mode 100644 index 0000000000..61440f0a40 --- /dev/null +++ b/2.x/images/copy-icon.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/2.x/images/copy-successful-icon.svg b/2.x/images/copy-successful-icon.svg new file mode 100644 index 0000000000..1865f739b0 --- /dev/null +++ b/2.x/images/copy-successful-icon.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/2.x/images/docs_logo.svg b/2.x/images/docs_logo.svg new file mode 100644 index 0000000000..7c1e3ae8ea --- /dev/null +++ b/2.x/images/docs_logo.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/2.x/images/footer-go-to-link.svg b/2.x/images/footer-go-to-link.svg new file mode 100644 index 0000000000..0137e22313 --- /dev/null +++ b/2.x/images/footer-go-to-link.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/2.x/images/go-to-top-icon.svg b/2.x/images/go-to-top-icon.svg new file mode 100644 index 0000000000..d987f3eadc --- /dev/null +++ b/2.x/images/go-to-top-icon.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/2.x/images/logo-icon.svg b/2.x/images/logo-icon.svg new file mode 100644 index 0000000000..1b3b3670e0 --- /dev/null +++ b/2.x/images/logo-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/2.x/images/logo-square.png b/2.x/images/logo-square.png new file mode 100644 index 0000000000..788b301adb Binary files /dev/null and b/2.x/images/logo-square.png differ diff --git a/2.x/navigation.html b/2.x/navigation.html new file mode 100644 index 0000000000..a3e79b8577 --- /dev/null +++ b/2.x/navigation.html @@ -0,0 +1,142 @@ + + diff --git a/2.x/okio/index.html b/2.x/okio/index.html new file mode 100644 index 0000000000..06a4f3caad --- /dev/null +++ b/2.x/okio/index.html @@ -0,0 +1,68 @@ + + + + okio + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

okio

+
+

Packages

+
+
+
+
+
okio +
Link copied to clipboard
+
+
+
+
apple
+
common
+ +
nonJvm
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-array-index-out-of-bounds-exception/-array-index-out-of-bounds-exception.html b/2.x/okio/okio/-array-index-out-of-bounds-exception/-array-index-out-of-bounds-exception.html new file mode 100644 index 0000000000..0e4075cbd3 --- /dev/null +++ b/2.x/okio/okio/-array-index-out-of-bounds-exception/-array-index-out-of-bounds-exception.html @@ -0,0 +1,53 @@ + + + + ArrayIndexOutOfBoundsException + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

ArrayIndexOutOfBoundsException

+
+
+ +
+
fun ArrayIndexOutOfBoundsException(message: String?)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-array-index-out-of-bounds-exception/index.html b/2.x/okio/okio/-array-index-out-of-bounds-exception/index.html new file mode 100644 index 0000000000..f4021367dc --- /dev/null +++ b/2.x/okio/okio/-array-index-out-of-bounds-exception/index.html @@ -0,0 +1,151 @@ + + + + ArrayIndexOutOfBoundsException + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

ArrayIndexOutOfBoundsException

+
+
+
class ArrayIndexOutOfBoundsException(message: String?) : IndexOutOfBoundsException
typealias ArrayIndexOutOfBoundsException = ArrayIndexOutOfBoundsException
+
+
+
+
+

Functions

+
+
+
+
equals +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open fun toString(): String
+
+
+
+
+
+
+
+

Properties

+
+
+
+
cause +
Link copied to clipboard
+
+
+
+
common
+
+
+
open val cause: Throwable?
+
+
+
+
+ +
+
+
message +
Link copied to clipboard
+
+
+
+
common
+
+
+
open val message: String?
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-async-timeout/-async-timeout.html b/2.x/okio/okio/-async-timeout/-async-timeout.html new file mode 100644 index 0000000000..45e1d35176 --- /dev/null +++ b/2.x/okio/okio/-async-timeout/-async-timeout.html @@ -0,0 +1,53 @@ + + + + AsyncTimeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

AsyncTimeout

+
+
+ +
+
fun AsyncTimeout()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-async-timeout/-companion/index.html b/2.x/okio/okio/-async-timeout/-companion/index.html new file mode 100644 index 0000000000..ecc9c00e9a --- /dev/null +++ b/2.x/okio/okio/-async-timeout/-companion/index.html @@ -0,0 +1,115 @@ + + + + Companion + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Companion

+
object Companion
+
+
+
+
+

Functions

+
+
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun toString(): String
+
+
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-async-timeout/enter.html b/2.x/okio/okio/-async-timeout/enter.html new file mode 100644 index 0000000000..c5f5b0f154 --- /dev/null +++ b/2.x/okio/okio/-async-timeout/enter.html @@ -0,0 +1,53 @@ + + + + enter + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

enter

+
+
+ +
+
fun enter()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-async-timeout/exit.html b/2.x/okio/okio/-async-timeout/exit.html new file mode 100644 index 0000000000..70e6aef2b1 --- /dev/null +++ b/2.x/okio/okio/-async-timeout/exit.html @@ -0,0 +1,53 @@ + + + + exit + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

exit

+
+
+ +
+
fun exit(): Boolean
+
+

Returns true if the timeout occurred.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-async-timeout/index.html b/2.x/okio/okio/-async-timeout/index.html new file mode 100644 index 0000000000..07637fc106 --- /dev/null +++ b/2.x/okio/okio/-async-timeout/index.html @@ -0,0 +1,461 @@ + + + + AsyncTimeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

AsyncTimeout

+
open class AsyncTimeout : Timeout

This timeout uses a background thread to take action exactly when the timeout occurs. Use this to implement timeouts where they aren't supported natively, such as to sockets that are blocked on writing.

Subclasses should override timedOut to take action when a timeout occurs. This method will be invoked by the shared watchdog thread so it should not do any long-running operations. Otherwise we risk starving other timeouts from being triggered.

Use sink and source to apply this timeout to a stream. The returned value will apply the timeout to each operation on the wrapped stream.

Callers should call enter before doing work that is subject to timeouts, and exit afterwards. The return value of exit indicates whether a timeout was triggered. Note that the call to timedOut is asynchronous, and may be called after exit.

+
+
+
+
+

Constructors

+
+
+
+
AsyncTimeout +
Link copied to clipboard
+
+
+
+ +
+
+
fun AsyncTimeout()
+
+
+
+
+
+

Types

+
+
+
+
Companion +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
object Companion
+
+
+
+
+
+
+
+

Functions

+
+
+
+
clearDeadline +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun clearDeadline(): Timeout
+
+
Clears the deadline.
+
+
+
+
+ +
+
+
clearTimeout +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun clearTimeout(): Timeout
+
+
Clears the timeout.
+
+
+
+
+ +
+
+
deadline +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun deadline(duration: Long, unit: TimeUnit): Timeout
+
+
Set a deadline of now plus duration time.
+
+
+
+
+ +
+
+
deadlineNanoTime +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun deadlineNanoTime(): Long
+
+
Returns the nano time when the deadline will be reached.
+
+ +
+
open fun deadlineNanoTime(deadlineNanoTime: Long): Timeout
+
+
Sets the nano time when the deadline will be reached.
+
+
+
+
+ +
+
+
enter +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun enter()
+
+
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
exit +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun exit(): Boolean
+
+
Returns true if the timeout occurred.
+
+
+
+
+ +
+
+
hasDeadline +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun hasDeadline(): Boolean
+
+
Returns true if a deadline is enabled.
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
intersectWith +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
inline fun intersectWith(other: Timeout, block: () -> Unit)
+
+
Applies the minimum intersection between this timeout and other, run block, then finally rollback this timeout's values.
+
+
+
+
+ +
+
+
sink +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun sink(sink: Sink): Sink
+
+
Returns a new sink that delegates to sink, using this to implement timeouts.
+
+
+
+
+ +
+
+
source +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun source(source: Source): Source
+
+
Returns a new source that delegates to source, using this to implement timeouts.
+
+
+
+
+ +
+
+
throwIfReached +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun throwIfReached()
+
+
Throws an InterruptedIOException if the deadline has been reached or if the current thread has been interrupted.
+
+
+
+
+ +
+
+
timeout +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun timeout(timeout: Long, unit: TimeUnit): Timeout
+
+
Wait at most timeout time before aborting an operation.
+
+
+
+
+ +
+
+
timeoutNanos +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun timeoutNanos(): Long
+
+
Returns the timeout in nanoseconds, or 0 for no timeout.
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun toString(): String
+
+
+
+
+
+
+ +
+
+
waitUntilNotified +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun waitUntilNotified(monitor: Any)
+
+
Waits on monitor until it is notified.
+
+
+
+
+ +
+
+
withTimeout +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
inline fun <T> withTimeout(block: () -> T): T
+
+
Surrounds block with calls to enter and exit, throwing an exception from newTimeoutException if a timeout occurred.
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-async-timeout/sink.html b/2.x/okio/okio/-async-timeout/sink.html new file mode 100644 index 0000000000..b1645a28ae --- /dev/null +++ b/2.x/okio/okio/-async-timeout/sink.html @@ -0,0 +1,53 @@ + + + + sink + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

sink

+
+
+ +
+
fun sink(sink: Sink): Sink
+
+

Returns a new sink that delegates to sink, using this to implement timeouts. This works best if timedOut is overridden to interrupt sink's current operation.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-async-timeout/source.html b/2.x/okio/okio/-async-timeout/source.html new file mode 100644 index 0000000000..db4c5f0d9a --- /dev/null +++ b/2.x/okio/okio/-async-timeout/source.html @@ -0,0 +1,53 @@ + + + + source + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

source

+
+
+ +
+
fun source(source: Source): Source
+
+

Returns a new source that delegates to source, using this to implement timeouts. This works best if timedOut is overridden to interrupt source's current operation.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-async-timeout/with-timeout.html b/2.x/okio/okio/-async-timeout/with-timeout.html new file mode 100644 index 0000000000..fda1e50b07 --- /dev/null +++ b/2.x/okio/okio/-async-timeout/with-timeout.html @@ -0,0 +1,53 @@ + + + + withTimeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

withTimeout

+
+
+ +
+
inline fun <T> withTimeout(block: () -> T): T
+
+

Surrounds block with calls to enter and exit, throwing an exception from newTimeoutException if a timeout occurred.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/-buffer.html b/2.x/okio/okio/-buffer/-buffer.html new file mode 100644 index 0000000000..094e1a6c07 --- /dev/null +++ b/2.x/okio/okio/-buffer/-buffer.html @@ -0,0 +1,55 @@ + + + + Buffer + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Buffer

+
+
+ +
+
+
+
fun Buffer()
fun Buffer()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/-unsafe-cursor/-unsafe-cursor.html b/2.x/okio/okio/-buffer/-unsafe-cursor/-unsafe-cursor.html new file mode 100644 index 0000000000..48b7adbdde --- /dev/null +++ b/2.x/okio/okio/-buffer/-unsafe-cursor/-unsafe-cursor.html @@ -0,0 +1,55 @@ + + + + UnsafeCursor + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

UnsafeCursor

+
+
+ +
+
+
+
fun UnsafeCursor()
fun UnsafeCursor()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/-unsafe-cursor/buffer.html b/2.x/okio/okio/-buffer/-unsafe-cursor/buffer.html new file mode 100644 index 0000000000..cc7226e93d --- /dev/null +++ b/2.x/okio/okio/-buffer/-unsafe-cursor/buffer.html @@ -0,0 +1,57 @@ + + + + buffer + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

buffer

+
+
+
+
common
+
+
+ +
+
var buffer: Buffer? = null
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/-unsafe-cursor/close.html b/2.x/okio/okio/-buffer/-unsafe-cursor/close.html new file mode 100644 index 0000000000..fe0fb8b937 --- /dev/null +++ b/2.x/okio/okio/-buffer/-unsafe-cursor/close.html @@ -0,0 +1,55 @@ + + + + close + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

close

+
+
+ +
+
+
+
fun close()
open override fun close()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/-unsafe-cursor/data.html b/2.x/okio/okio/-buffer/-unsafe-cursor/data.html new file mode 100644 index 0000000000..6ceed4f52b --- /dev/null +++ b/2.x/okio/okio/-buffer/-unsafe-cursor/data.html @@ -0,0 +1,57 @@ + + + + data + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

data

+
+
+
+
common
+
+
+ +
+
var data: ByteArray? = null
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/-unsafe-cursor/end.html b/2.x/okio/okio/-buffer/-unsafe-cursor/end.html new file mode 100644 index 0000000000..6e5b556337 --- /dev/null +++ b/2.x/okio/okio/-buffer/-unsafe-cursor/end.html @@ -0,0 +1,57 @@ + + + + end + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

end

+
+
+
+
common
+
+
+ +
+
var end: Int
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/-unsafe-cursor/expand-buffer.html b/2.x/okio/okio/-buffer/-unsafe-cursor/expand-buffer.html new file mode 100644 index 0000000000..6d6316daa2 --- /dev/null +++ b/2.x/okio/okio/-buffer/-unsafe-cursor/expand-buffer.html @@ -0,0 +1,67 @@ + + + + expandBuffer + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

expandBuffer

+
+
+
+
common
+
+
+ +
+
fun expandBuffer(minByteCount: Int): Long
+
+

Grow the buffer by adding a contiguous range of capacity in a single segment. This adds at least minByteCount bytes but may add up to a full segment of additional capacity.

As a side-effect this cursor will seek. It will move offset to the first byte of newly-added capacity. This is the size of the buffer prior to the expandBuffer() call.

If minByteCount bytes are available in the buffer's current tail segment that will be used; otherwise another segment will be allocated and appended. In either case this returns the number of bytes of capacity added to this buffer.

Warning: it is the caller’s responsibility to either write new data to every byte of the newly-allocated capacity, or to shrink the buffer to the data written. Failure to do so may cause serious security problems as the data in the returned buffers is not zero filled. Buffers may contain dirty pooled segments that hold very sensitive data from other parts of the current process.

Return

the number of bytes expanded by. Not less than minByteCount.

Parameters

minByteCount

the size of the contiguous capacity. Must be positive and not greater than the capacity size of a single segment (8 KiB).

+
+
+ +
+
+ +
+
fun expandBuffer(minByteCount: Int): Long
+
+

Parameters

minByteCount

the size of the contiguous capacity. Must be positive and not greater than the capacity size of a single segment (8 KiB).

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/-unsafe-cursor/index.html b/2.x/okio/okio/-buffer/-unsafe-cursor/index.html new file mode 100644 index 0000000000..a28e5e99ed --- /dev/null +++ b/2.x/okio/okio/-buffer/-unsafe-cursor/index.html @@ -0,0 +1,355 @@ + + + + UnsafeCursor + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

UnsafeCursor

+
+
+
class UnsafeCursor

A handle to the underlying data in a buffer. This handle is unsafe because it does not enforce its own invariants. Instead, it assumes a careful user who has studied Okio's implementation details and their consequences.

Buffer Internals

----------------

Most code should use Buffer as a black box: a class that holds 0 or more bytes of data with efficient APIs to append data to the end and to consume data from the front. Usually this is also the most efficient way to use buffers because it allows Okio to employ several optimizations, including:

  • Fast Allocation: Buffers use a shared pool of memory that is not zero-filled before use.

  • Fast Resize: A buffer's capacity can change without copying its contents.

  • Fast Move: Memory ownership can be reassigned from one buffer to another.

  • Fast Copy: Multiple buffers can share the same underlying memory.

  • Fast Encoding and Decoding: Common operations like UTF-8 encoding and decimal decoding do not require intermediate objects to be allocated.

These optimizations all leverage the way Okio stores data internally. Okio Buffers are implemented using a doubly-linked list of segments. Each segment is a contiguous range within a 8 KiB ByteArray. Each segment has two indexes, start, the offset of the first byte of the array containing application data, and end, the offset of the first byte beyond start whose data is undefined.

New buffers are empty and have no segments:

val buffer = Buffer()

We append 7 bytes of data to the end of our empty buffer. Internally, the buffer allocates a segment and writes its new data there. The lone segment has an 8 KiB byte array but only 7 bytes of data:

buffer.writeUtf8("sealion")

// [ 's', 'e', 'a', 'l', 'i', 'o', 'n', '?', '?', '?', ...]
// ^ ^
// start = 0 end = 7

When we read 4 bytes of data from the buffer, it finds its first segment and returns that data to us. As bytes are read the data is consumed. The segment tracks this by adjusting its internal indices.

buffer.readUtf8(4) // "seal"

// [ 's', 'e', 'a', 'l', 'i', 'o', 'n', '?', '?', '?', ...]
// ^ ^
// start = 4 end = 7

As we write data into a buffer we fill up its internal segments. When a write doesn't fit into a buffer's last segment, additional segments are allocated and appended to the linked list of segments. Each segment has its own start and end indexes tracking where the user's data begins and ends.

val xoxo = new Buffer()
xoxo.writeUtf8("xo".repeat(5_000))

// [ 'x', 'o', 'x', 'o', 'x', 'o', 'x', 'o', ..., 'x', 'o', 'x', 'o']
// ^ ^
// start = 0 end = 8192
//
// [ 'x', 'o', 'x', 'o', ..., 'x', 'o', 'x', 'o', '?', '?', '?', ...]
// ^ ^
// start = 0 end = 1808

The start index is always inclusive and the end index is always exclusive. The data preceding the start index is undefined, and the data at and following the end index is undefined.

After the last byte of a segment has been read, that segment may be returned to an internal segment pool. In addition to reducing the need to do garbage collection, segment pooling also saves the JVM from needing to zero-fill byte arrays. Okio doesn't need to zero-fill its arrays because it always writes memory before it reads it. But if you look at a segment in a debugger you may see its effects. In this example, one of the "xoxo" segments above is reused in an unrelated buffer:

val abc = new Buffer()
abc.writeUtf8("abc")

// [ 'a', 'b', 'c', 'o', 'x', 'o', 'x', 'o', ...]
// ^ ^
// start = 0 end = 3

There is an optimization in Buffer.clone() and other methods that allows two segments to share the same underlying byte array. Clones can't write to the shared byte array; instead they allocate a new (private) segment early.

val nana = new Buffer()
nana.writeUtf8("na".repeat(2_500))
nana.readUtf8(2) // "na"

// [ 'n', 'a', 'n', 'a', ..., 'n', 'a', 'n', 'a', '?', '?', '?', ...]
// ^ ^
// start = 2 end = 5000

nana2 = nana.clone()
nana2.writeUtf8("batman")

// [ 'n', 'a', 'n', 'a', ..., 'n', 'a', 'n', 'a', '?', '?', '?', ...]
// ^ ^
// start = 2 end = 5000
//
// [ 'b', 'a', 't', 'm', 'a', 'n', '?', '?', '?', ...]
// ^ ^
// start = 0 end = 6

Segments are not shared when the shared region is small (ie. less than 1 KiB). This is intended to prevent fragmentation in sharing-heavy use cases.

Unsafe Cursor API

-----------------

This class exposes privileged access to the internal byte arrays of a buffer. A cursor either references the data of a single segment, it is before the first segment (offset == -1), or it is after the last segment (offset == buffer.size).

Call UnsafeCursor.seek to move the cursor to the segment that contains a specified offset. After seeking, UnsafeCursor.data references the segment's internal byte array, UnsafeCursor.start is the segment's start and UnsafeCursor.end is its end.

Call UnsafeCursor.next to advance the cursor to the next segment. This returns -1 if there are no further segments in the buffer.

Use Buffer.readUnsafe to create a cursor to read buffer data and Buffer.readAndWriteUnsafe to create a cursor to read and write buffer data. In either case, always call UnsafeCursor.close when done with a cursor. This is convenient with Kotlin's use extension function. In this example we read all of the bytes in a buffer into a byte array:

val bufferBytes = ByteArray(buffer.size.toInt())

buffer.readUnsafe().use { cursor ->
while (cursor.next() != -1) {
System.arraycopy(cursor.data, cursor.start,
bufferBytes, cursor.offset.toInt(), cursor.end - cursor.start);
}
}

Change the capacity of a buffer with resizeBuffer. This is only permitted for read+write cursors. The buffer's size always changes from the end: shrinking it removes bytes from the end; growing it adds capacity to the end.

Warnings

--------

Most application developers should avoid this API. Those that must use this API should respect these warnings.

Don't mutate a cursor. This class has public, non-final fields because that is convenient for low-level I/O frameworks. Never assign values to these fields; instead use the cursor API to adjust these.

Never mutate data unless you have read+write access. You are on the honor system to never write the buffer in read-only mode. Read-only mode may be more efficient than read+write mode because it does not need to make private copies of shared segments.

Only access data in [start..end). Other data in the byte array is undefined! It may contain private or sensitive data from other parts of your process.

Always fill the new capacity when you grow a buffer. New capacity is not zero-filled and may contain data from other parts of your process. Avoid leaking this information by always writing something to the newly-allocated capacity. Do not assume that new capacity will be filled with 0; it will not be.

Do not access a buffer while is being accessed by a cursor. Even simple read-only operations like Buffer.clone are unsafe because they mark segments as shared.

Do not hard-code the segment size in your application. It is possible that segment sizes will change with advances in hardware. Future versions of Okio may even have heterogeneous segment sizes.

These warnings are intended to help you to use this API safely. It's here for developers that need absolutely the most throughput. Since that's you, here's one final performance tip. You can reuse instances of this class if you like. Use the overloads of Buffer.readUnsafe and Buffer.readAndWriteUnsafe that take a cursor and close it after use.

class UnsafeCursor : Closeable
+
+
+
+
+

Constructors

+
+
+
+
UnsafeCursor +
Link copied to clipboard
+
+
+
+
common
+
+
+
fun UnsafeCursor()
+
+
+
+
+
+

Functions

+
+
+
+
close +
Link copied to clipboard
+
+
+
+ +
+
+
+
fun close()
open override fun close()
+
+
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+
+
open operator fun equals(other: Any?): Boolean
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
expandBuffer +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun expandBuffer(minByteCount: Int): Long
+
+
Grow the buffer by adding a contiguous range of capacity in a single segment.
+
+
+ +
+
+ +
+
fun expandBuffer(minByteCount: Int): Long
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun hashCode(): Int
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
next +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun next(): Int
+
+
Seeks to the next range of bytes, advancing the offset by end - start.
+
+
+ +
+
+ +
+
fun next(): Int
+
+
+
+
+
+
+ +
+
+
resizeBuffer +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun resizeBuffer(newSize: Long): Long
+
+
Change the size of the buffer so that it equals newSize by either adding new capacity at the end or truncating the buffer at the end.
+
+
+ +
+
+ +
+
fun resizeBuffer(newSize: Long): Long
+
+
+
+
+
+
+ +
+
+
seek +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun seek(offset: Long): Int
+
+
Reposition the cursor so that the data at offset is readable at data[start].
+
+
+ +
+
+ +
+
fun seek(offset: Long): Int
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun toString(): String
open fun toString(): String
+
+
+
+
+
+
+
+

Properties

+
+
+
+
buffer +
Link copied to clipboard
+
+
+
+
var buffer: Buffer? = null
+
+
+
+
+ +
+
+
data +
Link copied to clipboard
+
+
+
+
var data: ByteArray? = null
+
+
+
+
+ +
+
+
end +
Link copied to clipboard
+
+
+
+
var end: Int
+
+
+
+
+ +
+
+
offset +
Link copied to clipboard
+
+
+
+
var offset: Long
+
+
+
+
+ +
+
+
readWrite +
Link copied to clipboard
+
+
+
+
var readWrite: Boolean = false
+
+
+
+
+ +
+
+
start +
Link copied to clipboard
+
+
+
+
var start: Int
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/-unsafe-cursor/next.html b/2.x/okio/okio/-buffer/-unsafe-cursor/next.html new file mode 100644 index 0000000000..61e78e9843 --- /dev/null +++ b/2.x/okio/okio/-buffer/-unsafe-cursor/next.html @@ -0,0 +1,67 @@ + + + + next + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

next

+
+
+
+
common
+
+
+ +
+
fun next(): Int
+
+

Seeks to the next range of bytes, advancing the offset by end - start. Returns the size of the readable range (at least 1), or -1 if we have reached the end of the buffer and there are no more bytes to read.

+
+
+ +
+
+ +
+
fun next(): Int
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/-unsafe-cursor/offset.html b/2.x/okio/okio/-buffer/-unsafe-cursor/offset.html new file mode 100644 index 0000000000..80b6d248e2 --- /dev/null +++ b/2.x/okio/okio/-buffer/-unsafe-cursor/offset.html @@ -0,0 +1,57 @@ + + + + offset + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

offset

+
+
+
+
common
+
+
+ +
+
var offset: Long
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/-unsafe-cursor/read-write.html b/2.x/okio/okio/-buffer/-unsafe-cursor/read-write.html new file mode 100644 index 0000000000..2288298f88 --- /dev/null +++ b/2.x/okio/okio/-buffer/-unsafe-cursor/read-write.html @@ -0,0 +1,57 @@ + + + + readWrite + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readWrite

+
+
+
+
common
+
+
+ +
+
var readWrite: Boolean = false
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/-unsafe-cursor/resize-buffer.html b/2.x/okio/okio/-buffer/-unsafe-cursor/resize-buffer.html new file mode 100644 index 0000000000..af5f86d8a1 --- /dev/null +++ b/2.x/okio/okio/-buffer/-unsafe-cursor/resize-buffer.html @@ -0,0 +1,67 @@ + + + + resizeBuffer + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

resizeBuffer

+
+
+
+
common
+
+
+ +
+
fun resizeBuffer(newSize: Long): Long
+
+

Change the size of the buffer so that it equals newSize by either adding new capacity at the end or truncating the buffer at the end. Newly added capacity may span multiple segments.

As a side-effect this cursor will seek. If the buffer is being enlarged it will move UnsafeCursor.offset to the first byte of newly-added capacity. This is the size of the buffer prior to the resizeBuffer() call. If the buffer is being shrunk it will move UnsafeCursor.offset to the end of the buffer.

Warning: it is the caller’s responsibility to write new data to every byte of the newly-allocated capacity. Failure to do so may cause serious security problems as the data in the returned buffers is not zero filled. Buffers may contain dirty pooled segments that hold very sensitive data from other parts of the current process.

Return

the previous size of the buffer.

+
+
+ +
+
+ +
+
fun resizeBuffer(newSize: Long): Long
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/-unsafe-cursor/seek.html b/2.x/okio/okio/-buffer/-unsafe-cursor/seek.html new file mode 100644 index 0000000000..5cffcf6e4b --- /dev/null +++ b/2.x/okio/okio/-buffer/-unsafe-cursor/seek.html @@ -0,0 +1,67 @@ + + + + seek + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

seek

+
+
+
+
common
+
+
+ +
+
fun seek(offset: Long): Int
+
+

Reposition the cursor so that the data at offset is readable at data[start]. Returns the number of bytes readable in data (at least 1), or -1 if there are no data to read.

+
+
+ +
+
+ +
+
fun seek(offset: Long): Int
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/-unsafe-cursor/start.html b/2.x/okio/okio/-buffer/-unsafe-cursor/start.html new file mode 100644 index 0000000000..6eb3c6de2f --- /dev/null +++ b/2.x/okio/okio/-buffer/-unsafe-cursor/start.html @@ -0,0 +1,57 @@ + + + + start + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

start

+
+
+
+
common
+
+
+ +
+
var start: Int
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/buffer.html b/2.x/okio/okio/-buffer/buffer.html new file mode 100644 index 0000000000..fc8711d986 --- /dev/null +++ b/2.x/okio/okio/-buffer/buffer.html @@ -0,0 +1,77 @@ + + + + buffer + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

buffer

+
+
+
+ +
+
+ +
+
open override fun buffer(): Buffer
+
+

Returns this source's internal buffer.

+
+
+
common
+
+
+ +
+
open override val buffer: Buffer
+
+

This source's internal buffer.

+
+
+ +
+
+ +
+
open override val buffer: Buffer
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/clear.html b/2.x/okio/okio/-buffer/clear.html new file mode 100644 index 0000000000..230889c994 --- /dev/null +++ b/2.x/okio/okio/-buffer/clear.html @@ -0,0 +1,67 @@ + + + + clear + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

clear

+
+
+
+
common
+
+
+ +
+
fun clear()
+
+

Discards all bytes in this buffer. Calling this method when you're done with a buffer will return its segments to the pool.

+
+
+ +
+
+ +
+
fun clear()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/clone.html b/2.x/okio/okio/-buffer/clone.html new file mode 100644 index 0000000000..43885af4fb --- /dev/null +++ b/2.x/okio/okio/-buffer/clone.html @@ -0,0 +1,53 @@ + + + + clone + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

clone

+
+
+ +
+
open override fun clone(): Buffer
+
+

Returns a deep copy of this buffer.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/close.html b/2.x/okio/okio/-buffer/close.html new file mode 100644 index 0000000000..f74084e88c --- /dev/null +++ b/2.x/okio/okio/-buffer/close.html @@ -0,0 +1,53 @@ + + + + close + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

close

+
+
+ +
+
open override fun close()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/complete-segment-byte-count.html b/2.x/okio/okio/-buffer/complete-segment-byte-count.html new file mode 100644 index 0000000000..0ea5956ad8 --- /dev/null +++ b/2.x/okio/okio/-buffer/complete-segment-byte-count.html @@ -0,0 +1,67 @@ + + + + completeSegmentByteCount + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

completeSegmentByteCount

+
+
+
+
common
+
+
+ +
+
fun completeSegmentByteCount(): Long
+
+

Returns the number of bytes in segments that are not writable. This is the number of bytes that can be flushed immediately to an underlying sink without harming throughput.

+
+
+ +
+
+ +
+
fun completeSegmentByteCount(): Long
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/copy-to.html b/2.x/okio/okio/-buffer/copy-to.html new file mode 100644 index 0000000000..3b4a4653f4 --- /dev/null +++ b/2.x/okio/okio/-buffer/copy-to.html @@ -0,0 +1,75 @@ + + + + copyTo + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

copyTo

+
+
+ +
+
+
+
fun copyTo(out: OutputStream, offset: Long = 0L, byteCount: Long = size - offset): Buffer
fun copyTo(out: Buffer, offset: Long = 0L, byteCount: Long): Buffer
+
+

Copy byteCount bytes from this, starting at offset, to out.

+
+
+ +
+
+ +
+
fun copyTo(out: Buffer, offset: Long = 0L, byteCount: Long): Buffer
fun copyTo(out: Buffer, offset: Long = 0L): Buffer
+
+
+
+
+
common
+
+
+ +
+
fun copyTo(out: Buffer, offset: Long = 0L): Buffer
+
+

Overload of copyTo with byteCount = size - offset, work around for https://youtrack.jetbrains.com/issue/KT-30847

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/copy.html b/2.x/okio/okio/-buffer/copy.html new file mode 100644 index 0000000000..254f4e128c --- /dev/null +++ b/2.x/okio/okio/-buffer/copy.html @@ -0,0 +1,67 @@ + + + + copy + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

copy

+
+
+
+
common
+
+
+ +
+
fun copy(): Buffer
+
+

Returns a deep copy of this buffer.

+
+
+ +
+
+ +
+
fun copy(): Buffer
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/emit-complete-segments.html b/2.x/okio/okio/-buffer/emit-complete-segments.html new file mode 100644 index 0000000000..f261f7bcd0 --- /dev/null +++ b/2.x/okio/okio/-buffer/emit-complete-segments.html @@ -0,0 +1,67 @@ + + + + emitCompleteSegments + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

emitCompleteSegments

+
+
+
+
common
+
+
+ +
+
open override fun emitCompleteSegments(): Buffer
+
+

Writes complete segments to the underlying sink, if one exists. Like flush, but weaker. Use this to limit the memory held in the buffer to a single segment. Typically application code will not need to call this: it is only necessary when application code writes directly to this sink's buffer.

BufferedSink b0 = new Buffer();
BufferedSink b1 = Okio.buffer(b0);
BufferedSink b2 = Okio.buffer(b1);

b2.buffer().write(new byte[20_000]);
assertEquals(20_000, b2.buffer().size());
assertEquals( 0, b1.buffer().size());
assertEquals( 0, b0.buffer().size());

b2.emitCompleteSegments();
assertEquals( 3_616, b2.buffer().size());
assertEquals( 0, b1.buffer().size());
assertEquals(16_384, b0.buffer().size()); // This example assumes 8192 byte segments.
+
+
+ +
+
+ +
+
open override fun emitCompleteSegments(): Buffer
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/emit.html b/2.x/okio/okio/-buffer/emit.html new file mode 100644 index 0000000000..903b7aafe7 --- /dev/null +++ b/2.x/okio/okio/-buffer/emit.html @@ -0,0 +1,67 @@ + + + + emit + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

emit

+
+
+
+
common
+
+
+ +
+
open override fun emit(): Buffer
+
+

Writes all buffered data to the underlying sink, if one exists. Like flush, but weaker. Call this before this buffered sink goes out of scope so that its data can reach its destination.

BufferedSink b0 = new Buffer();
BufferedSink b1 = Okio.buffer(b0);
BufferedSink b2 = Okio.buffer(b1);

b2.writeUtf8("hello");
assertEquals(5, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(0, b0.buffer().size());

b2.emit();
assertEquals(0, b2.buffer().size());
assertEquals(5, b1.buffer().size());
assertEquals(0, b0.buffer().size());

b1.emit();
assertEquals(0, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(5, b0.buffer().size());
+
+
+ +
+
+ +
+
open override fun emit(): Buffer
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/equals.html b/2.x/okio/okio/-buffer/equals.html new file mode 100644 index 0000000000..52e12aee5a --- /dev/null +++ b/2.x/okio/okio/-buffer/equals.html @@ -0,0 +1,53 @@ + + + + equals + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

equals

+
+
+ +
+
open operator override fun equals(other: Any?): Boolean
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/exhausted.html b/2.x/okio/okio/-buffer/exhausted.html new file mode 100644 index 0000000000..8be6d357fb --- /dev/null +++ b/2.x/okio/okio/-buffer/exhausted.html @@ -0,0 +1,53 @@ + + + + exhausted + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

exhausted

+
+
+ +
+
open override fun exhausted(): Boolean
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/flush.html b/2.x/okio/okio/-buffer/flush.html new file mode 100644 index 0000000000..29c08beaa4 --- /dev/null +++ b/2.x/okio/okio/-buffer/flush.html @@ -0,0 +1,53 @@ + + + + flush + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

flush

+
+
+ +
+
open override fun flush()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/get.html b/2.x/okio/okio/-buffer/get.html new file mode 100644 index 0000000000..8ebd111115 --- /dev/null +++ b/2.x/okio/okio/-buffer/get.html @@ -0,0 +1,67 @@ + + + + get + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

get

+
+
+
+
common
+
+
+ +
+
operator fun get(pos: Long): Byte
+
+

Returns the byte at pos.

+
+
+ +
+
+ +
+
@JvmName(name = "getByte")
operator fun get(pos: Long): Byte
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/hash-code.html b/2.x/okio/okio/-buffer/hash-code.html new file mode 100644 index 0000000000..0f39b15c1b --- /dev/null +++ b/2.x/okio/okio/-buffer/hash-code.html @@ -0,0 +1,53 @@ + + + + hashCode + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hashCode

+
+
+ +
+
open override fun hashCode(): Int
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/hmac-sha1.html b/2.x/okio/okio/-buffer/hmac-sha1.html new file mode 100644 index 0000000000..528d999528 --- /dev/null +++ b/2.x/okio/okio/-buffer/hmac-sha1.html @@ -0,0 +1,57 @@ + + + + hmacSha1 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hmacSha1

+
+
+
+
common
+
+
+ +
+
fun hmacSha1(key: ByteString): ByteString
+
+

Returns the 160-bit SHA-1 HMAC of this buffer.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/hmac-sha256.html b/2.x/okio/okio/-buffer/hmac-sha256.html new file mode 100644 index 0000000000..71b0bc02de --- /dev/null +++ b/2.x/okio/okio/-buffer/hmac-sha256.html @@ -0,0 +1,57 @@ + + + + hmacSha256 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hmacSha256

+
+
+
+
common
+
+
+ +
+
fun hmacSha256(key: ByteString): ByteString
+
+

Returns the 256-bit SHA-256 HMAC of this buffer.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/hmac-sha512.html b/2.x/okio/okio/-buffer/hmac-sha512.html new file mode 100644 index 0000000000..35da80d2c8 --- /dev/null +++ b/2.x/okio/okio/-buffer/hmac-sha512.html @@ -0,0 +1,57 @@ + + + + hmacSha512 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hmacSha512

+
+
+
+
common
+
+
+ +
+
fun hmacSha512(key: ByteString): ByteString
+
+

Returns the 512-bit SHA-512 HMAC of this buffer.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/index-of-element.html b/2.x/okio/okio/-buffer/index-of-element.html new file mode 100644 index 0000000000..c2b00c602f --- /dev/null +++ b/2.x/okio/okio/-buffer/index-of-element.html @@ -0,0 +1,53 @@ + + + + indexOfElement + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

indexOfElement

+
+
+ +
+
open override fun indexOfElement(targetBytes: ByteString): Long
open override fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/index-of.html b/2.x/okio/okio/-buffer/index-of.html new file mode 100644 index 0000000000..eead4cea5a --- /dev/null +++ b/2.x/okio/okio/-buffer/index-of.html @@ -0,0 +1,59 @@ + + + + indexOf + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

indexOf

+
+
+ +
+
open override fun indexOf(b: Byte): Long
open override fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long
open override fun indexOf(bytes: ByteString): Long
open override fun indexOf(bytes: ByteString, fromIndex: Long): Long
+
+
+
+ +
+
open override fun indexOf(b: Byte, fromIndex: Long): Long
+
+

Returns the index of b in this at or beyond fromIndex, or -1 if this buffer does not contain b in that range.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/index.html b/2.x/okio/okio/-buffer/index.html new file mode 100644 index 0000000000..534276104c --- /dev/null +++ b/2.x/okio/okio/-buffer/index.html @@ -0,0 +1,2513 @@ + + + + Buffer + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Buffer

+
+
+
class Buffer : BufferedSource, BufferedSink

A collection of bytes in memory.

Moving data from one buffer to another is fast. Instead of copying bytes from one place in memory to another, this class just changes ownership of the underlying byte arrays.

This buffer grows with your data. Just like ArrayList, each buffer starts small. It consumes only the memory it needs to.

This buffer pools its byte arrays. When you allocate a byte array in Java, the runtime must zero-fill the requested array before returning it to you. Even if you're going to write over that space anyway. This class avoids zero-fill and GC churn by pooling byte arrays.

class Buffer : BufferedSource, BufferedSink, Cloneable, ByteChannel
+
+
+
+
+

Constructors

+
+
+
+
Buffer +
Link copied to clipboard
+
+
+
+
common
+
+
+
fun Buffer()
+
+
+
+
+
+

Types

+
+
+
+
UnsafeCursor +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
class UnsafeCursor
+
+
A handle to the underlying data in a buffer.
+
+
+ +
+
+ +
+
class UnsafeCursor : Closeable
+
+
+
+
+
+
+
+

Functions

+
+
+
+
buffer +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun buffer(): Buffer
+
+
Returns this source's internal buffer.
+
+
+
+
+ +
+
+
clear +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun clear()
+
+
Discards all bytes in this buffer.
+
+
+ +
+
+ +
+
fun clear()
+
+
+
+
+
+
+ +
+
+
clone +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun clone(): Buffer
+
+
Returns a deep copy of this buffer.
+
+
+
+
+ +
+
+
close +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun close()
+
+
+
+
+
common
+
+
+ +
+
abstract override fun close()
+
+
Closes this source and releases the resources held by this source.
+
+
+
+
+ +
+
+
completeSegmentByteCount +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun completeSegmentByteCount(): Long
+
+
Returns the number of bytes in segments that are not writable.
+
+
+ +
+
+ +
+
fun completeSegmentByteCount(): Long
+
+
+
+
+
+
+ +
+
+
copy +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun copy(): Buffer
+
+
Returns a deep copy of this buffer.
+
+
+ +
+
+ +
+
fun copy(): Buffer
+
+
+
+
+
+
+ +
+
+
copyTo +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun copyTo(out: Buffer, offset: Long = 0L): Buffer
+
+
Overload of copyTo with byteCount = size - offset, work around for https://youtrack.jetbrains.
+
+
+ +
+
+ +
+
fun copyTo(out: Buffer, offset: Long = 0L): Buffer
+
+
+
+
+ +
+
+ +
+
fun copyTo(out: OutputStream, offset: Long = 0L, byteCount: Long = size - offset): Buffer
+
+
Copy byteCount bytes from this, starting at offset, to out.
+
+
+
common
+
+
+ +
+
fun copyTo(out: Buffer, offset: Long = 0L, byteCount: Long): Buffer
+
+
Copy byteCount bytes from this, starting at offset, to out.
+
+
+ +
+
+ +
+
fun copyTo(out: Buffer, offset: Long = 0L, byteCount: Long): Buffer
+
+
+
+
+
+
+ +
+
+
emit +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open override fun emit(): Buffer
+
+
Writes all buffered data to the underlying sink, if one exists.
+
+
+ +
+
+ +
+
open override fun emit(): Buffer
+
+
+
+
+
+
+ +
+
+
emitCompleteSegments +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open override fun emitCompleteSegments(): Buffer
+
+
Writes complete segments to the underlying sink, if one exists.
+
+
+ +
+
+ +
+
open override fun emitCompleteSegments(): Buffer
+
+
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+
+
open operator fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
exhausted +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun exhausted(): Boolean
+
+
+
+
+
common
+
+
+ +
+
abstract fun exhausted(): Boolean
+
+
Returns true if there are no more bytes in this source.
+
+
+
+
+ +
+
+
flush +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun flush()
+
+
+
+
+
common
+
+
+ +
+
abstract override fun flush()
+
+
Writes all buffered data to the underlying sink, if one exists.
+
+
+
+
+ +
+
+
get +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
operator fun get(pos: Long): Byte
+
+
Returns the byte at pos.
+
+
+ +
+
+ +
+
@JvmName(name = "getByte")
operator fun get(pos: Long): Byte
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun hashCode(): Int
open override fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
hmacSha1 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun hmacSha1(key: ByteString): ByteString
+
+
Returns the 160-bit SHA-1 HMAC of this buffer.
+
+
+ +
+
+ +
+
fun hmacSha1(key: ByteString): ByteString
+
+
Returns the 160-bit SHA-1 HMAC of this buffer.
+
+
+
+
+ +
+
+
hmacSha256 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun hmacSha256(key: ByteString): ByteString
+
+
Returns the 256-bit SHA-256 HMAC of this buffer.
+
+
+ +
+
+ +
+
fun hmacSha256(key: ByteString): ByteString
+
+
Returns the 256-bit SHA-256 HMAC of this buffer.
+
+
+
+
+ +
+
+
hmacSha512 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun hmacSha512(key: ByteString): ByteString
+
+
Returns the 512-bit SHA-512 HMAC of this buffer.
+
+
+ +
+
+ +
+
fun hmacSha512(key: ByteString): ByteString
+
+
Returns the 512-bit SHA-512 HMAC of this buffer.
+
+
+
+
+ +
+
+
indexOf +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun indexOf(b: Byte): Long
open override fun indexOf(bytes: ByteString): Long
open override fun indexOf(bytes: ByteString, fromIndex: Long): Long
open override fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long
+
+
+
+
+
common
+
+
+ +
+
abstract fun indexOf(b: Byte): Long
+
+
Equivalent to indexOf(b, 0).
+
+
+
common
+
+
+ +
+
abstract fun indexOf(bytes: ByteString): Long
+
+
Equivalent to indexOf(bytes, 0).
+
+
+ +
+
+ +
+
open override fun indexOf(b: Byte, fromIndex: Long): Long
+
+
Returns the index of b in this at or beyond fromIndex, or -1 if this buffer does not contain b in that range.
+
+
+
common
+
+
+ +
+
abstract fun indexOf(b: Byte, fromIndex: Long): Long
+
+
Returns the index of the first b in the buffer at or after fromIndex.
+
+
+
common
+
+
+ +
+
abstract fun indexOf(bytes: ByteString, fromIndex: Long): Long
+
+
Returns the index of the first match for bytes in the buffer at or after fromIndex.
+
+
+
common
+
+
+ +
+
abstract fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long
+
+
Returns the index of b if it is found in the range of fromIndex inclusive to toIndex exclusive.
+
+
+
+
+ +
+
+
indexOfElement +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun indexOfElement(targetBytes: ByteString): Long
open override fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long
+
+
+
+
+
common
+
+
+ +
+
abstract fun indexOfElement(targetBytes: ByteString): Long
+
+
+
+
+
common
+
+
+ +
+
abstract fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long
+
+
Returns the first index in this buffer that is at or after fromIndex and that contains any of the bytes in targetBytes.
+
+
+
+
+ +
+
+
inputStream +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun inputStream(): InputStream
+
+
Returns an input stream that reads from this source.
+
+
+
+
+ +
+
+
isOpen +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun isOpen(): Boolean
+
+
+
+
+
+
+ +
+
+
md5 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun md5(): ByteString
+
+
+
+
+ +
+
+ +
+
fun md5(): ByteString
+
+
Returns the 128-bit MD5 hash of this buffer.
+
+
+
+
+ +
+
+
outputStream +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun outputStream(): OutputStream
+
+
Returns an output stream that writes to this sink.
+
+
+
+
+ +
+
+
peek +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun peek(): BufferedSource
+
+
+
+
+
common
+
+
+ +
+
abstract fun peek(): BufferedSource
+
+
Returns a new BufferedSource that can read data from this BufferedSource without consuming it.
+
+
+
+
+ +
+
+
rangeEquals +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun rangeEquals(offset: Long, bytes: ByteString): Boolean
open override fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean
+
+
+
+
+
common
+
+
+ +
+
abstract fun rangeEquals(offset: Long, bytes: ByteString): Boolean
+
+
Returns true if the bytes at offset in this source equal bytes.
+
+
+
common
+
+
+ +
+
abstract fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean
+
+
Returns true if byteCount bytes at offset in this source equal bytes at bytesOffset.
+
+
+
+
+ +
+
+
read +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun read(sink: ByteBuffer): Int
open override fun read(sink: ByteArray): Int
open override fun read(sink: ByteArray, offset: Int, byteCount: Int): Int
+
+
+
+
+
common
+
+
+ +
+
abstract fun read(sink: ByteArray): Int
+
+
Removes up to sink.length bytes from this and copies them into sink.
+
+
+ +
+
+ +
+
open override fun read(sink: Buffer, byteCount: Long): Long
+
+
Removes at least 1, and up to byteCount bytes from this and appends them to sink.
+
+
+
common
+
+
+ +
+
abstract fun read(sink: Buffer, byteCount: Long): Long
+
+
Removes at least 1, and up to byteCount bytes from this and appends them to sink.
+
+
+
common
+
+
+ +
+
abstract fun read(sink: ByteArray, offset: Int, byteCount: Int): Int
+
+
Removes up to byteCount bytes from this and copies them into sink at offset.
+
+
+
+
+ +
+
+
readAll +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun readAll(sink: Sink): Long
+
+
+
+
+
common
+
+
+ +
+
abstract fun readAll(sink: Sink): Long
+
+
Removes all bytes from this and appends them to sink.
+
+
+
+
+ +
+
+
readAndWriteUnsafe +
Link copied to clipboard
+
+
+
+ +
+
+
+
fun readAndWriteUnsafe(unsafeCursor: Buffer.UnsafeCursor = UnsafeCursor()): Buffer.UnsafeCursor
fun readAndWriteUnsafe(unsafeCursor: Buffer.UnsafeCursor = UnsafeCursor()): Buffer.UnsafeCursor
+
+
+
+
+
+
+ +
+
+
readByte +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun readByte(): Byte
+
+
+
+
+
common
+
+
+ +
+
abstract fun readByte(): Byte
+
+
Removes a byte from this source and returns it.
+
+
+
+
+ +
+
+
readByteArray +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun readByteArray(): ByteArray
open override fun readByteArray(byteCount: Long): ByteArray
+
+
+
+
+
common
+
+
+ +
+
abstract fun readByteArray(): ByteArray
+
+
Removes all bytes from this and returns them as a byte array.
+
+
+
common
+
+
+ +
+
abstract fun readByteArray(byteCount: Long): ByteArray
+
+
Removes byteCount bytes from this and returns them as a byte array.
+
+
+
+
+ +
+
+
readByteString +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun readByteString(): ByteString
open override fun readByteString(byteCount: Long): ByteString
+
+
+
+
+
common
+
+
+ +
+
abstract fun readByteString(): ByteString
+
+
Removes all bytes from this and returns them as a byte string.
+
+
+
common
+
+
+ +
+
abstract fun readByteString(byteCount: Long): ByteString
+
+
Removes byteCount bytes from this and returns them as a byte string.
+
+
+
+
+ +
+
+
readDecimalLong +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun readDecimalLong(): Long
+
+
+
+
+
common
+
+
+ +
+
abstract fun readDecimalLong(): Long
+
+
Reads a long from this source in signed decimal form (i.e., as a string in base 10 with optional leading '-').
+
+
+
+
+ +
+
+
readFrom +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun readFrom(input: InputStream): Buffer
+
+
Read and exhaust bytes from input into this.
+
+ +
+
fun readFrom(input: InputStream, byteCount: Long): Buffer
+
+
Read byteCount bytes from input into this.
+
+
+
+
+ +
+
+
readFully +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun readFully(sink: ByteArray)
open override fun readFully(sink: Buffer, byteCount: Long)
+
+
+
+
+
common
+
+
+ +
+
abstract fun readFully(sink: ByteArray)
+
+
Removes exactly sink.length bytes from this and copies them into sink.
+
+
+
common
+
+
+ +
+
abstract fun readFully(sink: Buffer, byteCount: Long)
+
+
Removes exactly byteCount bytes from this and appends them to sink.
+
+
+
+
+ +
+
+
readHexadecimalUnsignedLong +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun readHexadecimalUnsignedLong(): Long
+
+
+
+
+
common
+
+
+ +
+
abstract fun readHexadecimalUnsignedLong(): Long
+
+
Reads a long form this source in hexadecimal form (i.e., as a string in base 16).
+
+
+
+
+ +
+
+
readInt +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun readInt(): Int
+
+
+
+
+
common
+
+
+ +
+
abstract fun readInt(): Int
+
+
Removes four bytes from this source and returns a big-endian int.
+
+
+
+
+ +
+
+
readIntLe +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun readIntLe(): Int
+
+
+
+
+
common
+
+
+ +
+
abstract fun readIntLe(): Int
+
+
Removes four bytes from this source and returns a little-endian int.
+
+
+
+
+ +
+
+
readLong +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun readLong(): Long
+
+
+
+
+
common
+
+
+ +
+
abstract fun readLong(): Long
+
+
Removes eight bytes from this source and returns a big-endian long.
+
+
+
+
+ +
+
+
readLongLe +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun readLongLe(): Long
+
+
+
+
+
common
+
+
+ +
+
abstract fun readLongLe(): Long
+
+
Removes eight bytes from this source and returns a little-endian long.
+
+
+
+
+ +
+
+
readShort +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun readShort(): Short
+
+
+
+
+
common
+
+
+ +
+
abstract fun readShort(): Short
+
+
Removes two bytes from this source and returns a big-endian short.
+
+
+
+
+ +
+
+
readShortLe +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun readShortLe(): Short
+
+
+
+
+
common
+
+
+ +
+
abstract fun readShortLe(): Short
+
+
Removes two bytes from this source and returns a little-endian short.
+
+
+
+
+ +
+
+
readString +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun readString(charset: Charset): String
+
+
Removes all bytes from this, decodes them as charset, and returns the string.
+
+ +
+
open override fun readString(byteCount: Long, charset: Charset): String
+
+
Removes byteCount bytes from this, decodes them as charset, and returns the string.
+
+
+
+
+ +
+
+
readUnsafe +
Link copied to clipboard
+
+
+
+ +
+
+
+
fun readUnsafe(unsafeCursor: Buffer.UnsafeCursor = UnsafeCursor()): Buffer.UnsafeCursor
fun readUnsafe(unsafeCursor: Buffer.UnsafeCursor = UnsafeCursor()): Buffer.UnsafeCursor
+
+
+
+
+
+
+ +
+
+
readUtf8 +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun readUtf8(): String
open override fun readUtf8(byteCount: Long): String
+
+
+
+
+
common
+
+
+ +
+
abstract fun readUtf8(): String
+
+
Removes all bytes from this, decodes them as UTF-8, and returns the string.
+
+
+
common
+
+
+ +
+
abstract fun readUtf8(byteCount: Long): String
+
+
Removes byteCount bytes from this, decodes them as UTF-8, and returns the string.
+
+
+
+
+ +
+
+
readUtf8CodePoint +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun readUtf8CodePoint(): Int
+
+
+
+
+
common
+
+
+ +
+
abstract fun readUtf8CodePoint(): Int
+
+
Removes and returns a single UTF-8 code point, reading between 1 and 4 bytes as necessary.
+
+
+
+
+ +
+
+
readUtf8Line +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun readUtf8Line(): String?
+
+
+
+
+
common
+
+
+ +
+
abstract fun readUtf8Line(): String?
+
+
Removes and returns characters up to but not including the next line break.
+
+
+
+
+ +
+
+
readUtf8LineStrict +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun readUtf8LineStrict(): String
open override fun readUtf8LineStrict(limit: Long): String
+
+
+
+
+
common
+
+
+ +
+
abstract fun readUtf8LineStrict(): String
+
+
Removes and returns characters up to but not including the next line break.
+
+
+
common
+
+
+ +
+
abstract fun readUtf8LineStrict(limit: Long): String
+
+
Like readUtf8LineStrict, except this allows the caller to specify the longest allowed match.
+
+
+
+
+ +
+
+
request +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun request(byteCount: Long): Boolean
+
+
+
+
+
common
+
+
+ +
+
abstract fun request(byteCount: Long): Boolean
+
+
Returns true when the buffer contains at least byteCount bytes, expanding it as necessary.
+
+
+
+
+ +
+
+
require +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun require(byteCount: Long)
+
+
+
+
+
common
+
+
+ +
+
abstract fun require(byteCount: Long)
+
+
Returns when the buffer contains at least byteCount bytes.
+
+
+
+
+ +
+
+
select +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun select(options: Options): Int
+
+
+
+
+
common
+
+
+ +
+
abstract fun select(options: Options): Int
+
+
Finds the first string in options that is a prefix of this buffer, consumes it from this buffer, and returns its index.
+
+
+
+
+ +
+
+
sha1 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun sha1(): ByteString
+
+
+
+
+ +
+
+ +
+
fun sha1(): ByteString
+
+
Returns the 160-bit SHA-1 hash of this buffer.
+
+
+
+
+ +
+
+
sha256 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun sha256(): ByteString
+
+
+
+
+ +
+
+ +
+
fun sha256(): ByteString
+
+
Returns the 256-bit SHA-256 hash of this buffer.
+
+
+
+
+ +
+
+
sha512 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun sha512(): ByteString
+
+
+
+
+ +
+
+ +
+
fun sha512(): ByteString
+
+
Returns the 512-bit SHA-512 hash of this buffer.
+
+
+
+
+ +
+
+
skip +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open override fun skip(byteCount: Long)
+
+
Discards byteCount bytes from the head of this buffer.
+
+
+ +
+
+ +
+
open override fun skip(byteCount: Long)
+
+
+
+
+
+
+ +
+
+
snapshot +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun snapshot(): ByteString
+
+
Returns an immutable copy of this buffer as a byte string.
+
+
+ +
+
+ +
+
fun snapshot(): ByteString
+
+
+
+
+
common
+
+
+ +
+
fun snapshot(byteCount: Int): ByteString
+
+
Returns an immutable copy of the first byteCount bytes of this buffer as a byte string.
+
+
+ +
+
+ +
+
fun snapshot(byteCount: Int): ByteString
+
+
+
+
+
+
+ +
+
+
timeout +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun timeout(): Timeout
+
+
Returns the timeout for this source.
+
+
+
common
+
+
+ +
+
abstract fun timeout(): Timeout
+
+
Returns the timeout for this source.
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open fun toString(): String
+
+
+
+
+ +
+
+ +
+
open override fun toString(): String
+
+
Returns a human-readable string that describes the contents of this buffer.
+
+
+
+
+ +
+
+
write +
Link copied to clipboard
+
+
+
+ +
+
+
+
open override fun write(source: ByteBuffer): Int
open override fun write(byteString: ByteString): Buffer
open override fun write(source: Buffer, byteCount: Long)
open override fun write(byteString: ByteString, offset: Int, byteCount: Int): Buffer
open override fun write(byteString: ByteString): Buffer
open override fun write(byteString: ByteString, offset: Int, byteCount: Int): Buffer
+
+
+
+
+
common
+
+
+ +
+
open override fun write(source: ByteArray): Buffer
+
+
Like OutputStream.
+
+
+ +
+
+ +
+
open override fun write(source: ByteArray): Buffer
+
+
+
+
+
common
+
+
+ +
+
open override fun write(source: Source, byteCount: Long): Buffer
+
+
Removes byteCount bytes from source and appends them to this sink.
+
+
+ +
+
+ +
+
open override fun write(source: Source, byteCount: Long): Buffer
+
+
+
+
+
common
+
+
+ +
+
abstract fun write(source: Buffer, byteCount: Long)
+
+
Removes byteCount bytes from source and appends them to this.
+
+
+
common
+
+
+ +
+
open override fun write(source: ByteArray, offset: Int, byteCount: Int): Buffer
+
+
Like OutputStream.
+
+
+ +
+
+ +
+
open override fun write(source: ByteArray, offset: Int, byteCount: Int): Buffer
+
+
+
+
+
+
+ +
+
+
writeAll +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun writeAll(source: Source): Long
+
+
+
+
+
common
+
+
+ +
+
abstract fun writeAll(source: Source): Long
+
+
Removes all bytes from source and appends them to this sink.
+
+
+
+
+ +
+
+
writeByte +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open override fun writeByte(b: Int): Buffer
+
+
Writes a byte to this sink.
+
+
+ +
+
+ +
+
open override fun writeByte(b: Int): Buffer
+
+
+
+
+
+
+ +
+
+
writeDecimalLong +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open override fun writeDecimalLong(v: Long): Buffer
+
+
Writes a long to this sink in signed decimal form (i.e., as a string in base 10).
+
+
+ +
+
+ +
+
open override fun writeDecimalLong(v: Long): Buffer
+
+
+
+
+
+
+ +
+
+
writeHexadecimalUnsignedLong +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open override fun writeHexadecimalUnsignedLong(v: Long): Buffer
+
+
Writes a long to this sink in hexadecimal form (i.e., as a string in base 16).
+
+
+ +
+
+ +
+
open override fun writeHexadecimalUnsignedLong(v: Long): Buffer
+
+
+
+
+
+
+ +
+
+
writeInt +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open override fun writeInt(i: Int): Buffer
+
+
Writes a big-endian int to this sink using four bytes.
+
+
+ +
+
+ +
+
open override fun writeInt(i: Int): Buffer
+
+
+
+
+
+
+ +
+
+
writeIntLe +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open override fun writeIntLe(i: Int): Buffer
+
+
Writes a little-endian int to this sink using four bytes.
+
+
+ +
+
+ +
+
open override fun writeIntLe(i: Int): Buffer
+
+
+
+
+
+
+ +
+
+
writeLong +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open override fun writeLong(v: Long): Buffer
+
+
Writes a big-endian long to this sink using eight bytes.
+
+
+ +
+
+ +
+
open override fun writeLong(v: Long): Buffer
+
+
+
+
+
+
+ +
+
+
writeLongLe +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open override fun writeLongLe(v: Long): Buffer
+
+
Writes a little-endian long to this sink using eight bytes.
+
+
+ +
+
+ +
+
open override fun writeLongLe(v: Long): Buffer
+
+
+
+
+
+
+ +
+
+
writeShort +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open override fun writeShort(s: Int): Buffer
+
+
Writes a big-endian short to this sink using two bytes.
+
+
+ +
+
+ +
+
open override fun writeShort(s: Int): Buffer
+
+
+
+
+
+
+ +
+
+
writeShortLe +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open override fun writeShortLe(s: Int): Buffer
+
+
Writes a little-endian short to this sink using two bytes.
+
+
+ +
+
+ +
+
open override fun writeShortLe(s: Int): Buffer
+
+
+
+
+
+
+ +
+
+
writeString +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun writeString(string: String, charset: Charset): Buffer
open override fun writeString(string: String, beginIndex: Int, endIndex: Int, charset: Charset): Buffer
+
+
+
+
+
+
+ +
+
+
writeTo +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun writeTo(out: OutputStream, byteCount: Long = size): Buffer
+
+
Write byteCount bytes from this to out.
+
+
+
+
+ +
+
+
writeUtf8 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open override fun writeUtf8(string: String): Buffer
+
+
Encodes string in UTF-8 and writes it to this sink.
+
+
+ +
+
+ +
+
open override fun writeUtf8(string: String): Buffer
+
+
+
+
+
common
+
+
+ +
+
open override fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): Buffer
+
+
Encodes the characters at beginIndex up to endIndex from string in UTF-8 and writes it to this sink.
+
+
+ +
+
+ +
+
open override fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): Buffer
+
+
+
+
+
+
+ +
+
+
writeUtf8CodePoint +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open override fun writeUtf8CodePoint(codePoint: Int): Buffer
+
+
Encodes codePoint in UTF-8 and writes it to this sink.
+
+
+ +
+
+ +
+
open override fun writeUtf8CodePoint(codePoint: Int): Buffer
+
+
+
+
+
+
+
+

Properties

+
+
+
+
buffer +
Link copied to clipboard
+
+
+
+
+
+
open override val buffer: Buffer
This source's internal buffer.
open override val buffer: Buffer
+
+
+
+
+ +
+
+
size +
Link copied to clipboard
+
+
+
+
var size: Long = 0L
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/input-stream.html b/2.x/okio/okio/-buffer/input-stream.html new file mode 100644 index 0000000000..3723e35fa1 --- /dev/null +++ b/2.x/okio/okio/-buffer/input-stream.html @@ -0,0 +1,53 @@ + + + + inputStream + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

inputStream

+
+
+ +
+
open override fun inputStream(): InputStream
+
+

Returns an input stream that reads from this source.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/is-open.html b/2.x/okio/okio/-buffer/is-open.html new file mode 100644 index 0000000000..3693e206fe --- /dev/null +++ b/2.x/okio/okio/-buffer/is-open.html @@ -0,0 +1,53 @@ + + + + isOpen + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

isOpen

+
+
+ +
+
open override fun isOpen(): Boolean
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/md5.html b/2.x/okio/okio/-buffer/md5.html new file mode 100644 index 0000000000..398eb0e918 --- /dev/null +++ b/2.x/okio/okio/-buffer/md5.html @@ -0,0 +1,67 @@ + + + + md5 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

md5

+
+
+
+
common
+
+
+ +
+
fun md5(): ByteString
+
+
+
+
+ +
+
+ +
+
fun md5(): ByteString
+
+

Returns the 128-bit MD5 hash of this buffer.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/output-stream.html b/2.x/okio/okio/-buffer/output-stream.html new file mode 100644 index 0000000000..8c2e6cf33e --- /dev/null +++ b/2.x/okio/okio/-buffer/output-stream.html @@ -0,0 +1,53 @@ + + + + outputStream + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

outputStream

+
+
+ +
+
open override fun outputStream(): OutputStream
+
+

Returns an output stream that writes to this sink.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/peek.html b/2.x/okio/okio/-buffer/peek.html new file mode 100644 index 0000000000..d0315def1f --- /dev/null +++ b/2.x/okio/okio/-buffer/peek.html @@ -0,0 +1,53 @@ + + + + peek + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

peek

+
+
+ +
+
open override fun peek(): BufferedSource
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/range-equals.html b/2.x/okio/okio/-buffer/range-equals.html new file mode 100644 index 0000000000..b02f4bae4c --- /dev/null +++ b/2.x/okio/okio/-buffer/range-equals.html @@ -0,0 +1,53 @@ + + + + rangeEquals + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

rangeEquals

+
+
+ +
+
open override fun rangeEquals(offset: Long, bytes: ByteString): Boolean
open override fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-all.html b/2.x/okio/okio/-buffer/read-all.html new file mode 100644 index 0000000000..6c9455df91 --- /dev/null +++ b/2.x/okio/okio/-buffer/read-all.html @@ -0,0 +1,53 @@ + + + + readAll + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readAll

+
+
+ +
+
open override fun readAll(sink: Sink): Long
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-and-write-unsafe.html b/2.x/okio/okio/-buffer/read-and-write-unsafe.html new file mode 100644 index 0000000000..bea0b7a518 --- /dev/null +++ b/2.x/okio/okio/-buffer/read-and-write-unsafe.html @@ -0,0 +1,55 @@ + + + + readAndWriteUnsafe + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readAndWriteUnsafe

+
+
+ +
+
+
+
fun readAndWriteUnsafe(unsafeCursor: Buffer.UnsafeCursor = UnsafeCursor()): Buffer.UnsafeCursor
fun readAndWriteUnsafe(unsafeCursor: Buffer.UnsafeCursor = UnsafeCursor()): Buffer.UnsafeCursor
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-byte-array.html b/2.x/okio/okio/-buffer/read-byte-array.html new file mode 100644 index 0000000000..592af151f1 --- /dev/null +++ b/2.x/okio/okio/-buffer/read-byte-array.html @@ -0,0 +1,53 @@ + + + + readByteArray + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readByteArray

+
+
+ +
+
open override fun readByteArray(): ByteArray
open override fun readByteArray(byteCount: Long): ByteArray
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-byte-string.html b/2.x/okio/okio/-buffer/read-byte-string.html new file mode 100644 index 0000000000..393acc15fc --- /dev/null +++ b/2.x/okio/okio/-buffer/read-byte-string.html @@ -0,0 +1,53 @@ + + + + readByteString + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readByteString

+
+
+ +
+
open override fun readByteString(): ByteString
open override fun readByteString(byteCount: Long): ByteString
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-byte.html b/2.x/okio/okio/-buffer/read-byte.html new file mode 100644 index 0000000000..8ffaa1f04a --- /dev/null +++ b/2.x/okio/okio/-buffer/read-byte.html @@ -0,0 +1,53 @@ + + + + readByte + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readByte

+
+
+ +
+
open override fun readByte(): Byte
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-decimal-long.html b/2.x/okio/okio/-buffer/read-decimal-long.html new file mode 100644 index 0000000000..12385db890 --- /dev/null +++ b/2.x/okio/okio/-buffer/read-decimal-long.html @@ -0,0 +1,53 @@ + + + + readDecimalLong + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readDecimalLong

+
+
+ +
+
open override fun readDecimalLong(): Long
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-from.html b/2.x/okio/okio/-buffer/read-from.html new file mode 100644 index 0000000000..a9b826aa88 --- /dev/null +++ b/2.x/okio/okio/-buffer/read-from.html @@ -0,0 +1,59 @@ + + + + readFrom + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readFrom

+
+
+ +
+
fun readFrom(input: InputStream): Buffer
+
+

Read and exhaust bytes from input into this.

+
+ +
+
fun readFrom(input: InputStream, byteCount: Long): Buffer
+
+

Read byteCount bytes from input into this.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-fully.html b/2.x/okio/okio/-buffer/read-fully.html new file mode 100644 index 0000000000..73902b3386 --- /dev/null +++ b/2.x/okio/okio/-buffer/read-fully.html @@ -0,0 +1,53 @@ + + + + readFully + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readFully

+
+
+ +
+
open override fun readFully(sink: Buffer, byteCount: Long)
open override fun readFully(sink: ByteArray)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-hexadecimal-unsigned-long.html b/2.x/okio/okio/-buffer/read-hexadecimal-unsigned-long.html new file mode 100644 index 0000000000..2e53bd2903 --- /dev/null +++ b/2.x/okio/okio/-buffer/read-hexadecimal-unsigned-long.html @@ -0,0 +1,53 @@ + + + + readHexadecimalUnsignedLong + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readHexadecimalUnsignedLong

+
+
+ +
+
open override fun readHexadecimalUnsignedLong(): Long
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-int-le.html b/2.x/okio/okio/-buffer/read-int-le.html new file mode 100644 index 0000000000..91b2ac236e --- /dev/null +++ b/2.x/okio/okio/-buffer/read-int-le.html @@ -0,0 +1,53 @@ + + + + readIntLe + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readIntLe

+
+
+ +
+
open override fun readIntLe(): Int
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-int.html b/2.x/okio/okio/-buffer/read-int.html new file mode 100644 index 0000000000..9da3bdaf55 --- /dev/null +++ b/2.x/okio/okio/-buffer/read-int.html @@ -0,0 +1,53 @@ + + + + readInt + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readInt

+
+
+ +
+
open override fun readInt(): Int
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-long-le.html b/2.x/okio/okio/-buffer/read-long-le.html new file mode 100644 index 0000000000..7549f93a52 --- /dev/null +++ b/2.x/okio/okio/-buffer/read-long-le.html @@ -0,0 +1,53 @@ + + + + readLongLe + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readLongLe

+
+
+ +
+
open override fun readLongLe(): Long
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-long.html b/2.x/okio/okio/-buffer/read-long.html new file mode 100644 index 0000000000..4af0bc1672 --- /dev/null +++ b/2.x/okio/okio/-buffer/read-long.html @@ -0,0 +1,53 @@ + + + + readLong + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readLong

+
+
+ +
+
open override fun readLong(): Long
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-short-le.html b/2.x/okio/okio/-buffer/read-short-le.html new file mode 100644 index 0000000000..5d8a2e8ed5 --- /dev/null +++ b/2.x/okio/okio/-buffer/read-short-le.html @@ -0,0 +1,53 @@ + + + + readShortLe + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readShortLe

+
+
+ +
+
open override fun readShortLe(): Short
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-short.html b/2.x/okio/okio/-buffer/read-short.html new file mode 100644 index 0000000000..f058257408 --- /dev/null +++ b/2.x/okio/okio/-buffer/read-short.html @@ -0,0 +1,53 @@ + + + + readShort + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readShort

+
+
+ +
+
open override fun readShort(): Short
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-string.html b/2.x/okio/okio/-buffer/read-string.html new file mode 100644 index 0000000000..ed1876d019 --- /dev/null +++ b/2.x/okio/okio/-buffer/read-string.html @@ -0,0 +1,59 @@ + + + + readString + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readString

+
+
+ +
+
open override fun readString(charset: Charset): String
+
+

Removes all bytes from this, decodes them as charset, and returns the string.

+
+ +
+
open override fun readString(byteCount: Long, charset: Charset): String
+
+

Removes byteCount bytes from this, decodes them as charset, and returns the string.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-unsafe.html b/2.x/okio/okio/-buffer/read-unsafe.html new file mode 100644 index 0000000000..8bd6db9e8d --- /dev/null +++ b/2.x/okio/okio/-buffer/read-unsafe.html @@ -0,0 +1,55 @@ + + + + readUnsafe + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readUnsafe

+
+
+ +
+
+
+
fun readUnsafe(unsafeCursor: Buffer.UnsafeCursor = UnsafeCursor()): Buffer.UnsafeCursor
fun readUnsafe(unsafeCursor: Buffer.UnsafeCursor = UnsafeCursor()): Buffer.UnsafeCursor
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-utf8-code-point.html b/2.x/okio/okio/-buffer/read-utf8-code-point.html new file mode 100644 index 0000000000..6db52a9896 --- /dev/null +++ b/2.x/okio/okio/-buffer/read-utf8-code-point.html @@ -0,0 +1,53 @@ + + + + readUtf8CodePoint + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readUtf8CodePoint

+
+
+ +
+
open override fun readUtf8CodePoint(): Int
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-utf8-line-strict.html b/2.x/okio/okio/-buffer/read-utf8-line-strict.html new file mode 100644 index 0000000000..f72bfa0997 --- /dev/null +++ b/2.x/okio/okio/-buffer/read-utf8-line-strict.html @@ -0,0 +1,53 @@ + + + + readUtf8LineStrict + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readUtf8LineStrict

+
+
+ +
+
open override fun readUtf8LineStrict(): String
open override fun readUtf8LineStrict(limit: Long): String
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-utf8-line.html b/2.x/okio/okio/-buffer/read-utf8-line.html new file mode 100644 index 0000000000..e0c29b93e5 --- /dev/null +++ b/2.x/okio/okio/-buffer/read-utf8-line.html @@ -0,0 +1,53 @@ + + + + readUtf8Line + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readUtf8Line

+
+
+ +
+
open override fun readUtf8Line(): String?
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read-utf8.html b/2.x/okio/okio/-buffer/read-utf8.html new file mode 100644 index 0000000000..1a60fb4a24 --- /dev/null +++ b/2.x/okio/okio/-buffer/read-utf8.html @@ -0,0 +1,53 @@ + + + + readUtf8 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readUtf8

+
+
+ +
+
open override fun readUtf8(): String
open override fun readUtf8(byteCount: Long): String
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/read.html b/2.x/okio/okio/-buffer/read.html new file mode 100644 index 0000000000..1e6347954b --- /dev/null +++ b/2.x/okio/okio/-buffer/read.html @@ -0,0 +1,59 @@ + + + + read + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

read

+
+
+ +
+
open override fun read(sink: ByteArray): Int
open override fun read(sink: ByteArray, offset: Int, byteCount: Int): Int
open override fun read(sink: ByteBuffer): Int
+
+
+
+ +
+
open override fun read(sink: Buffer, byteCount: Long): Long
+
+

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/request.html b/2.x/okio/okio/-buffer/request.html new file mode 100644 index 0000000000..e2b448c56c --- /dev/null +++ b/2.x/okio/okio/-buffer/request.html @@ -0,0 +1,53 @@ + + + + request + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

request

+
+
+ +
+
open override fun request(byteCount: Long): Boolean
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/require.html b/2.x/okio/okio/-buffer/require.html new file mode 100644 index 0000000000..1e5c793387 --- /dev/null +++ b/2.x/okio/okio/-buffer/require.html @@ -0,0 +1,53 @@ + + + + require + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

require

+
+
+ +
+
open override fun require(byteCount: Long)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/select.html b/2.x/okio/okio/-buffer/select.html new file mode 100644 index 0000000000..af5741b6ab --- /dev/null +++ b/2.x/okio/okio/-buffer/select.html @@ -0,0 +1,53 @@ + + + + select + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

select

+
+
+ +
+
open override fun select(options: Options): Int
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/sha1.html b/2.x/okio/okio/-buffer/sha1.html new file mode 100644 index 0000000000..4f936d9dd4 --- /dev/null +++ b/2.x/okio/okio/-buffer/sha1.html @@ -0,0 +1,67 @@ + + + + sha1 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

sha1

+
+
+
+
common
+
+
+ +
+
fun sha1(): ByteString
+
+
+
+
+ +
+
+ +
+
fun sha1(): ByteString
+
+

Returns the 160-bit SHA-1 hash of this buffer.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/sha256.html b/2.x/okio/okio/-buffer/sha256.html new file mode 100644 index 0000000000..0c554667af --- /dev/null +++ b/2.x/okio/okio/-buffer/sha256.html @@ -0,0 +1,67 @@ + + + + sha256 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

sha256

+
+
+
+
common
+
+
+ +
+
fun sha256(): ByteString
+
+
+
+
+ +
+
+ +
+
fun sha256(): ByteString
+
+

Returns the 256-bit SHA-256 hash of this buffer.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/sha512.html b/2.x/okio/okio/-buffer/sha512.html new file mode 100644 index 0000000000..6381643ec5 --- /dev/null +++ b/2.x/okio/okio/-buffer/sha512.html @@ -0,0 +1,67 @@ + + + + sha512 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

sha512

+
+
+
+
common
+
+
+ +
+
fun sha512(): ByteString
+
+
+
+
+ +
+
+ +
+
fun sha512(): ByteString
+
+

Returns the 512-bit SHA-512 hash of this buffer.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/size.html b/2.x/okio/okio/-buffer/size.html new file mode 100644 index 0000000000..6f64df2fd8 --- /dev/null +++ b/2.x/okio/okio/-buffer/size.html @@ -0,0 +1,57 @@ + + + + size + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

size

+
+
+
+
common
+
+
+ +
+
var size: Long = 0L
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/skip.html b/2.x/okio/okio/-buffer/skip.html new file mode 100644 index 0000000000..626310205a --- /dev/null +++ b/2.x/okio/okio/-buffer/skip.html @@ -0,0 +1,67 @@ + + + + skip + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

skip

+
+
+
+
common
+
+
+ +
+
open override fun skip(byteCount: Long)
+
+

Discards byteCount bytes from the head of this buffer.

+
+
+ +
+
+ +
+
open override fun skip(byteCount: Long)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/snapshot.html b/2.x/okio/okio/-buffer/snapshot.html new file mode 100644 index 0000000000..0638744451 --- /dev/null +++ b/2.x/okio/okio/-buffer/snapshot.html @@ -0,0 +1,77 @@ + + + + snapshot + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

snapshot

+
+
+
+
common
+
+
+ +
+
fun snapshot(): ByteString
+
+

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

+
+
+ +
+
+ +
+
fun snapshot(): ByteString
fun snapshot(byteCount: Int): ByteString
+
+
+
+
+
common
+
+
+ +
+
fun snapshot(byteCount: Int): ByteString
+
+

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

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/timeout.html b/2.x/okio/okio/-buffer/timeout.html new file mode 100644 index 0000000000..a5f60002fc --- /dev/null +++ b/2.x/okio/okio/-buffer/timeout.html @@ -0,0 +1,53 @@ + + + + timeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

timeout

+
+
+ +
+
open override fun timeout(): Timeout
+
+

Returns the timeout for this source.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/to-string.html b/2.x/okio/okio/-buffer/to-string.html new file mode 100644 index 0000000000..82f1e7c812 --- /dev/null +++ b/2.x/okio/okio/-buffer/to-string.html @@ -0,0 +1,53 @@ + + + + toString + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

toString

+
+
+ +
+
open override fun toString(): String
+
+

Returns a human-readable string that describes the contents of this buffer. Typically this is a string like [text=Hello] or [hex=0000ffff].

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/write-all.html b/2.x/okio/okio/-buffer/write-all.html new file mode 100644 index 0000000000..dc7a67221d --- /dev/null +++ b/2.x/okio/okio/-buffer/write-all.html @@ -0,0 +1,53 @@ + + + + writeAll + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeAll

+
+
+ +
+
open override fun writeAll(source: Source): Long
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/write-byte.html b/2.x/okio/okio/-buffer/write-byte.html new file mode 100644 index 0000000000..df498c838d --- /dev/null +++ b/2.x/okio/okio/-buffer/write-byte.html @@ -0,0 +1,67 @@ + + + + writeByte + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeByte

+
+
+
+
common
+
+
+ +
+
open override fun writeByte(b: Int): Buffer
+
+

Writes a byte to this sink.

+
+
+ +
+
+ +
+
open override fun writeByte(b: Int): Buffer
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/write-decimal-long.html b/2.x/okio/okio/-buffer/write-decimal-long.html new file mode 100644 index 0000000000..c0213fa80a --- /dev/null +++ b/2.x/okio/okio/-buffer/write-decimal-long.html @@ -0,0 +1,67 @@ + + + + writeDecimalLong + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeDecimalLong

+
+
+
+
common
+
+
+ +
+
open override fun writeDecimalLong(v: Long): Buffer
+
+

Writes a long to this sink in signed decimal form (i.e., as a string in base 10).

Buffer buffer = new Buffer();
buffer.writeDecimalLong(8675309L);
buffer.writeByte(' ');
buffer.writeDecimalLong(-123L);
buffer.writeByte(' ');
buffer.writeDecimalLong(1L);

assertEquals("8675309 -123 1", buffer.readUtf8());
+
+
+ +
+
+ +
+
open override fun writeDecimalLong(v: Long): Buffer
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/write-hexadecimal-unsigned-long.html b/2.x/okio/okio/-buffer/write-hexadecimal-unsigned-long.html new file mode 100644 index 0000000000..abb23aa3ff --- /dev/null +++ b/2.x/okio/okio/-buffer/write-hexadecimal-unsigned-long.html @@ -0,0 +1,67 @@ + + + + writeHexadecimalUnsignedLong + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeHexadecimalUnsignedLong

+
+
+
+
common
+
+
+ +
+
open override fun writeHexadecimalUnsignedLong(v: Long): Buffer
+
+

Writes a long to this sink in hexadecimal form (i.e., as a string in base 16).

Buffer buffer = new Buffer();
buffer.writeHexadecimalUnsignedLong(65535L);
buffer.writeByte(' ');
buffer.writeHexadecimalUnsignedLong(0xcafebabeL);
buffer.writeByte(' ');
buffer.writeHexadecimalUnsignedLong(0x10L);

assertEquals("ffff cafebabe 10", buffer.readUtf8());
+
+
+ +
+
+ +
+
open override fun writeHexadecimalUnsignedLong(v: Long): Buffer
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/write-int-le.html b/2.x/okio/okio/-buffer/write-int-le.html new file mode 100644 index 0000000000..99344a5598 --- /dev/null +++ b/2.x/okio/okio/-buffer/write-int-le.html @@ -0,0 +1,67 @@ + + + + writeIntLe + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeIntLe

+
+
+
+
common
+
+
+ +
+
open override fun writeIntLe(i: Int): Buffer
+
+

Writes a little-endian int to this sink using four bytes.

Buffer buffer = new Buffer();
buffer.writeIntLe(2147483647);
buffer.writeIntLe(15);

assertEquals(8, buffer.size());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals(0, buffer.size());
+
+
+ +
+
+ +
+
open override fun writeIntLe(i: Int): Buffer
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/write-int.html b/2.x/okio/okio/-buffer/write-int.html new file mode 100644 index 0000000000..35370aca9a --- /dev/null +++ b/2.x/okio/okio/-buffer/write-int.html @@ -0,0 +1,67 @@ + + + + writeInt + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeInt

+
+
+
+
common
+
+
+ +
+
open override fun writeInt(i: Int): Buffer
+
+

Writes a big-endian int to this sink using four bytes.

Buffer buffer = new Buffer();
buffer.writeInt(2147483647);
buffer.writeInt(15);

assertEquals(8, buffer.size());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals(0, buffer.size());
+
+
+ +
+
+ +
+
open override fun writeInt(i: Int): Buffer
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/write-long-le.html b/2.x/okio/okio/-buffer/write-long-le.html new file mode 100644 index 0000000000..e5d7449fc2 --- /dev/null +++ b/2.x/okio/okio/-buffer/write-long-le.html @@ -0,0 +1,67 @@ + + + + writeLongLe + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeLongLe

+
+
+
+
common
+
+
+ +
+
open override fun writeLongLe(v: Long): Buffer
+
+

Writes a little-endian long to this sink using eight bytes.

Buffer buffer = new Buffer();
buffer.writeLongLe(9223372036854775807L);
buffer.writeLongLe(15);

assertEquals(16, buffer.size());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals(0, buffer.size());
+
+
+ +
+
+ +
+
open override fun writeLongLe(v: Long): Buffer
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/write-long.html b/2.x/okio/okio/-buffer/write-long.html new file mode 100644 index 0000000000..bf86527771 --- /dev/null +++ b/2.x/okio/okio/-buffer/write-long.html @@ -0,0 +1,67 @@ + + + + writeLong + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeLong

+
+
+
+
common
+
+
+ +
+
open override fun writeLong(v: Long): Buffer
+
+

Writes a big-endian long to this sink using eight bytes.

Buffer buffer = new Buffer();
buffer.writeLong(9223372036854775807L);
buffer.writeLong(15);

assertEquals(16, buffer.size());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals(0, buffer.size());
+
+
+ +
+
+ +
+
open override fun writeLong(v: Long): Buffer
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/write-short-le.html b/2.x/okio/okio/-buffer/write-short-le.html new file mode 100644 index 0000000000..1b4079d246 --- /dev/null +++ b/2.x/okio/okio/-buffer/write-short-le.html @@ -0,0 +1,67 @@ + + + + writeShortLe + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeShortLe

+
+
+
+
common
+
+
+ +
+
open override fun writeShortLe(s: Int): Buffer
+
+

Writes a little-endian short to this sink using two bytes.

Buffer buffer = new Buffer();
buffer.writeShortLe(32767);
buffer.writeShortLe(15);

assertEquals(4, buffer.size());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals(0, buffer.size());
+
+
+ +
+
+ +
+
open override fun writeShortLe(s: Int): Buffer
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/write-short.html b/2.x/okio/okio/-buffer/write-short.html new file mode 100644 index 0000000000..f7f602384c --- /dev/null +++ b/2.x/okio/okio/-buffer/write-short.html @@ -0,0 +1,67 @@ + + + + writeShort + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeShort

+
+
+
+
common
+
+
+ +
+
open override fun writeShort(s: Int): Buffer
+
+

Writes a big-endian short to this sink using two bytes.

Buffer buffer = new Buffer();
buffer.writeShort(32767);
buffer.writeShort(15);

assertEquals(4, buffer.size());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals(0, buffer.size());
+
+
+ +
+
+ +
+
open override fun writeShort(s: Int): Buffer
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/write-string.html b/2.x/okio/okio/-buffer/write-string.html new file mode 100644 index 0000000000..6c9f7c010b --- /dev/null +++ b/2.x/okio/okio/-buffer/write-string.html @@ -0,0 +1,53 @@ + + + + writeString + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeString

+
+
+ +
+
open override fun writeString(string: String, charset: Charset): Buffer
open override fun writeString(string: String, beginIndex: Int, endIndex: Int, charset: Charset): Buffer
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/write-to.html b/2.x/okio/okio/-buffer/write-to.html new file mode 100644 index 0000000000..6c713ca0c8 --- /dev/null +++ b/2.x/okio/okio/-buffer/write-to.html @@ -0,0 +1,53 @@ + + + + writeTo + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeTo

+
+
+ +
+
fun writeTo(out: OutputStream, byteCount: Long = size): Buffer
+
+

Write byteCount bytes from this to out.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/write-utf8-code-point.html b/2.x/okio/okio/-buffer/write-utf8-code-point.html new file mode 100644 index 0000000000..a527ed6be4 --- /dev/null +++ b/2.x/okio/okio/-buffer/write-utf8-code-point.html @@ -0,0 +1,67 @@ + + + + writeUtf8CodePoint + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeUtf8CodePoint

+
+
+
+
common
+
+
+ +
+
open override fun writeUtf8CodePoint(codePoint: Int): Buffer
+
+

Encodes codePoint in UTF-8 and writes it to this sink.

+
+
+ +
+
+ +
+
open override fun writeUtf8CodePoint(codePoint: Int): Buffer
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/write-utf8.html b/2.x/okio/okio/-buffer/write-utf8.html new file mode 100644 index 0000000000..0c656d255f --- /dev/null +++ b/2.x/okio/okio/-buffer/write-utf8.html @@ -0,0 +1,77 @@ + + + + writeUtf8 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeUtf8

+
+
+
+
common
+
+
+ +
+
open override fun writeUtf8(string: String): Buffer
+
+

Encodes string in UTF-8 and writes it to this sink.

Buffer buffer = new Buffer();
buffer.writeUtf8("Uh uh uh!");
buffer.writeByte(' ');
buffer.writeUtf8("You didn't say the magic word!");

assertEquals("Uh uh uh! You didn't say the magic word!", buffer.readUtf8());
+
+
+ +
+
+ +
+
open override fun writeUtf8(string: String): Buffer
open override fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): Buffer
+
+
+
+
+
common
+
+
+ +
+
open override fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): Buffer
+
+

Encodes the characters at beginIndex up to endIndex from string in UTF-8 and writes it to this sink.

Buffer buffer = new Buffer();
buffer.writeUtf8("I'm a hacker!\n", 6, 12);
buffer.writeByte(' ');
buffer.writeUtf8("That's what I said: you're a nerd.\n", 29, 33);
buffer.writeByte(' ');
buffer.writeUtf8("I prefer to be called a hacker!\n", 24, 31);

assertEquals("hacker nerd hacker!", buffer.readUtf8());
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffer/write.html b/2.x/okio/okio/-buffer/write.html new file mode 100644 index 0000000000..899d70f073 --- /dev/null +++ b/2.x/okio/okio/-buffer/write.html @@ -0,0 +1,85 @@ + + + + write + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

write

+
+
+ +
+
+
+
open override fun write(source: ByteBuffer): Int
open override fun write(source: Buffer, byteCount: Long)
open override fun write(byteString: ByteString): Buffer
open override fun write(byteString: ByteString, offset: Int, byteCount: Int): Buffer
open override fun write(source: ByteArray): Buffer
open override fun write(source: ByteArray, offset: Int, byteCount: Int): Buffer
open override fun write(source: Source, byteCount: Long): Buffer
open override fun write(byteString: ByteString): Buffer
open override fun write(byteString: ByteString, offset: Int, byteCount: Int): Buffer
+
+
+
+
+
common
+
+
+ +
+
open override fun write(source: ByteArray): Buffer
+
+

Like OutputStream.write, this writes a complete byte array to this sink.

+
+
+
common
+
+
+ +
+
open override fun write(source: ByteArray, offset: Int, byteCount: Int): Buffer
+
+

Like OutputStream.write, this writes byteCount bytes of source, starting at offset.

+
+
+
common
+
+
+ +
+
open override fun write(source: Source, byteCount: Long): Buffer
+
+

Removes byteCount bytes from source and appends them to this sink.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/buffer.html b/2.x/okio/okio/-buffered-sink/buffer.html new file mode 100644 index 0000000000..5c4dc704bd --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/buffer.html @@ -0,0 +1,67 @@ + + + + buffer + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

buffer

+
+
+
+
common
+
+
+ +
+
abstract val buffer: Buffer
+
+

This sink's internal buffer.

+
+
+ +
+
+ +
+
abstract val buffer: Buffer
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/emit-complete-segments.html b/2.x/okio/okio/-buffered-sink/emit-complete-segments.html new file mode 100644 index 0000000000..bdc8e86767 --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/emit-complete-segments.html @@ -0,0 +1,67 @@ + + + + emitCompleteSegments + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

emitCompleteSegments

+
+
+
+
common
+
+
+ +
+
abstract fun emitCompleteSegments(): BufferedSink
+
+

Writes complete segments to the underlying sink, if one exists. Like flush, but weaker. Use this to limit the memory held in the buffer to a single segment. Typically application code will not need to call this: it is only necessary when application code writes directly to this sink's buffer.

BufferedSink b0 = new Buffer();
BufferedSink b1 = Okio.buffer(b0);
BufferedSink b2 = Okio.buffer(b1);

b2.buffer().write(new byte[20_000]);
assertEquals(20_000, b2.buffer().size());
assertEquals( 0, b1.buffer().size());
assertEquals( 0, b0.buffer().size());

b2.emitCompleteSegments();
assertEquals( 3_616, b2.buffer().size());
assertEquals( 0, b1.buffer().size());
assertEquals(16_384, b0.buffer().size()); // This example assumes 8192 byte segments.
+
+
+ +
+
+ +
+
abstract fun emitCompleteSegments(): BufferedSink
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/emit.html b/2.x/okio/okio/-buffered-sink/emit.html new file mode 100644 index 0000000000..823c442661 --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/emit.html @@ -0,0 +1,67 @@ + + + + emit + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

emit

+
+
+
+
common
+
+
+ +
+
abstract fun emit(): BufferedSink
+
+

Writes all buffered data to the underlying sink, if one exists. Like flush, but weaker. Call this before this buffered sink goes out of scope so that its data can reach its destination.

BufferedSink b0 = new Buffer();
BufferedSink b1 = Okio.buffer(b0);
BufferedSink b2 = Okio.buffer(b1);

b2.writeUtf8("hello");
assertEquals(5, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(0, b0.buffer().size());

b2.emit();
assertEquals(0, b2.buffer().size());
assertEquals(5, b1.buffer().size());
assertEquals(0, b0.buffer().size());

b1.emit();
assertEquals(0, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(5, b0.buffer().size());
+
+
+ +
+
+ +
+
abstract fun emit(): BufferedSink
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/flush.html b/2.x/okio/okio/-buffered-sink/flush.html new file mode 100644 index 0000000000..254d85ebcf --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/flush.html @@ -0,0 +1,67 @@ + + + + flush + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

flush

+
+
+
+
common
+
+
+ +
+
abstract override fun flush()
+
+

Writes all buffered data to the underlying sink, if one exists. Then that sink is recursively flushed which pushes data as far as possible towards its ultimate destination. Typically that destination is a network socket or file.

BufferedSink b0 = new Buffer();
BufferedSink b1 = Okio.buffer(b0);
BufferedSink b2 = Okio.buffer(b1);

b2.writeUtf8("hello");
assertEquals(5, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(0, b0.buffer().size());

b2.flush();
assertEquals(0, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(5, b0.buffer().size());
+
+
+ +
+
+ +
+
abstract override fun flush()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/index.html b/2.x/okio/okio/-buffered-sink/index.html new file mode 100644 index 0000000000..3504b08174 --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/index.html @@ -0,0 +1,848 @@ + + + + BufferedSink + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

BufferedSink

+
+
+
interface BufferedSink : Sink

A sink that keeps a buffer internally so that callers can do small writes without a performance penalty.

interface BufferedSink : Sink, WritableByteChannel
+
+
+
+
+

Functions

+
+
+
+
close +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract override fun close()
+
+
Pushes all buffered bytes to their final destination and releases the resources held by this sink.
+
+
+ +
+
+ +
+
abstract override fun close()
+
+
+
+
+
+
+ +
+
+
emit +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun emit(): BufferedSink
+
+
Writes all buffered data to the underlying sink, if one exists.
+
+
+ +
+
+ +
+
abstract fun emit(): BufferedSink
+
+
+
+
+
+
+ +
+
+
emitCompleteSegments +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun emitCompleteSegments(): BufferedSink
+
+
Writes complete segments to the underlying sink, if one exists.
+
+
+ +
+
+ +
+
abstract fun emitCompleteSegments(): BufferedSink
+
+
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+
+
open operator fun equals(other: Any?): Boolean
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
flush +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract override fun flush()
+
+
Writes all buffered data to the underlying sink, if one exists.
+
+
+ +
+
+ +
+
abstract override fun flush()
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun hashCode(): Int
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
isOpen +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
abstract fun isOpen(): Boolean
+
+
+
+
+
+
+ +
+
+
outputStream +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
abstract fun outputStream(): OutputStream
+
+
Returns an output stream that writes to this sink.
+
+
+
+
+ +
+
+
timeout +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun timeout(): Timeout
+
+
Returns the timeout for this sink.
+
+
+ +
+
+ +
+
abstract fun timeout(): Timeout
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun toString(): String
open fun toString(): String
+
+
+
+
+
+
+ +
+
+
write +
Link copied to clipboard
+
+
+
+ +
+
+
+
abstract fun write(p0: ByteBuffer): Int
abstract fun write(byteString: ByteString): BufferedSink
abstract fun write(byteString: ByteString, offset: Int, byteCount: Int): BufferedSink
abstract fun write(byteString: ByteString): BufferedSink
abstract fun write(byteString: ByteString, offset: Int, byteCount: Int): BufferedSink
+
+
+
+
+
common
+
+
+ +
+
abstract fun write(source: ByteArray): BufferedSink
+
+
Like OutputStream.
+
+
+ +
+
+ +
+
abstract fun write(source: ByteArray): BufferedSink
+
+
+
+
+
common
+
+
+ +
+
abstract fun write(source: Source, byteCount: Long): BufferedSink
+
+
Removes byteCount bytes from source and appends them to this sink.
+
+
+ +
+
+ +
+
abstract fun write(source: Source, byteCount: Long): BufferedSink
+
+
+
+
+
common
+
+
+ +
+
abstract fun write(source: Buffer, byteCount: Long)
+
+
Removes byteCount bytes from source and appends them to this.
+
+
+ +
+
+ +
+
abstract fun write(source: Buffer, byteCount: Long)
+
+
+
+
+
common
+
+
+ +
+
abstract fun write(source: ByteArray, offset: Int, byteCount: Int): BufferedSink
+
+
Like OutputStream.
+
+
+ +
+
+ +
+
abstract fun write(source: ByteArray, offset: Int, byteCount: Int): BufferedSink
+
+
+
+
+
+
+ +
+
+
writeAll +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun writeAll(source: Source): Long
+
+
Removes all bytes from source and appends them to this sink.
+
+
+ +
+
+ +
+
abstract fun writeAll(source: Source): Long
+
+
+
+
+
+
+ +
+
+
writeByte +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun writeByte(b: Int): BufferedSink
+
+
Writes a byte to this sink.
+
+
+ +
+
+ +
+
abstract fun writeByte(b: Int): BufferedSink
+
+
+
+
+
+
+ +
+
+
writeDecimalLong +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun writeDecimalLong(v: Long): BufferedSink
+
+
Writes a long to this sink in signed decimal form (i.e., as a string in base 10).
+
+
+ +
+
+ +
+
abstract fun writeDecimalLong(v: Long): BufferedSink
+
+
+
+
+
+
+ +
+
+
writeHexadecimalUnsignedLong +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun writeHexadecimalUnsignedLong(v: Long): BufferedSink
+
+
Writes a long to this sink in hexadecimal form (i.e., as a string in base 16).
+
+
+ +
+
+ +
+
abstract fun writeHexadecimalUnsignedLong(v: Long): BufferedSink
+
+
+
+
+
+
+ +
+
+
writeInt +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun writeInt(i: Int): BufferedSink
+
+
Writes a big-endian int to this sink using four bytes.
+
+
+ +
+
+ +
+
abstract fun writeInt(i: Int): BufferedSink
+
+
+
+
+
+
+ +
+
+
writeIntLe +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun writeIntLe(i: Int): BufferedSink
+
+
Writes a little-endian int to this sink using four bytes.
+
+
+ +
+
+ +
+
abstract fun writeIntLe(i: Int): BufferedSink
+
+
+
+
+
+
+ +
+
+
writeLong +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun writeLong(v: Long): BufferedSink
+
+
Writes a big-endian long to this sink using eight bytes.
+
+
+ +
+
+ +
+
abstract fun writeLong(v: Long): BufferedSink
+
+
+
+
+
+
+ +
+
+
writeLongLe +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun writeLongLe(v: Long): BufferedSink
+
+
Writes a little-endian long to this sink using eight bytes.
+
+
+ +
+
+ +
+
abstract fun writeLongLe(v: Long): BufferedSink
+
+
+
+
+
+
+ +
+
+
writeShort +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun writeShort(s: Int): BufferedSink
+
+
Writes a big-endian short to this sink using two bytes.
+
+
+ +
+
+ +
+
abstract fun writeShort(s: Int): BufferedSink
+
+
+
+
+
+
+ +
+
+
writeShortLe +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun writeShortLe(s: Int): BufferedSink
+
+
Writes a little-endian short to this sink using two bytes.
+
+
+ +
+
+ +
+
abstract fun writeShortLe(s: Int): BufferedSink
+
+
+
+
+
+
+ +
+
+
writeString +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
abstract fun writeString(string: String, charset: Charset): BufferedSink
abstract fun writeString(string: String, beginIndex: Int, endIndex: Int, charset: Charset): BufferedSink
+
+
+
+
+
+
+ +
+
+
writeUtf8 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun writeUtf8(string: String): BufferedSink
+
+
Encodes string in UTF-8 and writes it to this sink.
+
+
+ +
+
+ +
+
abstract fun writeUtf8(string: String): BufferedSink
+
+
+
+
+
common
+
+
+ +
+
abstract fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): BufferedSink
+
+
Encodes the characters at beginIndex up to endIndex from string in UTF-8 and writes it to this sink.
+
+
+ +
+
+ +
+
abstract fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): BufferedSink
+
+
+
+
+
+
+ +
+
+
writeUtf8CodePoint +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun writeUtf8CodePoint(codePoint: Int): BufferedSink
+
+
Encodes codePoint in UTF-8 and writes it to this sink.
+
+
+ +
+
+ +
+
abstract fun writeUtf8CodePoint(codePoint: Int): BufferedSink
+
+
+
+
+
+
+
+

Properties

+
+
+
+
buffer +
Link copied to clipboard
+
+
+
+
+
+
abstract val buffer: Buffer
This sink's internal buffer.
abstract val buffer: Buffer
+
+
+
+
+
+

Inheritors

+
+
+
+
Buffer +
Link copied to clipboard
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/output-stream.html b/2.x/okio/okio/-buffered-sink/output-stream.html new file mode 100644 index 0000000000..b2d1994143 --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/output-stream.html @@ -0,0 +1,53 @@ + + + + outputStream + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

outputStream

+
+
+ +
+
abstract fun outputStream(): OutputStream
+
+

Returns an output stream that writes to this sink.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/write-all.html b/2.x/okio/okio/-buffered-sink/write-all.html new file mode 100644 index 0000000000..e30bd8ec1f --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/write-all.html @@ -0,0 +1,67 @@ + + + + writeAll + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeAll

+
+
+
+
common
+
+
+ +
+
abstract fun writeAll(source: Source): Long
+
+

Removes all bytes from source and appends them to this sink. Returns the number of bytes read which will be 0 if source is exhausted.

+
+
+ +
+
+ +
+
abstract fun writeAll(source: Source): Long
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/write-byte.html b/2.x/okio/okio/-buffered-sink/write-byte.html new file mode 100644 index 0000000000..7a2bc0c25e --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/write-byte.html @@ -0,0 +1,67 @@ + + + + writeByte + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeByte

+
+
+
+
common
+
+
+ +
+
abstract fun writeByte(b: Int): BufferedSink
+
+

Writes a byte to this sink.

+
+
+ +
+
+ +
+
abstract fun writeByte(b: Int): BufferedSink
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/write-decimal-long.html b/2.x/okio/okio/-buffered-sink/write-decimal-long.html new file mode 100644 index 0000000000..b042f6765a --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/write-decimal-long.html @@ -0,0 +1,67 @@ + + + + writeDecimalLong + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeDecimalLong

+
+
+
+
common
+
+
+ +
+
abstract fun writeDecimalLong(v: Long): BufferedSink
+
+

Writes a long to this sink in signed decimal form (i.e., as a string in base 10).

Buffer buffer = new Buffer();
buffer.writeDecimalLong(8675309L);
buffer.writeByte(' ');
buffer.writeDecimalLong(-123L);
buffer.writeByte(' ');
buffer.writeDecimalLong(1L);

assertEquals("8675309 -123 1", buffer.readUtf8());
+
+
+ +
+
+ +
+
abstract fun writeDecimalLong(v: Long): BufferedSink
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/write-hexadecimal-unsigned-long.html b/2.x/okio/okio/-buffered-sink/write-hexadecimal-unsigned-long.html new file mode 100644 index 0000000000..7552cae250 --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/write-hexadecimal-unsigned-long.html @@ -0,0 +1,67 @@ + + + + writeHexadecimalUnsignedLong + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeHexadecimalUnsignedLong

+
+
+
+
common
+
+
+ +
+
abstract fun writeHexadecimalUnsignedLong(v: Long): BufferedSink
+
+

Writes a long to this sink in hexadecimal form (i.e., as a string in base 16).

Buffer buffer = new Buffer();
buffer.writeHexadecimalUnsignedLong(65535L);
buffer.writeByte(' ');
buffer.writeHexadecimalUnsignedLong(0xcafebabeL);
buffer.writeByte(' ');
buffer.writeHexadecimalUnsignedLong(0x10L);

assertEquals("ffff cafebabe 10", buffer.readUtf8());
+
+
+ +
+
+ +
+
abstract fun writeHexadecimalUnsignedLong(v: Long): BufferedSink
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/write-int-le.html b/2.x/okio/okio/-buffered-sink/write-int-le.html new file mode 100644 index 0000000000..bfaf994a42 --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/write-int-le.html @@ -0,0 +1,67 @@ + + + + writeIntLe + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeIntLe

+
+
+
+
common
+
+
+ +
+
abstract fun writeIntLe(i: Int): BufferedSink
+
+

Writes a little-endian int to this sink using four bytes.

Buffer buffer = new Buffer();
buffer.writeIntLe(2147483647);
buffer.writeIntLe(15);

assertEquals(8, buffer.size());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals(0, buffer.size());
+
+
+ +
+
+ +
+
abstract fun writeIntLe(i: Int): BufferedSink
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/write-int.html b/2.x/okio/okio/-buffered-sink/write-int.html new file mode 100644 index 0000000000..800248de65 --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/write-int.html @@ -0,0 +1,67 @@ + + + + writeInt + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeInt

+
+
+
+
common
+
+
+ +
+
abstract fun writeInt(i: Int): BufferedSink
+
+

Writes a big-endian int to this sink using four bytes.

Buffer buffer = new Buffer();
buffer.writeInt(2147483647);
buffer.writeInt(15);

assertEquals(8, buffer.size());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals(0, buffer.size());
+
+
+ +
+
+ +
+
abstract fun writeInt(i: Int): BufferedSink
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/write-long-le.html b/2.x/okio/okio/-buffered-sink/write-long-le.html new file mode 100644 index 0000000000..c184aac0a0 --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/write-long-le.html @@ -0,0 +1,67 @@ + + + + writeLongLe + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeLongLe

+
+
+
+
common
+
+
+ +
+
abstract fun writeLongLe(v: Long): BufferedSink
+
+

Writes a little-endian long to this sink using eight bytes.

Buffer buffer = new Buffer();
buffer.writeLongLe(9223372036854775807L);
buffer.writeLongLe(15);

assertEquals(16, buffer.size());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals(0, buffer.size());
+
+
+ +
+
+ +
+
abstract fun writeLongLe(v: Long): BufferedSink
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/write-long.html b/2.x/okio/okio/-buffered-sink/write-long.html new file mode 100644 index 0000000000..f6973b380e --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/write-long.html @@ -0,0 +1,67 @@ + + + + writeLong + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeLong

+
+
+
+
common
+
+
+ +
+
abstract fun writeLong(v: Long): BufferedSink
+
+

Writes a big-endian long to this sink using eight bytes.

Buffer buffer = new Buffer();
buffer.writeLong(9223372036854775807L);
buffer.writeLong(15);

assertEquals(16, buffer.size());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals(0, buffer.size());
+
+
+ +
+
+ +
+
abstract fun writeLong(v: Long): BufferedSink
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/write-short-le.html b/2.x/okio/okio/-buffered-sink/write-short-le.html new file mode 100644 index 0000000000..a24099c8a0 --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/write-short-le.html @@ -0,0 +1,67 @@ + + + + writeShortLe + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeShortLe

+
+
+
+
common
+
+
+ +
+
abstract fun writeShortLe(s: Int): BufferedSink
+
+

Writes a little-endian short to this sink using two bytes.

Buffer buffer = new Buffer();
buffer.writeShortLe(32767);
buffer.writeShortLe(15);

assertEquals(4, buffer.size());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals(0, buffer.size());
+
+
+ +
+
+ +
+
abstract fun writeShortLe(s: Int): BufferedSink
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/write-short.html b/2.x/okio/okio/-buffered-sink/write-short.html new file mode 100644 index 0000000000..e8db5f5cc7 --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/write-short.html @@ -0,0 +1,67 @@ + + + + writeShort + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeShort

+
+
+
+
common
+
+
+ +
+
abstract fun writeShort(s: Int): BufferedSink
+
+

Writes a big-endian short to this sink using two bytes.

Buffer buffer = new Buffer();
buffer.writeShort(32767);
buffer.writeShort(15);

assertEquals(4, buffer.size());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals(0, buffer.size());
+
+
+ +
+
+ +
+
abstract fun writeShort(s: Int): BufferedSink
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/write-string.html b/2.x/okio/okio/-buffered-sink/write-string.html new file mode 100644 index 0000000000..27f585e9da --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/write-string.html @@ -0,0 +1,53 @@ + + + + writeString + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeString

+
+
+ +
+
abstract fun writeString(string: String, charset: Charset): BufferedSink
abstract fun writeString(string: String, beginIndex: Int, endIndex: Int, charset: Charset): BufferedSink
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/write-utf8-code-point.html b/2.x/okio/okio/-buffered-sink/write-utf8-code-point.html new file mode 100644 index 0000000000..41982b00fe --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/write-utf8-code-point.html @@ -0,0 +1,67 @@ + + + + writeUtf8CodePoint + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeUtf8CodePoint

+
+
+
+
common
+
+
+ +
+
abstract fun writeUtf8CodePoint(codePoint: Int): BufferedSink
+
+

Encodes codePoint in UTF-8 and writes it to this sink.

+
+
+ +
+
+ +
+
abstract fun writeUtf8CodePoint(codePoint: Int): BufferedSink
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/write-utf8.html b/2.x/okio/okio/-buffered-sink/write-utf8.html new file mode 100644 index 0000000000..380699cea2 --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/write-utf8.html @@ -0,0 +1,77 @@ + + + + writeUtf8 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

writeUtf8

+
+
+
+
common
+
+
+ +
+
abstract fun writeUtf8(string: String): BufferedSink
+
+

Encodes string in UTF-8 and writes it to this sink.

Buffer buffer = new Buffer();
buffer.writeUtf8("Uh uh uh!");
buffer.writeByte(' ');
buffer.writeUtf8("You didn't say the magic word!");

assertEquals("Uh uh uh! You didn't say the magic word!", buffer.readUtf8());
+
+
+ +
+
+ +
+
abstract fun writeUtf8(string: String): BufferedSink
abstract fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): BufferedSink
+
+
+
+
+
common
+
+
+ +
+
abstract fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): BufferedSink
+
+

Encodes the characters at beginIndex up to endIndex from string in UTF-8 and writes it to this sink.

Buffer buffer = new Buffer();
buffer.writeUtf8("I'm a hacker!\n", 6, 12);
buffer.writeByte(' ');
buffer.writeUtf8("That's what I said: you're a nerd.\n", 29, 33);
buffer.writeByte(' ');
buffer.writeUtf8("I prefer to be called a hacker!\n", 24, 31);

assertEquals("hacker nerd hacker!", buffer.readUtf8());
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-sink/write.html b/2.x/okio/okio/-buffered-sink/write.html new file mode 100644 index 0000000000..1d1fce5e51 --- /dev/null +++ b/2.x/okio/okio/-buffered-sink/write.html @@ -0,0 +1,85 @@ + + + + write + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

write

+
+
+ +
+
+
+
abstract fun write(byteString: ByteString): BufferedSink
abstract fun write(byteString: ByteString, offset: Int, byteCount: Int): BufferedSink
abstract fun write(byteString: ByteString): BufferedSink
abstract fun write(byteString: ByteString, offset: Int, byteCount: Int): BufferedSink
abstract fun write(source: ByteArray): BufferedSink
abstract fun write(source: ByteArray, offset: Int, byteCount: Int): BufferedSink
abstract fun write(source: Source, byteCount: Long): BufferedSink
+
+
+
+
+
common
+
+
+ +
+
abstract fun write(source: ByteArray): BufferedSink
+
+

Like OutputStream.write, this writes a complete byte array to this sink.

+
+
+
common
+
+
+ +
+
abstract fun write(source: ByteArray, offset: Int, byteCount: Int): BufferedSink
+
+

Like OutputStream.write, this writes byteCount bytes of source, starting at offset.

+
+
+
common
+
+
+ +
+
abstract fun write(source: Source, byteCount: Long): BufferedSink
+
+

Removes byteCount bytes from source and appends them to this sink.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/buffer.html b/2.x/okio/okio/-buffered-source/buffer.html new file mode 100644 index 0000000000..169f30e8d1 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/buffer.html @@ -0,0 +1,67 @@ + + + + buffer + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

buffer

+
+
+
+
common
+
+
+ +
+
abstract val buffer: Buffer
+
+

This source's internal buffer.

+
+
+ +
+
+ +
+
abstract val buffer: Buffer
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/exhausted.html b/2.x/okio/okio/-buffered-source/exhausted.html new file mode 100644 index 0000000000..e687b0e42f --- /dev/null +++ b/2.x/okio/okio/-buffered-source/exhausted.html @@ -0,0 +1,67 @@ + + + + exhausted + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

exhausted

+
+
+
+
common
+
+
+ +
+
abstract fun exhausted(): Boolean
+
+

Returns true if there are no more bytes in this source. This will block until there are bytes to read or the source is definitely exhausted.

+
+
+ +
+
+ +
+
abstract fun exhausted(): Boolean
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/index-of-element.html b/2.x/okio/okio/-buffered-source/index-of-element.html new file mode 100644 index 0000000000..dbe09b31e1 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/index-of-element.html @@ -0,0 +1,77 @@ + + + + indexOfElement + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

indexOfElement

+
+
+
+
common
+
+
+ +
+
abstract fun indexOfElement(targetBytes: ByteString): Long
+
+

Equivalent to indexOfElement(targetBytes, 0).

+
+
+ +
+
+ +
+
abstract fun indexOfElement(targetBytes: ByteString): Long
abstract fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long
+
+
+
+
+
common
+
+
+ +
+
abstract fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long
+
+

Returns the first index in this buffer that is at or after fromIndex and that contains any of the bytes in targetBytes. This expands the buffer as necessary until a target byte is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the requested byte is found.

ByteString ANY_VOWEL = ByteString.encodeUtf8("AEOIUaeoiu");

Buffer buffer = new Buffer();
buffer.writeUtf8("Dr. Alan Grant");

assertEquals(4, buffer.indexOfElement(ANY_VOWEL)); // 'A' in 'Alan'.
assertEquals(11, buffer.indexOfElement(ANY_VOWEL, 9)); // 'a' in 'Grant'.
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/index-of.html b/2.x/okio/okio/-buffered-source/index-of.html new file mode 100644 index 0000000000..0f850071c0 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/index-of.html @@ -0,0 +1,107 @@ + + + + indexOf + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

indexOf

+
+
+
+
common
+
+
+ +
+
abstract fun indexOf(b: Byte): Long
+
+

Equivalent to indexOf(b, 0).

+
+
+ +
+
+ +
+
abstract fun indexOf(b: Byte): Long
abstract fun indexOf(b: Byte, fromIndex: Long): Long
abstract fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long
abstract fun indexOf(bytes: ByteString): Long
abstract fun indexOf(bytes: ByteString, fromIndex: Long): Long
+
+
+
+
+
common
+
+
+ +
+
abstract fun indexOf(b: Byte, fromIndex: Long): Long
+
+

Returns the index of the first b in the buffer at or after fromIndex. This expands the buffer as necessary until b is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the requested byte is found.

Buffer buffer = new Buffer();
buffer.writeUtf8("Don't move! He can't see us if we don't move.");

byte m = 'm';
assertEquals(6, buffer.indexOf(m));
assertEquals(40, buffer.indexOf(m, 12));
+
+
+
common
+
+
+ +
+
abstract fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long
+
+

Returns the index of b if it is found in the range of fromIndex inclusive to toIndex exclusive. If b isn't found, or if fromIndex == toIndex, then -1 is returned.

The scan terminates at either toIndex or the end of the buffer, whichever comes first. The maximum number of bytes scanned is toIndex-fromIndex.

+
+
+
common
+
+
+ +
+
abstract fun indexOf(bytes: ByteString): Long
+
+

Equivalent to indexOf(bytes, 0).

+
+
+
common
+
+
+ +
+
abstract fun indexOf(bytes: ByteString, fromIndex: Long): Long
+
+

Returns the index of the first match for bytes in the buffer at or after fromIndex. This expands the buffer as necessary until bytes is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the requested bytes are found.

ByteString MOVE = ByteString.encodeUtf8("move");

Buffer buffer = new Buffer();
buffer.writeUtf8("Don't move! He can't see us if we don't move.");

assertEquals(6, buffer.indexOf(MOVE));
assertEquals(40, buffer.indexOf(MOVE, 12));
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/index.html b/2.x/okio/okio/-buffered-source/index.html new file mode 100644 index 0000000000..6c79fb218a --- /dev/null +++ b/2.x/okio/okio/-buffered-source/index.html @@ -0,0 +1,1377 @@ + + + + BufferedSource + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

BufferedSource

+
+
+
interface BufferedSource : Source

A source that keeps a buffer internally so that callers can do small reads without a performance penalty. It also allows clients to read ahead, buffering as much as necessary before consuming input.

interface BufferedSource : Source, ReadableByteChannel
+
+
+
+
+

Functions

+
+
+
+
close +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract override fun close()
+
+
Closes this source and releases the resources held by this source.
+
+
+ +
+
+ +
+
abstract override fun close()
+
+
Closes this source and releases the resources held by this source.
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+
+
open operator fun equals(other: Any?): Boolean
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
exhausted +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun exhausted(): Boolean
+
+
Returns true if there are no more bytes in this source.
+
+
+ +
+
+ +
+
abstract fun exhausted(): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun hashCode(): Int
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
indexOf +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun indexOf(b: Byte): Long
+
+
Equivalent to indexOf(b, 0).
+
+
+ +
+
+ +
+
abstract fun indexOf(b: Byte): Long
+
+
+
+
+
common
+
+
+ +
+
abstract fun indexOf(bytes: ByteString): Long
+
+
Equivalent to indexOf(bytes, 0).
+
+
+ +
+
+ +
+
abstract fun indexOf(bytes: ByteString): Long
+
+
+
+
+
common
+
+
+ +
+
abstract fun indexOf(b: Byte, fromIndex: Long): Long
+
+
Returns the index of the first b in the buffer at or after fromIndex.
+
+
+ +
+
+ +
+
abstract fun indexOf(b: Byte, fromIndex: Long): Long
+
+
+
+
+
common
+
+
+ +
+
abstract fun indexOf(bytes: ByteString, fromIndex: Long): Long
+
+
Returns the index of the first match for bytes in the buffer at or after fromIndex.
+
+
+ +
+
+ +
+
abstract fun indexOf(bytes: ByteString, fromIndex: Long): Long
+
+
+
+
+
common
+
+
+ +
+
abstract fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long
+
+
Returns the index of b if it is found in the range of fromIndex inclusive to toIndex exclusive.
+
+
+ +
+
+ +
+
abstract fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long
+
+
+
+
+
+
+ +
+
+
indexOfElement +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun indexOfElement(targetBytes: ByteString): Long
+
+
+
+
+ +
+
+ +
+
abstract fun indexOfElement(targetBytes: ByteString): Long
+
+
+
+
+
common
+
+
+ +
+
abstract fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long
+
+
Returns the first index in this buffer that is at or after fromIndex and that contains any of the bytes in targetBytes.
+
+
+ +
+
+ +
+
abstract fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long
+
+
+
+
+
+
+ +
+
+
inputStream +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
abstract fun inputStream(): InputStream
+
+
Returns an input stream that reads from this source.
+
+
+
+
+ +
+
+
isOpen +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
abstract fun isOpen(): Boolean
+
+
+
+
+
+
+ +
+
+
peek +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun peek(): BufferedSource
+
+
Returns a new BufferedSource that can read data from this BufferedSource without consuming it.
+
+
+ +
+
+ +
+
abstract fun peek(): BufferedSource
+
+
+
+
+
+
+ +
+
+
rangeEquals +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun rangeEquals(offset: Long, bytes: ByteString): Boolean
+
+
Returns true if the bytes at offset in this source equal bytes.
+
+
+ +
+
+ +
+
abstract fun rangeEquals(offset: Long, bytes: ByteString): Boolean
+
+
+
+
+
common
+
+
+ +
+
abstract fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean
+
+
Returns true if byteCount bytes at offset in this source equal bytes at bytesOffset.
+
+
+ +
+
+ +
+
abstract fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean
+
+
+
+
+
+
+ +
+
+
read +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
abstract fun read(p0: ByteBuffer): Int
+
+
+
+
+
common
+
+
+ +
+
abstract fun read(sink: ByteArray): Int
+
+
Removes up to sink.length bytes from this and copies them into sink.
+
+
+ +
+
+ +
+
abstract fun read(sink: ByteArray): Int
+
+
+
+
+
common
+
+
+ +
+
abstract fun read(sink: Buffer, byteCount: Long): Long
+
+
Removes at least 1, and up to byteCount bytes from this and appends them to sink.
+
+
+ +
+
+ +
+
abstract fun read(sink: Buffer, byteCount: Long): Long
+
+
Removes at least 1, and up to byteCount bytes from this and appends them to sink.
+
+
+
common
+
+
+ +
+
abstract fun read(sink: ByteArray, offset: Int, byteCount: Int): Int
+
+
Removes up to byteCount bytes from this and copies them into sink at offset.
+
+
+ +
+
+ +
+
abstract fun read(sink: ByteArray, offset: Int, byteCount: Int): Int
+
+
+
+
+
+
+ +
+
+
readAll +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun readAll(sink: Sink): Long
+
+
Removes all bytes from this and appends them to sink.
+
+
+ +
+
+ +
+
abstract fun readAll(sink: Sink): Long
+
+
+
+
+
+
+ +
+
+
readByte +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun readByte(): Byte
+
+
Removes a byte from this source and returns it.
+
+
+ +
+
+ +
+
abstract fun readByte(): Byte
+
+
+
+
+
+
+ +
+
+
readByteArray +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun readByteArray(): ByteArray
+
+
Removes all bytes from this and returns them as a byte array.
+
+
+ +
+
+ +
+
abstract fun readByteArray(): ByteArray
+
+
+
+
+
common
+
+
+ +
+
abstract fun readByteArray(byteCount: Long): ByteArray
+
+
Removes byteCount bytes from this and returns them as a byte array.
+
+
+ +
+
+ +
+
abstract fun readByteArray(byteCount: Long): ByteArray
+
+
+
+
+
+
+ +
+
+
readByteString +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun readByteString(): ByteString
+
+
Removes all bytes from this and returns them as a byte string.
+
+
+ +
+
+ +
+
abstract fun readByteString(): ByteString
+
+
+
+
+
common
+
+
+ +
+
abstract fun readByteString(byteCount: Long): ByteString
+
+
Removes byteCount bytes from this and returns them as a byte string.
+
+
+ +
+
+ +
+
abstract fun readByteString(byteCount: Long): ByteString
+
+
+
+
+
+
+ +
+
+
readDecimalLong +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun readDecimalLong(): Long
+
+
Reads a long from this source in signed decimal form (i.e., as a string in base 10 with optional leading '-').
+
+
+ +
+
+ +
+
abstract fun readDecimalLong(): Long
+
+
+
+
+
+
+ +
+
+
readFully +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun readFully(sink: ByteArray)
+
+
Removes exactly sink.length bytes from this and copies them into sink.
+
+
+ +
+
+ +
+
abstract fun readFully(sink: ByteArray)
+
+
+
+
+
common
+
+
+ +
+
abstract fun readFully(sink: Buffer, byteCount: Long)
+
+
Removes exactly byteCount bytes from this and appends them to sink.
+
+
+ +
+
+ +
+
abstract fun readFully(sink: Buffer, byteCount: Long)
+
+
+
+
+
+
+ +
+
+
readHexadecimalUnsignedLong +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun readHexadecimalUnsignedLong(): Long
+
+
Reads a long form this source in hexadecimal form (i.e., as a string in base 16).
+
+
+ +
+
+ +
+
abstract fun readHexadecimalUnsignedLong(): Long
+
+
+
+
+
+
+ +
+
+
readInt +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun readInt(): Int
+
+
Removes four bytes from this source and returns a big-endian int.
+
+
+ +
+
+ +
+
abstract fun readInt(): Int
+
+
+
+
+
+
+ +
+
+
readIntLe +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun readIntLe(): Int
+
+
Removes four bytes from this source and returns a little-endian int.
+
+
+ +
+
+ +
+
abstract fun readIntLe(): Int
+
+
+
+
+
+
+ +
+
+
readLong +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun readLong(): Long
+
+
Removes eight bytes from this source and returns a big-endian long.
+
+
+ +
+
+ +
+
abstract fun readLong(): Long
+
+
+
+
+
+
+ +
+
+
readLongLe +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun readLongLe(): Long
+
+
Removes eight bytes from this source and returns a little-endian long.
+
+
+ +
+
+ +
+
abstract fun readLongLe(): Long
+
+
+
+
+
+
+ +
+
+
readShort +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun readShort(): Short
+
+
Removes two bytes from this source and returns a big-endian short.
+
+
+ +
+
+ +
+
abstract fun readShort(): Short
+
+
+
+
+
+
+ +
+
+
readShortLe +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun readShortLe(): Short
+
+
Removes two bytes from this source and returns a little-endian short.
+
+
+ +
+
+ +
+
abstract fun readShortLe(): Short
+
+
+
+
+
+
+ +
+
+
readString +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
abstract fun readString(charset: Charset): String
+
+
Removes all bytes from this, decodes them as charset, and returns the string.
+
+ +
+
abstract fun readString(byteCount: Long, charset: Charset): String
+
+
Removes byteCount bytes from this, decodes them as charset, and returns the string.
+
+
+
+
+ +
+
+
readUtf8 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun readUtf8(): String
+
+
Removes all bytes from this, decodes them as UTF-8, and returns the string.
+
+
+ +
+
+ +
+
abstract fun readUtf8(): String
+
+
+
+
+
common
+
+
+ +
+
abstract fun readUtf8(byteCount: Long): String
+
+
Removes byteCount bytes from this, decodes them as UTF-8, and returns the string.
+
+
+ +
+
+ +
+
abstract fun readUtf8(byteCount: Long): String
+
+
+
+
+
+
+ +
+
+
readUtf8CodePoint +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun readUtf8CodePoint(): Int
+
+
Removes and returns a single UTF-8 code point, reading between 1 and 4 bytes as necessary.
+
+
+ +
+
+ +
+
abstract fun readUtf8CodePoint(): Int
+
+
+
+
+
+
+ +
+
+
readUtf8Line +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun readUtf8Line(): String?
+
+
Removes and returns characters up to but not including the next line break.
+
+
+ +
+
+ +
+
abstract fun readUtf8Line(): String?
+
+
+
+
+
+
+ +
+
+
readUtf8LineStrict +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun readUtf8LineStrict(): String
+
+
Removes and returns characters up to but not including the next line break.
+
+
+ +
+
+ +
+
abstract fun readUtf8LineStrict(): String
+
+
+
+
+
common
+
+
+ +
+
abstract fun readUtf8LineStrict(limit: Long): String
+
+
Like readUtf8LineStrict, except this allows the caller to specify the longest allowed match.
+
+
+ +
+
+ +
+
abstract fun readUtf8LineStrict(limit: Long): String
+
+
+
+
+
+
+ +
+
+
request +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun request(byteCount: Long): Boolean
+
+
Returns true when the buffer contains at least byteCount bytes, expanding it as necessary.
+
+
+ +
+
+ +
+
abstract fun request(byteCount: Long): Boolean
+
+
+
+
+
+
+ +
+
+
require +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun require(byteCount: Long)
+
+
Returns when the buffer contains at least byteCount bytes.
+
+
+ +
+
+ +
+
abstract fun require(byteCount: Long)
+
+
+
+
+
+
+ +
+
+
select +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun select(options: Options): Int
+
+
Finds the first string in options that is a prefix of this buffer, consumes it from this buffer, and returns its index.
+
+
+ +
+
+ +
+
abstract fun select(options: Options): Int
+
+
+
+
+
+
+ +
+
+
skip +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun skip(byteCount: Long)
+
+
Reads and discards byteCount bytes from this source.
+
+
+ +
+
+ +
+
abstract fun skip(byteCount: Long)
+
+
+
+
+
+
+ +
+
+
timeout +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun timeout(): Timeout
+
+
Returns the timeout for this source.
+
+
+ +
+
+ +
+
abstract fun timeout(): Timeout
+
+
Returns the timeout for this source.
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun toString(): String
open fun toString(): String
+
+
+
+
+
+
+
+

Properties

+
+
+
+
buffer +
Link copied to clipboard
+
+
+
+
+
+
abstract val buffer: Buffer
This source's internal buffer.
abstract val buffer: Buffer
+
+
+
+
+
+

Inheritors

+
+
+
+
Buffer +
Link copied to clipboard
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/input-stream.html b/2.x/okio/okio/-buffered-source/input-stream.html new file mode 100644 index 0000000000..a1e5eabc71 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/input-stream.html @@ -0,0 +1,53 @@ + + + + inputStream + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

inputStream

+
+
+ +
+
abstract fun inputStream(): InputStream
+
+

Returns an input stream that reads from this source.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/peek.html b/2.x/okio/okio/-buffered-source/peek.html new file mode 100644 index 0000000000..5a3c8e8167 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/peek.html @@ -0,0 +1,67 @@ + + + + peek + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

peek

+
+
+
+
common
+
+
+ +
+
abstract fun peek(): BufferedSource
+
+

Returns a new BufferedSource that can read data from this BufferedSource without consuming it. The returned source becomes invalid once this source is next read or closed.

For example, we can use peek() to lookahead and read the same data multiple times.

val buffer = Buffer()
buffer.writeUtf8("abcdefghi")

buffer.readUtf8(3) // returns "abc", buffer contains "defghi"

val peek = buffer.peek()
peek.readUtf8(3) // returns "def", buffer contains "defghi"
peek.readUtf8(3) // returns "ghi", buffer contains "defghi"

buffer.readUtf8(3) // returns "def", buffer contains "ghi"
+
+
+ +
+
+ +
+
abstract fun peek(): BufferedSource
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/range-equals.html b/2.x/okio/okio/-buffered-source/range-equals.html new file mode 100644 index 0000000000..56b56832d9 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/range-equals.html @@ -0,0 +1,77 @@ + + + + rangeEquals + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

rangeEquals

+
+
+
+
common
+
+
+ +
+
abstract fun rangeEquals(offset: Long, bytes: ByteString): Boolean
+
+

Returns true if the bytes at offset in this source equal bytes. This expands the buffer as necessary until a byte does not match, all bytes are matched, or if the stream is exhausted before enough bytes could determine a match.

ByteString simonSays = ByteString.encodeUtf8("Simon says:");

Buffer standOnOneLeg = new Buffer().writeUtf8("Simon says: Stand on one leg.");
assertTrue(standOnOneLeg.rangeEquals(0, simonSays));

Buffer payMeMoney = new Buffer().writeUtf8("Pay me $1,000,000.");
assertFalse(payMeMoney.rangeEquals(0, simonSays));
+
+
+ +
+
+ +
+
abstract fun rangeEquals(offset: Long, bytes: ByteString): Boolean
abstract fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean
+
+
+
+
+
common
+
+
+ +
+
abstract fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean
+
+

Returns true if byteCount bytes at offset in this source equal bytes at bytesOffset. This expands the buffer as necessary until a byte does not match, all bytes are matched, or if the stream is exhausted before enough bytes could determine a match.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/read-all.html b/2.x/okio/okio/-buffered-source/read-all.html new file mode 100644 index 0000000000..47773326e0 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/read-all.html @@ -0,0 +1,67 @@ + + + + readAll + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readAll

+
+
+
+
common
+
+
+ +
+
abstract fun readAll(sink: Sink): Long
+
+

Removes all bytes from this and appends them to sink. Returns the total number of bytes written to sink which will be 0 if this is exhausted.

+
+
+ +
+
+ +
+
abstract fun readAll(sink: Sink): Long
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/read-byte-array.html b/2.x/okio/okio/-buffered-source/read-byte-array.html new file mode 100644 index 0000000000..d08710f269 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/read-byte-array.html @@ -0,0 +1,77 @@ + + + + readByteArray + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readByteArray

+
+
+
+
common
+
+
+ +
+
abstract fun readByteArray(): ByteArray
+
+

Removes all bytes from this and returns them as a byte array.

+
+
+ +
+
+ +
+
abstract fun readByteArray(): ByteArray
abstract fun readByteArray(byteCount: Long): ByteArray
+
+
+
+
+
common
+
+
+ +
+
abstract fun readByteArray(byteCount: Long): ByteArray
+
+

Removes byteCount bytes from this and returns them as a byte array.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/read-byte-string.html b/2.x/okio/okio/-buffered-source/read-byte-string.html new file mode 100644 index 0000000000..41ab917739 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/read-byte-string.html @@ -0,0 +1,77 @@ + + + + readByteString + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readByteString

+
+
+
+
common
+
+
+ +
+
abstract fun readByteString(): ByteString
+
+

Removes all bytes from this and returns them as a byte string.

+
+
+ +
+
+ +
+
abstract fun readByteString(): ByteString
abstract fun readByteString(byteCount: Long): ByteString
+
+
+
+
+
common
+
+
+ +
+
abstract fun readByteString(byteCount: Long): ByteString
+
+

Removes byteCount bytes from this and returns them as a byte string.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/read-byte.html b/2.x/okio/okio/-buffered-source/read-byte.html new file mode 100644 index 0000000000..53795f6d8c --- /dev/null +++ b/2.x/okio/okio/-buffered-source/read-byte.html @@ -0,0 +1,67 @@ + + + + readByte + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readByte

+
+
+
+
common
+
+
+ +
+
abstract fun readByte(): Byte
+
+

Removes a byte from this source and returns it.

+
+
+ +
+
+ +
+
abstract fun readByte(): Byte
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/read-decimal-long.html b/2.x/okio/okio/-buffered-source/read-decimal-long.html new file mode 100644 index 0000000000..9b4fdfb181 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/read-decimal-long.html @@ -0,0 +1,67 @@ + + + + readDecimalLong + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readDecimalLong

+
+
+
+
common
+
+
+ +
+
abstract fun readDecimalLong(): Long
+
+

Reads a long from this source in signed decimal form (i.e., as a string in base 10 with optional leading '-'). This will iterate until a non-digit character is found.

Buffer buffer = new Buffer()
.writeUtf8("8675309 -123 00001");

assertEquals(8675309L, buffer.readDecimalLong());
assertEquals(' ', buffer.readByte());
assertEquals(-123L, buffer.readDecimalLong());
assertEquals(' ', buffer.readByte());
assertEquals(1L, buffer.readDecimalLong());

Throws

if the found digits do not fit into a long or a decimal number was not present.

+
+
+ +
+
+ +
+
abstract fun readDecimalLong(): Long
+
+

Throws

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/read-fully.html b/2.x/okio/okio/-buffered-source/read-fully.html new file mode 100644 index 0000000000..2181d6136b --- /dev/null +++ b/2.x/okio/okio/-buffered-source/read-fully.html @@ -0,0 +1,77 @@ + + + + readFully + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readFully

+
+
+
+
common
+
+
+ +
+
abstract fun readFully(sink: ByteArray)
+
+

Removes exactly sink.length bytes from this and copies them into sink. Throws an java.io.EOFException if the requested number of bytes cannot be read.

+
+
+ +
+
+ +
+
abstract fun readFully(sink: ByteArray)
abstract fun readFully(sink: Buffer, byteCount: Long)
+
+
+
+
+
common
+
+
+ +
+
abstract fun readFully(sink: Buffer, byteCount: Long)
+
+

Removes exactly byteCount bytes from this and appends them to sink. Throws an java.io.EOFException if the requested number of bytes cannot be read.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/read-hexadecimal-unsigned-long.html b/2.x/okio/okio/-buffered-source/read-hexadecimal-unsigned-long.html new file mode 100644 index 0000000000..0f0ffa4c31 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/read-hexadecimal-unsigned-long.html @@ -0,0 +1,67 @@ + + + + readHexadecimalUnsignedLong + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readHexadecimalUnsignedLong

+
+
+
+
common
+
+
+ +
+
abstract fun readHexadecimalUnsignedLong(): Long
+
+

Reads a long form this source in hexadecimal form (i.e., as a string in base 16). This will iterate until a non-hexadecimal character is found.

Buffer buffer = new Buffer()
.writeUtf8("ffff CAFEBABE 10");

assertEquals(65535L, buffer.readHexadecimalUnsignedLong());
assertEquals(' ', buffer.readByte());
assertEquals(0xcafebabeL, buffer.readHexadecimalUnsignedLong());
assertEquals(' ', buffer.readByte());
assertEquals(0x10L, buffer.readHexadecimalUnsignedLong());

Throws

if the found hexadecimal does not fit into a long or hexadecimal was not found.

+
+
+ +
+
+ +
+
abstract fun readHexadecimalUnsignedLong(): Long
+
+

Throws

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/read-int-le.html b/2.x/okio/okio/-buffered-source/read-int-le.html new file mode 100644 index 0000000000..1923fd244e --- /dev/null +++ b/2.x/okio/okio/-buffered-source/read-int-le.html @@ -0,0 +1,67 @@ + + + + readIntLe + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readIntLe

+
+
+
+
common
+
+
+ +
+
abstract fun readIntLe(): Int
+
+

Removes four bytes from this source and returns a little-endian int.

Buffer buffer = new Buffer()
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0x7f)
.writeByte(0x0f)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00);
assertEquals(8, buffer.size());

assertEquals(2147483647, buffer.readIntLe());
assertEquals(4, buffer.size());

assertEquals(15, buffer.readIntLe());
assertEquals(0, buffer.size());
+
+
+ +
+
+ +
+
abstract fun readIntLe(): Int
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/read-int.html b/2.x/okio/okio/-buffered-source/read-int.html new file mode 100644 index 0000000000..8b69bb4934 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/read-int.html @@ -0,0 +1,67 @@ + + + + readInt + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readInt

+
+
+
+
common
+
+
+ +
+
abstract fun readInt(): Int
+
+

Removes four bytes from this source and returns a big-endian int.

Buffer buffer = new Buffer()
.writeByte(0x7f)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x0f);
assertEquals(8, buffer.size());

assertEquals(2147483647, buffer.readInt());
assertEquals(4, buffer.size());

assertEquals(15, buffer.readInt());
assertEquals(0, buffer.size());
+
+
+ +
+
+ +
+
abstract fun readInt(): Int
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/read-long-le.html b/2.x/okio/okio/-buffered-source/read-long-le.html new file mode 100644 index 0000000000..b7384fefe2 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/read-long-le.html @@ -0,0 +1,67 @@ + + + + readLongLe + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readLongLe

+
+
+
+
common
+
+
+ +
+
abstract fun readLongLe(): Long
+
+

Removes eight bytes from this source and returns a little-endian long.

Buffer buffer = new Buffer()
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0x7f)
.writeByte(0x0f)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00);
assertEquals(16, buffer.size());

assertEquals(9223372036854775807L, buffer.readLongLe());
assertEquals(8, buffer.size());

assertEquals(15, buffer.readLongLe());
assertEquals(0, buffer.size());
+
+
+ +
+
+ +
+
abstract fun readLongLe(): Long
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/read-long.html b/2.x/okio/okio/-buffered-source/read-long.html new file mode 100644 index 0000000000..04abbd6c64 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/read-long.html @@ -0,0 +1,67 @@ + + + + readLong + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readLong

+
+
+
+
common
+
+
+ +
+
abstract fun readLong(): Long
+
+

Removes eight bytes from this source and returns a big-endian long.

Buffer buffer = new Buffer()
.writeByte(0x7f)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x0f);
assertEquals(16, buffer.size());

assertEquals(9223372036854775807L, buffer.readLong());
assertEquals(8, buffer.size());

assertEquals(15, buffer.readLong());
assertEquals(0, buffer.size());
+
+
+ +
+
+ +
+
abstract fun readLong(): Long
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/read-short-le.html b/2.x/okio/okio/-buffered-source/read-short-le.html new file mode 100644 index 0000000000..344679c0c5 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/read-short-le.html @@ -0,0 +1,67 @@ + + + + readShortLe + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readShortLe

+
+
+
+
common
+
+
+ +
+
abstract fun readShortLe(): Short
+
+

Removes two bytes from this source and returns a little-endian short.

Buffer buffer = new Buffer()
.writeByte(0xff)
.writeByte(0x7f)
.writeByte(0x0f)
.writeByte(0x00);
assertEquals(4, buffer.size());

assertEquals(32767, buffer.readShortLe());
assertEquals(2, buffer.size());

assertEquals(15, buffer.readShortLe());
assertEquals(0, buffer.size());
+
+
+ +
+
+ +
+
abstract fun readShortLe(): Short
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/read-short.html b/2.x/okio/okio/-buffered-source/read-short.html new file mode 100644 index 0000000000..6b3b87618c --- /dev/null +++ b/2.x/okio/okio/-buffered-source/read-short.html @@ -0,0 +1,67 @@ + + + + readShort + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readShort

+
+
+
+
common
+
+
+ +
+
abstract fun readShort(): Short
+
+

Removes two bytes from this source and returns a big-endian short.

Buffer buffer = new Buffer()
.writeByte(0x7f)
.writeByte(0xff)
.writeByte(0x00)
.writeByte(0x0f);
assertEquals(4, buffer.size());

assertEquals(32767, buffer.readShort());
assertEquals(2, buffer.size());

assertEquals(15, buffer.readShort());
assertEquals(0, buffer.size());
+
+
+ +
+
+ +
+
abstract fun readShort(): Short
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/read-string.html b/2.x/okio/okio/-buffered-source/read-string.html new file mode 100644 index 0000000000..d0021e9e52 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/read-string.html @@ -0,0 +1,59 @@ + + + + readString + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readString

+
+
+ +
+
abstract fun readString(charset: Charset): String
+
+

Removes all bytes from this, decodes them as charset, and returns the string.

+
+ +
+
abstract fun readString(byteCount: Long, charset: Charset): String
+
+

Removes byteCount bytes from this, decodes them as charset, and returns the string.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/read-utf8-code-point.html b/2.x/okio/okio/-buffered-source/read-utf8-code-point.html new file mode 100644 index 0000000000..a096a03980 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/read-utf8-code-point.html @@ -0,0 +1,67 @@ + + + + readUtf8CodePoint + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readUtf8CodePoint

+
+
+
+
common
+
+
+ +
+
abstract fun readUtf8CodePoint(): Int
+
+

Removes and returns a single UTF-8 code point, reading between 1 and 4 bytes as necessary.

If this source is exhausted before a complete code point can be read, this throws an java.io.EOFException and consumes no input.

If this source doesn't start with a properly-encoded UTF-8 code point, this method will remove 1 or more non-UTF-8 bytes and return the replacement character (U+FFFD). This covers encoding problems (the input is not properly-encoded UTF-8), characters out of range (beyond the 0x10ffff limit of Unicode), code points for UTF-16 surrogates (U+d800..U+dfff) and overlong encodings (such as 0xc080 for the NUL character in modified UTF-8).

+
+
+ +
+
+ +
+
abstract fun readUtf8CodePoint(): Int
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/read-utf8-line-strict.html b/2.x/okio/okio/-buffered-source/read-utf8-line-strict.html new file mode 100644 index 0000000000..a5e699fe2a --- /dev/null +++ b/2.x/okio/okio/-buffered-source/read-utf8-line-strict.html @@ -0,0 +1,77 @@ + + + + readUtf8LineStrict + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readUtf8LineStrict

+
+
+
+
common
+
+
+ +
+
abstract fun readUtf8LineStrict(): String
+
+

Removes and returns characters up to but not including the next line break. A line break is either "\n" or "\r\n"; these characters are not included in the result.

On the end of the stream this method throws. Every call must consume either '\r\n' or '\n'. If these characters are absent in the stream, an java.io.EOFException is thrown. Use this for machine-generated data where a missing line break implies truncated input.

+
+
+ +
+
+ +
+
abstract fun readUtf8LineStrict(): String
abstract fun readUtf8LineStrict(limit: Long): String
+
+
+
+
+
common
+
+
+ +
+
abstract fun readUtf8LineStrict(limit: Long): String
+
+

Like readUtf8LineStrict, except this allows the caller to specify the longest allowed match. Use this to protect against streams that may not include "\n" or "\r\n".

The returned string will have at most limit UTF-8 bytes, and the maximum number of bytes scanned is limit + 2. If limit == 0 this will always throw an EOFException because no bytes will be scanned.

This method is safe. No bytes are discarded if the match fails, and the caller is free to try another match:

Buffer buffer = new Buffer();
buffer.writeUtf8("12345\r\n");

// This will throw! There must be \r\n or \n at the limit or before it.
buffer.readUtf8LineStrict(4);

// No bytes have been consumed so the caller can retry.
assertEquals("12345", buffer.readUtf8LineStrict(5));
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/read-utf8-line.html b/2.x/okio/okio/-buffered-source/read-utf8-line.html new file mode 100644 index 0000000000..e07cea653e --- /dev/null +++ b/2.x/okio/okio/-buffered-source/read-utf8-line.html @@ -0,0 +1,67 @@ + + + + readUtf8Line + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readUtf8Line

+
+
+
+
common
+
+
+ +
+
abstract fun readUtf8Line(): String?
+
+

Removes and returns characters up to but not including the next line break. A line break is either "\n" or "\r\n"; these characters are not included in the result.

Buffer buffer = new Buffer()
.writeUtf8("I'm a hacker!\n")
.writeUtf8("That's what I said: you're a nerd.\n")
.writeUtf8("I prefer to be called a hacker!\n");
assertEquals(81, buffer.size());

assertEquals("I'm a hacker!", buffer.readUtf8Line());
assertEquals(67, buffer.size());

assertEquals("That's what I said: you're a nerd.", buffer.readUtf8Line());
assertEquals(32, buffer.size());

assertEquals("I prefer to be called a hacker!", buffer.readUtf8Line());
assertEquals(0, buffer.size());

assertEquals(null, buffer.readUtf8Line());
assertEquals(0, buffer.size());

On the end of the stream this method returns null, just like java.io.BufferedReader. If the source doesn't end with a line break then an implicit line break is assumed. Null is returned once the source is exhausted. Use this for human-generated data, where a trailing line break is optional.

+
+
+ +
+
+ +
+
abstract fun readUtf8Line(): String?
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/read-utf8.html b/2.x/okio/okio/-buffered-source/read-utf8.html new file mode 100644 index 0000000000..3967360026 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/read-utf8.html @@ -0,0 +1,77 @@ + + + + readUtf8 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readUtf8

+
+
+
+
common
+
+
+ +
+
abstract fun readUtf8(): String
+
+

Removes all bytes from this, decodes them as UTF-8, and returns the string. Returns the empty string if this source is empty.

Buffer buffer = new Buffer()
.writeUtf8("Uh uh uh!")
.writeByte(' ')
.writeUtf8("You didn't say the magic word!");

assertEquals("Uh uh uh! You didn't say the magic word!", buffer.readUtf8());
assertEquals(0, buffer.size());

assertEquals("", buffer.readUtf8());
assertEquals(0, buffer.size());
+
+
+ +
+
+ +
+
abstract fun readUtf8(): String
abstract fun readUtf8(byteCount: Long): String
+
+
+
+
+
common
+
+
+ +
+
abstract fun readUtf8(byteCount: Long): String
+
+

Removes byteCount bytes from this, decodes them as UTF-8, and returns the string.

Buffer buffer = new Buffer()
.writeUtf8("Uh uh uh!")
.writeByte(' ')
.writeUtf8("You didn't say the magic word!");
assertEquals(40, buffer.size());

assertEquals("Uh uh uh! You ", buffer.readUtf8(14));
assertEquals(26, buffer.size());

assertEquals("didn't say the", buffer.readUtf8(14));
assertEquals(12, buffer.size());

assertEquals(" magic word!", buffer.readUtf8(12));
assertEquals(0, buffer.size());
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/read.html b/2.x/okio/okio/-buffered-source/read.html new file mode 100644 index 0000000000..f2526be9e4 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/read.html @@ -0,0 +1,77 @@ + + + + read + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

read

+
+
+
+
common
+
+
+ +
+
abstract fun read(sink: ByteArray): Int
+
+

Removes up to sink.length bytes from this and copies them into sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+
+ +
+
+ +
+
abstract fun read(sink: ByteArray): Int
abstract fun read(sink: ByteArray, offset: Int, byteCount: Int): Int
+
+
+
+
+
common
+
+
+ +
+
abstract fun read(sink: ByteArray, offset: Int, byteCount: Int): Int
+
+

Removes up to byteCount bytes from this and copies them into sink at offset. Returns the number of bytes read, or -1 if this source is exhausted.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/request.html b/2.x/okio/okio/-buffered-source/request.html new file mode 100644 index 0000000000..f194e930b1 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/request.html @@ -0,0 +1,67 @@ + + + + request + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

request

+
+
+
+
common
+
+
+ +
+
abstract fun request(byteCount: Long): Boolean
+
+

Returns true when the buffer contains at least byteCount bytes, expanding it as necessary. Returns false if the source is exhausted before the requested bytes can be read.

+
+
+ +
+
+ +
+
abstract fun request(byteCount: Long): Boolean
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/require.html b/2.x/okio/okio/-buffered-source/require.html new file mode 100644 index 0000000000..d1256e44ae --- /dev/null +++ b/2.x/okio/okio/-buffered-source/require.html @@ -0,0 +1,67 @@ + + + + require + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

require

+
+
+
+
common
+
+
+ +
+
abstract fun require(byteCount: Long)
+
+

Returns when the buffer contains at least byteCount bytes. Throws an java.io.EOFException if the source is exhausted before the required bytes can be read.

+
+
+ +
+
+ +
+
abstract fun require(byteCount: Long)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/select.html b/2.x/okio/okio/-buffered-source/select.html new file mode 100644 index 0000000000..a1a6bc8d42 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/select.html @@ -0,0 +1,67 @@ + + + + select + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

select

+
+
+
+
common
+
+
+ +
+
abstract fun select(options: Options): Int
+
+

Finds the first string in options that is a prefix of this buffer, consumes it from this buffer, and returns its index. If no byte string in options is a prefix of this buffer this returns -1 and no bytes are consumed.

This can be used as an alternative to readByteString or even readUtf8 if the set of expected values is known in advance.

Options FIELDS = Options.of(
ByteString.encodeUtf8("depth="),
ByteString.encodeUtf8("height="),
ByteString.encodeUtf8("width="));

Buffer buffer = new Buffer()
.writeUtf8("width=640\n")
.writeUtf8("height=480\n");

assertEquals(2, buffer.select(FIELDS));
assertEquals(640, buffer.readDecimalLong());
assertEquals('\n', buffer.readByte());
assertEquals(1, buffer.select(FIELDS));
assertEquals(480, buffer.readDecimalLong());
assertEquals('\n', buffer.readByte());
+
+
+ +
+
+ +
+
abstract fun select(options: Options): Int
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-buffered-source/skip.html b/2.x/okio/okio/-buffered-source/skip.html new file mode 100644 index 0000000000..183afe0116 --- /dev/null +++ b/2.x/okio/okio/-buffered-source/skip.html @@ -0,0 +1,67 @@ + + + + skip + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

skip

+
+
+
+
common
+
+
+ +
+
abstract fun skip(byteCount: Long)
+
+

Reads and discards byteCount bytes from this source. Throws an java.io.EOFException if the source is exhausted before the requested bytes can be skipped.

+
+
+ +
+
+ +
+
abstract fun skip(byteCount: Long)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/-companion/-e-m-p-t-y.html b/2.x/okio/okio/-byte-string/-companion/-e-m-p-t-y.html new file mode 100644 index 0000000000..1477dba6f6 --- /dev/null +++ b/2.x/okio/okio/-byte-string/-companion/-e-m-p-t-y.html @@ -0,0 +1,67 @@ + + + + EMPTY + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

EMPTY

+
+
+
+
common
+
+
+ +
+
val EMPTY: ByteString
+
+

A singleton empty ByteString.

+
+
+ +
+
+ +
+
val EMPTY: ByteString
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/-companion/decode-base64.html b/2.x/okio/okio/-byte-string/-companion/decode-base64.html new file mode 100644 index 0000000000..3d8fcfae3d --- /dev/null +++ b/2.x/okio/okio/-byte-string/-companion/decode-base64.html @@ -0,0 +1,67 @@ + + + + decodeBase64 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

decodeBase64

+
+
+
+
common
+
+
+ +
+
fun String.decodeBase64(): ByteString?
+
+

Decodes the Base64-encoded bytes and returns their value as a byte string. Returns null if this is not a Base64-encoded sequence of bytes.

+
+
+ +
+
+ +
+
fun String.decodeBase64(): ByteString?
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/-companion/decode-hex.html b/2.x/okio/okio/-byte-string/-companion/decode-hex.html new file mode 100644 index 0000000000..2ae7b8f814 --- /dev/null +++ b/2.x/okio/okio/-byte-string/-companion/decode-hex.html @@ -0,0 +1,67 @@ + + + + decodeHex + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

decodeHex

+
+
+
+
common
+
+
+ +
+
fun String.decodeHex(): ByteString
+
+

Decodes the hex-encoded bytes and returns their value a byte string.

+
+
+ +
+
+ +
+
fun String.decodeHex(): ByteString
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/-companion/encode-utf8.html b/2.x/okio/okio/-byte-string/-companion/encode-utf8.html new file mode 100644 index 0000000000..3693f160aa --- /dev/null +++ b/2.x/okio/okio/-byte-string/-companion/encode-utf8.html @@ -0,0 +1,67 @@ + + + + encodeUtf8 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

encodeUtf8

+
+
+
+
common
+
+
+ +
+
fun String.encodeUtf8(): ByteString
+
+

Returns a new byte string containing the UTF-8 bytes of this String.

+
+
+ +
+
+ +
+
fun String.encodeUtf8(): ByteString
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/-companion/encode.html b/2.x/okio/okio/-byte-string/-companion/encode.html new file mode 100644 index 0000000000..f806da1f8d --- /dev/null +++ b/2.x/okio/okio/-byte-string/-companion/encode.html @@ -0,0 +1,53 @@ + + + + encode + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

encode

+
+
+ +
+
@JvmName(name = "encodeString")
fun String.encode(charset: Charset = Charsets.UTF_8): ByteString
+
+

Returns a new ByteString containing the charset-encoded bytes of this String.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/-companion/index.html b/2.x/okio/okio/-byte-string/-companion/index.html new file mode 100644 index 0000000000..e902277dbb --- /dev/null +++ b/2.x/okio/okio/-byte-string/-companion/index.html @@ -0,0 +1,334 @@ + + + + Companion + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Companion

+
object Companion
+
+
+
+
+

Functions

+
+
+
+
decodeBase64 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun String.decodeBase64(): ByteString?
+
+
Decodes the Base64-encoded bytes and returns their value as a byte string.
+
+
+ +
+
+ +
+
fun String.decodeBase64(): ByteString?
+
+
+
+
+
+
+ +
+
+
decodeHex +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun String.decodeHex(): ByteString
+
+
Decodes the hex-encoded bytes and returns their value a byte string.
+
+
+ +
+
+ +
+
fun String.decodeHex(): ByteString
+
+
+
+
+
+
+ +
+
+
encode +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
@JvmName(name = "encodeString")
fun String.encode(charset: Charset = Charsets.UTF_8): ByteString
+
+
Returns a new ByteString containing the charset-encoded bytes of this String.
+
+
+
+
+ +
+
+
encodeUtf8 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun String.encodeUtf8(): ByteString
+
+
Returns a new byte string containing the UTF-8 bytes of this String.
+
+
+ +
+
+ +
+
fun String.encodeUtf8(): ByteString
+
+
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+
+
open operator fun equals(other: Any?): Boolean
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun hashCode(): Int
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
of +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun of(vararg data: Byte): ByteString
+
+
Returns a new byte string containing a clone of the bytes of data.
+
+
+ +
+
+ +
+
fun of(vararg data: Byte): ByteString
+
+
+
+
+
+
+ +
+
+
readByteString +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
@JvmName(name = "read")
fun InputStream.readByteString(byteCount: Int): ByteString
+
+
Reads count bytes from this InputStream and returns the result.
+
+
+
+
+ +
+
+
toByteString +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
@JvmName(name = "of")
fun ByteBuffer.toByteString(): ByteString
+
+
Returns a ByteString containing a copy of this ByteBuffer.
+
+
+
common
+
+
+ +
+
fun ByteArray.toByteString(offset: Int = 0, byteCount: Int = size): ByteString
+
+
Returns a new ByteString containing a copy of byteCount bytes of this ByteArray starting at offset.
+
+
+ +
+
+ +
+
@JvmName(name = "of")
fun ByteArray.toByteString(offset: Int = 0, byteCount: Int = size): ByteString
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun toString(): String
open fun toString(): String
+
+
+
+
+
+
+
+

Properties

+
+
+
+
EMPTY +
Link copied to clipboard
+
+
+
+
+
+
val EMPTY: ByteString
A singleton empty ByteString.
val EMPTY: ByteString
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/-companion/of.html b/2.x/okio/okio/-byte-string/-companion/of.html new file mode 100644 index 0000000000..68b979b3e0 --- /dev/null +++ b/2.x/okio/okio/-byte-string/-companion/of.html @@ -0,0 +1,67 @@ + + + + of + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

of

+
+
+
+
common
+
+
+ +
+
fun of(vararg data: Byte): ByteString
+
+

Returns a new byte string containing a clone of the bytes of data.

+
+
+ +
+
+ +
+
fun of(vararg data: Byte): ByteString
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/-companion/read-byte-string.html b/2.x/okio/okio/-byte-string/-companion/read-byte-string.html new file mode 100644 index 0000000000..9c13c236d1 --- /dev/null +++ b/2.x/okio/okio/-byte-string/-companion/read-byte-string.html @@ -0,0 +1,53 @@ + + + + readByteString + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readByteString

+
+
+ +
+
@JvmName(name = "read")
fun InputStream.readByteString(byteCount: Int): ByteString
+
+

Reads count bytes from this InputStream and returns the result.

Throws

if in has fewer than count bytes to read.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/-companion/to-byte-string.html b/2.x/okio/okio/-byte-string/-companion/to-byte-string.html new file mode 100644 index 0000000000..422189d5ef --- /dev/null +++ b/2.x/okio/okio/-byte-string/-companion/to-byte-string.html @@ -0,0 +1,77 @@ + + + + toByteString + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

toByteString

+
+
+
+ +
+
+ +
+
@JvmName(name = "of")
fun ByteBuffer.toByteString(): ByteString
+
+

Returns a ByteString containing a copy of this ByteBuffer.

+
+
+
common
+
+
+ +
+
fun ByteArray.toByteString(offset: Int = 0, byteCount: Int = size): ByteString
+
+

Returns a new ByteString containing a copy of byteCount bytes of this ByteArray starting at offset.

+
+
+ +
+
+ +
+
@JvmName(name = "of")
fun ByteArray.toByteString(offset: Int = 0, byteCount: Int = size): ByteString
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/as-byte-buffer.html b/2.x/okio/okio/-byte-string/as-byte-buffer.html new file mode 100644 index 0000000000..a70c54ee10 --- /dev/null +++ b/2.x/okio/okio/-byte-string/as-byte-buffer.html @@ -0,0 +1,53 @@ + + + + asByteBuffer + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

asByteBuffer

+
+
+ +
+
open fun asByteBuffer(): ByteBuffer
+
+

Returns a ByteBuffer view of the bytes in this ByteString.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/base64-url.html b/2.x/okio/okio/-byte-string/base64-url.html new file mode 100644 index 0000000000..88db857fe4 --- /dev/null +++ b/2.x/okio/okio/-byte-string/base64-url.html @@ -0,0 +1,67 @@ + + + + base64Url + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

base64Url

+
+
+
+
common
+
+
+ +
+
fun base64Url(): String
+
+

Returns this byte string encoded as URL-safe Base64.

+
+
+ +
+
+ +
+
open fun base64Url(): String
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/base64.html b/2.x/okio/okio/-byte-string/base64.html new file mode 100644 index 0000000000..54b2798bf2 --- /dev/null +++ b/2.x/okio/okio/-byte-string/base64.html @@ -0,0 +1,67 @@ + + + + base64 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

base64

+
+
+
+
common
+
+
+ +
+
fun base64(): String
+
+

Returns this byte string encoded as Base64. In violation of the RFC, the returned string does not wrap lines at 76 columns.

+
+
+ +
+
+ +
+
open fun base64(): String
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/compare-to.html b/2.x/okio/okio/-byte-string/compare-to.html new file mode 100644 index 0000000000..36d241783e --- /dev/null +++ b/2.x/okio/okio/-byte-string/compare-to.html @@ -0,0 +1,57 @@ + + + + compareTo + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

compareTo

+
+
+
+
common
+
+
+ +
+
open operator override fun compareTo(other: ByteString): Int
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/ends-with.html b/2.x/okio/okio/-byte-string/ends-with.html new file mode 100644 index 0000000000..69d0109faa --- /dev/null +++ b/2.x/okio/okio/-byte-string/ends-with.html @@ -0,0 +1,57 @@ + + + + endsWith + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

endsWith

+
+
+
+
common
+
+
+ +
+
fun endsWith(suffix: ByteString): Boolean
fun endsWith(suffix: ByteArray): Boolean
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/equals.html b/2.x/okio/okio/-byte-string/equals.html new file mode 100644 index 0000000000..3e6bd9d198 --- /dev/null +++ b/2.x/okio/okio/-byte-string/equals.html @@ -0,0 +1,57 @@ + + + + equals + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

equals

+
+
+
+
common
+
+
+ +
+
open operator override fun equals(other: Any?): Boolean
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/get.html b/2.x/okio/okio/-byte-string/get.html new file mode 100644 index 0000000000..e23365b712 --- /dev/null +++ b/2.x/okio/okio/-byte-string/get.html @@ -0,0 +1,67 @@ + + + + get + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

get

+
+
+
+
common
+
+
+ +
+
@JvmName(name = "getByte")
operator fun get(index: Int): Byte
+
+

Returns the byte at index.

+
+
+ +
+
+ +
+
@JvmName(name = "getByte")
operator fun get(index: Int): Byte
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/hash-code.html b/2.x/okio/okio/-byte-string/hash-code.html new file mode 100644 index 0000000000..ad7df32b81 --- /dev/null +++ b/2.x/okio/okio/-byte-string/hash-code.html @@ -0,0 +1,57 @@ + + + + hashCode + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hashCode

+
+
+
+
common
+
+
+ +
+
open override fun hashCode(): Int
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/hex.html b/2.x/okio/okio/-byte-string/hex.html new file mode 100644 index 0000000000..06325acc16 --- /dev/null +++ b/2.x/okio/okio/-byte-string/hex.html @@ -0,0 +1,67 @@ + + + + hex + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hex

+
+
+
+
common
+
+
+ +
+
fun hex(): String
+
+

Returns this byte string encoded in hexadecimal.

+
+
+ +
+
+ +
+
open fun hex(): String
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/hmac-sha1.html b/2.x/okio/okio/-byte-string/hmac-sha1.html new file mode 100644 index 0000000000..b2ae57ee56 --- /dev/null +++ b/2.x/okio/okio/-byte-string/hmac-sha1.html @@ -0,0 +1,55 @@ + + + + hmacSha1 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hmacSha1

+
+
+ +
+
+
+
fun hmacSha1(key: ByteString): ByteString
open fun hmacSha1(key: ByteString): ByteString
+
+

Returns the 160-bit SHA-1 HMAC of this byte string.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/hmac-sha256.html b/2.x/okio/okio/-byte-string/hmac-sha256.html new file mode 100644 index 0000000000..8c6745403a --- /dev/null +++ b/2.x/okio/okio/-byte-string/hmac-sha256.html @@ -0,0 +1,55 @@ + + + + hmacSha256 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hmacSha256

+
+
+ +
+
+
+
fun hmacSha256(key: ByteString): ByteString
open fun hmacSha256(key: ByteString): ByteString
+
+

Returns the 256-bit SHA-256 HMAC of this byte string.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/hmac-sha512.html b/2.x/okio/okio/-byte-string/hmac-sha512.html new file mode 100644 index 0000000000..a4f63d4c4a --- /dev/null +++ b/2.x/okio/okio/-byte-string/hmac-sha512.html @@ -0,0 +1,55 @@ + + + + hmacSha512 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hmacSha512

+
+
+ +
+
+
+
fun hmacSha512(key: ByteString): ByteString
open fun hmacSha512(key: ByteString): ByteString
+
+

Returns the 512-bit SHA-512 HMAC of this byte string.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/index-of.html b/2.x/okio/okio/-byte-string/index-of.html new file mode 100644 index 0000000000..1cb3e3089b --- /dev/null +++ b/2.x/okio/okio/-byte-string/index-of.html @@ -0,0 +1,55 @@ + + + + indexOf + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

indexOf

+
+
+ +
+
+
+
fun indexOf(other: ByteString, fromIndex: Int = 0): Int
fun indexOf(other: ByteArray, fromIndex: Int = 0): Int
fun indexOf(other: ByteString, fromIndex: Int = 0): Int
open fun indexOf(other: ByteArray, fromIndex: Int = 0): Int
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/index.html b/2.x/okio/okio/-byte-string/index.html new file mode 100644 index 0000000000..0abe2dff21 --- /dev/null +++ b/2.x/okio/okio/-byte-string/index.html @@ -0,0 +1,878 @@ + + + + ByteString + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

ByteString

+
+
+
open class ByteString : Comparable<ByteString>

An immutable sequence of bytes.

Byte strings compare lexicographically as a sequence of unsigned bytes. That is, the byte string ff sorts after 00. This is counter to the sort order of the corresponding bytes, where -1 sorts before 0.

Full disclosure: this class provides untrusted input and output streams with raw access to the underlying byte array. A hostile stream implementation could keep a reference to the mutable byte string, violating the immutable guarantee of this class. For this reason a byte string's immutability guarantee cannot be relied upon for security in applets and other environments that run both trusted and untrusted code in the same process.

open class ByteString : Serializable, Comparable<ByteString>
+
+
+
+
+

Types

+
+
+
+
Companion +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
object Companion
+
+
+
+
+
+
+
+

Functions

+
+
+
+
asByteBuffer +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun asByteBuffer(): ByteBuffer
+
+
Returns a ByteBuffer view of the bytes in this ByteString.
+
+
+
+
+ +
+
+
base64 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun base64(): String
+
+
Returns this byte string encoded as Base64.
+
+
+ +
+
+ +
+
open fun base64(): String
+
+
+
+
+
+
+ +
+
+
base64Url +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun base64Url(): String
+
+
Returns this byte string encoded as URL-safe Base64.
+
+
+ +
+
+ +
+
open fun base64Url(): String
+
+
+
+
+
+
+ +
+
+
compareTo +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open operator override fun compareTo(other: ByteString): Int
+
+
+
+
+
+
+ +
+
+
endsWith +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun endsWith(suffix: ByteArray): Boolean
fun endsWith(suffix: ByteString): Boolean
+
+
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open operator override fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
get +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
@JvmName(name = "getByte")
operator fun get(index: Int): Byte
+
+
Returns the byte at index.
+
+
+ +
+
+ +
+
@JvmName(name = "getByte")
operator fun get(index: Int): Byte
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open override fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
hex +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun hex(): String
+
+
Returns this byte string encoded in hexadecimal.
+
+
+ +
+
+ +
+
open fun hex(): String
+
+
+
+
+
+
+ +
+
+
hmacSha1 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun hmacSha1(key: ByteString): ByteString
+
+
Returns the 160-bit SHA-1 HMAC of this byte string.
+
+
+ +
+
+ +
+
open fun hmacSha1(key: ByteString): ByteString
+
+
Returns the 160-bit SHA-1 HMAC of this byte string.
+
+
+
+
+ +
+
+
hmacSha256 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun hmacSha256(key: ByteString): ByteString
+
+
Returns the 256-bit SHA-256 HMAC of this byte string.
+
+
+ +
+
+ +
+
open fun hmacSha256(key: ByteString): ByteString
+
+
Returns the 256-bit SHA-256 HMAC of this byte string.
+
+
+
+
+ +
+
+
hmacSha512 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun hmacSha512(key: ByteString): ByteString
+
+
Returns the 512-bit SHA-512 HMAC of this byte string.
+
+
+ +
+
+ +
+
open fun hmacSha512(key: ByteString): ByteString
+
+
Returns the 512-bit SHA-512 HMAC of this byte string.
+
+
+
+
+ +
+
+
indexOf +
Link copied to clipboard
+
+
+
+ +
+
+
+
fun indexOf(other: ByteArray, fromIndex: Int = 0): Int
fun indexOf(other: ByteString, fromIndex: Int = 0): Int
open fun indexOf(other: ByteArray, fromIndex: Int = 0): Int
fun indexOf(other: ByteString, fromIndex: Int = 0): Int
+
+
+
+
+
+
+ +
+
+
lastIndexOf +
Link copied to clipboard
+
+
+
+ +
+
+
+
fun lastIndexOf(other: ByteArray, fromIndex: Int = size): Int
fun lastIndexOf(other: ByteString, fromIndex: Int = size): Int
open fun lastIndexOf(other: ByteArray, fromIndex: Int = size): Int
fun lastIndexOf(other: ByteString, fromIndex: Int = size): Int
+
+
+
+
+
+
+ +
+
+
md5 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun md5(): ByteString
+
+
Returns the 128-bit MD5 hash of this byte string.
+
+
+ +
+
+ +
+
fun md5(): ByteString
+
+
+
+
+
+
+ +
+
+
rangeEquals +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun rangeEquals(offset: Int, other: ByteArray, otherOffset: Int, byteCount: Int): Boolean
+
+
Returns true if the bytes of this in [offset..offset+byteCount) equal the bytes of other in [otherOffset..otherOffset+byteCount).
+
+
+ +
+
+ +
+
open fun rangeEquals(offset: Int, other: ByteArray, otherOffset: Int, byteCount: Int): Boolean
+
+
+
+
+
common
+
+
+ +
+
fun rangeEquals(offset: Int, other: ByteString, otherOffset: Int, byteCount: Int): Boolean
+
+
Returns true if the bytes of this in [offset..offset+byteCount) equal the bytes of other in [otherOffset..otherOffset+byteCount).
+
+
+ +
+
+ +
+
open fun rangeEquals(offset: Int, other: ByteString, otherOffset: Int, byteCount: Int): Boolean
+
+
+
+
+
+
+ +
+
+
sha1 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun sha1(): ByteString
+
+
Returns the 160-bit SHA-1 hash of this byte string.
+
+
+ +
+
+ +
+
fun sha1(): ByteString
+
+
+
+
+
+
+ +
+
+
sha256 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun sha256(): ByteString
+
+
Returns the 256-bit SHA-256 hash of this byte string.
+
+
+ +
+
+ +
+
fun sha256(): ByteString
+
+
+
+
+
+
+ +
+
+
sha512 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun sha512(): ByteString
+
+
Returns the 512-bit SHA-512 hash of this byte string.
+
+
+ +
+
+ +
+
fun sha512(): ByteString
+
+
+
+
+
+
+ +
+
+
startsWith +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun startsWith(prefix: ByteArray): Boolean
fun startsWith(prefix: ByteString): Boolean
+
+
+
+
+
+
+ +
+
+
string +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun string(charset: Charset): String
+
+
Constructs a new String by decoding the bytes using charset.
+
+
+
+
+ +
+
+
substring +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun substring(beginIndex: Int = 0, endIndex: Int = size): ByteString
+
+
Returns a byte string that is a substring of this byte string, beginning at the specified beginIndex and ends at the specified endIndex.
+
+
+ +
+
+ +
+
open fun substring(beginIndex: Int = 0, endIndex: Int = size): ByteString
+
+
+
+
+
+
+ +
+
+
toAsciiLowercase +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun toAsciiLowercase(): ByteString
+
+
Returns a byte string equal to this byte string, but with the bytes 'A' through 'Z' replaced with the corresponding byte in 'a' through 'z'.
+
+
+ +
+
+ +
+
open fun toAsciiLowercase(): ByteString
+
+
+
+
+
+
+ +
+
+
toAsciiUppercase +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun toAsciiUppercase(): ByteString
+
+
Returns a byte string equal to this byte string, but with the bytes 'a' through 'z' replaced with the corresponding byte in 'A' through 'Z'.
+
+
+ +
+
+ +
+
open fun toAsciiUppercase(): ByteString
+
+
+
+
+
+
+ +
+
+
toByteArray +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun toByteArray(): ByteArray
+
+
Returns a byte array containing a copy of the bytes in this ByteString.
+
+
+ +
+
+ +
+
open fun toByteArray(): ByteArray
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open override fun toString(): String
+
+
Returns a human-readable string that describes the contents of this byte string.
+
+
+ +
+
+ +
+
open override fun toString(): String
+
+
+
+
+
+
+ +
+
+
utf8 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun utf8(): String
+
+
Constructs a new String by decoding the bytes as UTF-8.
+
+
+ +
+
+ +
+
open fun utf8(): String
+
+
+
+
+
+
+ +
+
+
write +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun write(out: OutputStream)
+
+
Writes the contents of this byte string to out.
+
+
+
+
+
+

Properties

+
+
+
+
size +
Link copied to clipboard
+
+
+
+
+
+
val size: Int
Returns the number of bytes in this ByteString.
val size: Int
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/last-index-of.html b/2.x/okio/okio/-byte-string/last-index-of.html new file mode 100644 index 0000000000..bb38078b09 --- /dev/null +++ b/2.x/okio/okio/-byte-string/last-index-of.html @@ -0,0 +1,55 @@ + + + + lastIndexOf + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

lastIndexOf

+
+
+ +
+
+
+
fun lastIndexOf(other: ByteString, fromIndex: Int = size): Int
fun lastIndexOf(other: ByteArray, fromIndex: Int = size): Int
fun lastIndexOf(other: ByteString, fromIndex: Int = size): Int
open fun lastIndexOf(other: ByteArray, fromIndex: Int = size): Int
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/md5.html b/2.x/okio/okio/-byte-string/md5.html new file mode 100644 index 0000000000..5b30c989d6 --- /dev/null +++ b/2.x/okio/okio/-byte-string/md5.html @@ -0,0 +1,67 @@ + + + + md5 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

md5

+
+
+
+
common
+
+
+ +
+
fun md5(): ByteString
+
+

Returns the 128-bit MD5 hash of this byte string.

+
+
+ +
+
+ +
+
fun md5(): ByteString
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/range-equals.html b/2.x/okio/okio/-byte-string/range-equals.html new file mode 100644 index 0000000000..acf434bf70 --- /dev/null +++ b/2.x/okio/okio/-byte-string/range-equals.html @@ -0,0 +1,67 @@ + + + + rangeEquals + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

rangeEquals

+
+
+
+
common
+
+
+ +
+
fun rangeEquals(offset: Int, other: ByteString, otherOffset: Int, byteCount: Int): Boolean
fun rangeEquals(offset: Int, other: ByteArray, otherOffset: Int, byteCount: Int): Boolean
+
+

Returns true if the bytes of this in [offset..offset+byteCount) equal the bytes of other in [otherOffset..otherOffset+byteCount). Returns false if either range is out of bounds.

+
+
+ +
+
+ +
+
open fun rangeEquals(offset: Int, other: ByteString, otherOffset: Int, byteCount: Int): Boolean
open fun rangeEquals(offset: Int, other: ByteArray, otherOffset: Int, byteCount: Int): Boolean
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/sha1.html b/2.x/okio/okio/-byte-string/sha1.html new file mode 100644 index 0000000000..b0fe84429f --- /dev/null +++ b/2.x/okio/okio/-byte-string/sha1.html @@ -0,0 +1,67 @@ + + + + sha1 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

sha1

+
+
+
+
common
+
+
+ +
+
fun sha1(): ByteString
+
+

Returns the 160-bit SHA-1 hash of this byte string.

+
+
+ +
+
+ +
+
fun sha1(): ByteString
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/sha256.html b/2.x/okio/okio/-byte-string/sha256.html new file mode 100644 index 0000000000..17ec3a6af7 --- /dev/null +++ b/2.x/okio/okio/-byte-string/sha256.html @@ -0,0 +1,67 @@ + + + + sha256 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

sha256

+
+
+
+
common
+
+
+ +
+
fun sha256(): ByteString
+
+

Returns the 256-bit SHA-256 hash of this byte string.

+
+
+ +
+
+ +
+
fun sha256(): ByteString
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/sha512.html b/2.x/okio/okio/-byte-string/sha512.html new file mode 100644 index 0000000000..a40816c39c --- /dev/null +++ b/2.x/okio/okio/-byte-string/sha512.html @@ -0,0 +1,67 @@ + + + + sha512 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

sha512

+
+
+
+
common
+
+
+ +
+
fun sha512(): ByteString
+
+

Returns the 512-bit SHA-512 hash of this byte string.

+
+
+ +
+
+ +
+
fun sha512(): ByteString
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/size.html b/2.x/okio/okio/-byte-string/size.html new file mode 100644 index 0000000000..b94493bbca --- /dev/null +++ b/2.x/okio/okio/-byte-string/size.html @@ -0,0 +1,67 @@ + + + + size + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

size

+
+
+
+
common
+
+
+ +
+
val size: Int
+
+

Returns the number of bytes in this ByteString.

+
+
+ +
+
+ +
+
val size: Int
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/starts-with.html b/2.x/okio/okio/-byte-string/starts-with.html new file mode 100644 index 0000000000..2658f8aa6d --- /dev/null +++ b/2.x/okio/okio/-byte-string/starts-with.html @@ -0,0 +1,57 @@ + + + + startsWith + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

startsWith

+
+
+
+
common
+
+
+ +
+
fun startsWith(prefix: ByteString): Boolean
fun startsWith(prefix: ByteArray): Boolean
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/string.html b/2.x/okio/okio/-byte-string/string.html new file mode 100644 index 0000000000..7e6553d15c --- /dev/null +++ b/2.x/okio/okio/-byte-string/string.html @@ -0,0 +1,53 @@ + + + + string + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

string

+
+
+ +
+
open fun string(charset: Charset): String
+
+

Constructs a new String by decoding the bytes using charset.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/substring.html b/2.x/okio/okio/-byte-string/substring.html new file mode 100644 index 0000000000..b2e818459a --- /dev/null +++ b/2.x/okio/okio/-byte-string/substring.html @@ -0,0 +1,67 @@ + + + + substring + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

substring

+
+
+
+
common
+
+
+ +
+
fun substring(beginIndex: Int = 0, endIndex: Int = size): 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.

+
+
+ +
+
+ +
+
open fun substring(beginIndex: Int = 0, endIndex: Int = size): ByteString
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/to-ascii-lowercase.html b/2.x/okio/okio/-byte-string/to-ascii-lowercase.html new file mode 100644 index 0000000000..c3548a5575 --- /dev/null +++ b/2.x/okio/okio/-byte-string/to-ascii-lowercase.html @@ -0,0 +1,67 @@ + + + + toAsciiLowercase + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

toAsciiLowercase

+
+
+
+
common
+
+
+ +
+
fun toAsciiLowercase(): ByteString
+
+

Returns a byte string equal to this byte string, but with the bytes 'A' through 'Z' replaced with the corresponding byte in 'a' through 'z'. Returns this byte string if it contains no bytes in 'A' through 'Z'.

+
+
+ +
+
+ +
+
open fun toAsciiLowercase(): ByteString
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/to-ascii-uppercase.html b/2.x/okio/okio/-byte-string/to-ascii-uppercase.html new file mode 100644 index 0000000000..d53bb8e518 --- /dev/null +++ b/2.x/okio/okio/-byte-string/to-ascii-uppercase.html @@ -0,0 +1,67 @@ + + + + toAsciiUppercase + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

toAsciiUppercase

+
+
+
+
common
+
+
+ +
+
fun toAsciiUppercase(): ByteString
+
+

Returns a byte string equal to this byte string, but with the bytes 'a' through 'z' replaced with the corresponding byte in 'A' through 'Z'. Returns this byte string if it contains no bytes in 'a' through 'z'.

+
+
+ +
+
+ +
+
open fun toAsciiUppercase(): ByteString
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/to-byte-array.html b/2.x/okio/okio/-byte-string/to-byte-array.html new file mode 100644 index 0000000000..ab1b1482d1 --- /dev/null +++ b/2.x/okio/okio/-byte-string/to-byte-array.html @@ -0,0 +1,67 @@ + + + + toByteArray + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

toByteArray

+
+
+
+
common
+
+
+ +
+
fun toByteArray(): ByteArray
+
+

Returns a byte array containing a copy of the bytes in this ByteString.

+
+
+ +
+
+ +
+
open fun toByteArray(): ByteArray
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/to-string.html b/2.x/okio/okio/-byte-string/to-string.html new file mode 100644 index 0000000000..92c823c6b3 --- /dev/null +++ b/2.x/okio/okio/-byte-string/to-string.html @@ -0,0 +1,67 @@ + + + + toString + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

toString

+
+
+
+
common
+
+
+ +
+
open override fun toString(): String
+
+

Returns a human-readable string that describes the contents of this byte string. Typically this is a string like [text=Hello] or [hex=0000ffff].

+
+
+ +
+
+ +
+
open override fun toString(): String
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/utf8.html b/2.x/okio/okio/-byte-string/utf8.html new file mode 100644 index 0000000000..2f27e1c0d0 --- /dev/null +++ b/2.x/okio/okio/-byte-string/utf8.html @@ -0,0 +1,67 @@ + + + + utf8 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

utf8

+
+
+
+
common
+
+
+ +
+
fun utf8(): String
+
+

Constructs a new String by decoding the bytes as UTF-8.

+
+
+ +
+
+ +
+
open fun utf8(): String
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-byte-string/write.html b/2.x/okio/okio/-byte-string/write.html new file mode 100644 index 0000000000..afcd53233a --- /dev/null +++ b/2.x/okio/okio/-byte-string/write.html @@ -0,0 +1,53 @@ + + + + write + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

write

+
+
+ +
+
open fun write(out: OutputStream)
+
+

Writes the contents of this byte string to out.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-cipher-sink/-cipher-sink.html b/2.x/okio/okio/-cipher-sink/-cipher-sink.html new file mode 100644 index 0000000000..82d68185e8 --- /dev/null +++ b/2.x/okio/okio/-cipher-sink/-cipher-sink.html @@ -0,0 +1,53 @@ + + + + CipherSink + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

CipherSink

+
+
+ +
+
fun CipherSink(sink: BufferedSink, cipher: Cipher)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-cipher-sink/cipher.html b/2.x/okio/okio/-cipher-sink/cipher.html new file mode 100644 index 0000000000..e28b7c3a57 --- /dev/null +++ b/2.x/okio/okio/-cipher-sink/cipher.html @@ -0,0 +1,53 @@ + + + + cipher + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

cipher

+
+
+ +
+
val cipher: Cipher
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-cipher-sink/close.html b/2.x/okio/okio/-cipher-sink/close.html new file mode 100644 index 0000000000..243320f544 --- /dev/null +++ b/2.x/okio/okio/-cipher-sink/close.html @@ -0,0 +1,53 @@ + + + + close + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

close

+
+
+ +
+
open override fun close()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-cipher-sink/flush.html b/2.x/okio/okio/-cipher-sink/flush.html new file mode 100644 index 0000000000..fc2a1c97a6 --- /dev/null +++ b/2.x/okio/okio/-cipher-sink/flush.html @@ -0,0 +1,53 @@ + + + + flush + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

flush

+
+
+ +
+
open override fun flush()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-cipher-sink/index.html b/2.x/okio/okio/-cipher-sink/index.html new file mode 100644 index 0000000000..e143a81a8b --- /dev/null +++ b/2.x/okio/okio/-cipher-sink/index.html @@ -0,0 +1,213 @@ + + + + CipherSink + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

CipherSink

+
class CipherSink(sink: BufferedSink, cipher: Cipher) : Sink
+
+
+
+
+

Functions

+
+
+
+
close +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun close()
+
+
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
flush +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun flush()
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
timeout +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun timeout(): Timeout
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun toString(): String
+
+
+
+
+
+
+ +
+
+
write +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun write(source: Buffer, byteCount: Long)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
cipher +
Link copied to clipboard
+
+
+
+ +
+
+
val cipher: Cipher
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-cipher-sink/timeout.html b/2.x/okio/okio/-cipher-sink/timeout.html new file mode 100644 index 0000000000..23222ccae2 --- /dev/null +++ b/2.x/okio/okio/-cipher-sink/timeout.html @@ -0,0 +1,53 @@ + + + + timeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

timeout

+
+
+ +
+
open override fun timeout(): Timeout
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-cipher-sink/write.html b/2.x/okio/okio/-cipher-sink/write.html new file mode 100644 index 0000000000..4db0c76692 --- /dev/null +++ b/2.x/okio/okio/-cipher-sink/write.html @@ -0,0 +1,53 @@ + + + + write + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

write

+
+
+ +
+
open override fun write(source: Buffer, byteCount: Long)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-cipher-source/-cipher-source.html b/2.x/okio/okio/-cipher-source/-cipher-source.html new file mode 100644 index 0000000000..150c0baa1b --- /dev/null +++ b/2.x/okio/okio/-cipher-source/-cipher-source.html @@ -0,0 +1,53 @@ + + + + CipherSource + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

CipherSource

+
+
+ +
+
fun CipherSource(source: BufferedSource, cipher: Cipher)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-cipher-source/cipher.html b/2.x/okio/okio/-cipher-source/cipher.html new file mode 100644 index 0000000000..198ac6f143 --- /dev/null +++ b/2.x/okio/okio/-cipher-source/cipher.html @@ -0,0 +1,53 @@ + + + + cipher + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

cipher

+
+
+ +
+
val cipher: Cipher
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-cipher-source/close.html b/2.x/okio/okio/-cipher-source/close.html new file mode 100644 index 0000000000..aad5564559 --- /dev/null +++ b/2.x/okio/okio/-cipher-source/close.html @@ -0,0 +1,53 @@ + + + + close + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

close

+
+
+ +
+
open override fun close()
+
+

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-cipher-source/index.html b/2.x/okio/okio/-cipher-source/index.html new file mode 100644 index 0000000000..42a29096ca --- /dev/null +++ b/2.x/okio/okio/-cipher-source/index.html @@ -0,0 +1,193 @@ + + + + CipherSource + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

CipherSource

+
class CipherSource(source: BufferedSource, cipher: Cipher) : Source
+
+
+
+
+

Functions

+
+
+
+
close +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun close()
+
+
Closes this source and releases the resources held by this source.
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
read +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun read(sink: Buffer, byteCount: Long): Long
+
+
Removes at least 1, and up to byteCount bytes from this and appends them to sink.
+
+
+
+
+ +
+
+
timeout +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun timeout(): Timeout
+
+
Returns the timeout for this source.
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun toString(): String
+
+
+
+
+
+
+
+

Properties

+
+
+
+
cipher +
Link copied to clipboard
+
+
+
+ +
+
+
val cipher: Cipher
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-cipher-source/read.html b/2.x/okio/okio/-cipher-source/read.html new file mode 100644 index 0000000000..d3d11acf2c --- /dev/null +++ b/2.x/okio/okio/-cipher-source/read.html @@ -0,0 +1,53 @@ + + + + read + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

read

+
+
+ +
+
open override fun read(sink: Buffer, byteCount: Long): Long
+
+

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-cipher-source/timeout.html b/2.x/okio/okio/-cipher-source/timeout.html new file mode 100644 index 0000000000..cd9c48cd2f --- /dev/null +++ b/2.x/okio/okio/-cipher-source/timeout.html @@ -0,0 +1,53 @@ + + + + timeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

timeout

+
+
+ +
+
open override fun timeout(): Timeout
+
+

Returns the timeout for this source.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-closeable/close.html b/2.x/okio/okio/-closeable/close.html new file mode 100644 index 0000000000..607b38bed6 --- /dev/null +++ b/2.x/okio/okio/-closeable/close.html @@ -0,0 +1,53 @@ + + + + close + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

close

+
+
+ +
+
abstract fun close()
+
+

Closes this object and releases the resources it holds. It is an error to use an object after it has been closed. It is safe to close an object more than once.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-closeable/index.html b/2.x/okio/okio/-closeable/index.html new file mode 100644 index 0000000000..6ad435f8a7 --- /dev/null +++ b/2.x/okio/okio/-closeable/index.html @@ -0,0 +1,157 @@ + + + + Closeable + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Closeable

+
+
+
interface Closeable
typealias Closeable = Closeable
+
+
+
+
+

Functions

+
+
+
+
close +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
abstract fun close()
+
+
Closes this object and releases the resources it holds.
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open fun toString(): String
+
+
+
+
+
+
+
+

Inheritors

+
+
+
+
Source +
Link copied to clipboard
+
+
+
+
+ +
+
+
Sink +
Link copied to clipboard
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-deflater-sink/-deflater-sink.html b/2.x/okio/okio/-deflater-sink/-deflater-sink.html new file mode 100644 index 0000000000..f5a7f2f414 --- /dev/null +++ b/2.x/okio/okio/-deflater-sink/-deflater-sink.html @@ -0,0 +1,53 @@ + + + + DeflaterSink + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

DeflaterSink

+
+
+ +
+
fun DeflaterSink(sink: Sink, deflater: Deflater)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-deflater-sink/close.html b/2.x/okio/okio/-deflater-sink/close.html new file mode 100644 index 0000000000..5d51f7987d --- /dev/null +++ b/2.x/okio/okio/-deflater-sink/close.html @@ -0,0 +1,53 @@ + + + + close + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

close

+
+
+ +
+
open override fun close()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-deflater-sink/flush.html b/2.x/okio/okio/-deflater-sink/flush.html new file mode 100644 index 0000000000..99f4f0339a --- /dev/null +++ b/2.x/okio/okio/-deflater-sink/flush.html @@ -0,0 +1,53 @@ + + + + flush + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

flush

+
+
+ +
+
open override fun flush()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-deflater-sink/index.html b/2.x/okio/okio/-deflater-sink/index.html new file mode 100644 index 0000000000..d46d817e13 --- /dev/null +++ b/2.x/okio/okio/-deflater-sink/index.html @@ -0,0 +1,213 @@ + + + + DeflaterSink + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

DeflaterSink

+
class DeflaterSink : Sink

A sink that uses DEFLATE to compress data written to another source.

Sync flush

Aggressive flushing of this stream may result in reduced compression. Each call to flush immediately compresses all currently-buffered data; this early compression may be less effective than compression performed without flushing.

This is equivalent to using Deflater with the sync flush option. This class does not offer any partial flush mechanism. For best performance, only call flush when application behavior requires it.

+
+
+
+
+

Constructors

+
+
+
+
DeflaterSink +
Link copied to clipboard
+
+
+
+ +
+
+
fun DeflaterSink(sink: Sink, deflater: Deflater)
+
+
+
+
+
+

Functions

+
+
+
+
close +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun close()
+
+
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
flush +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun flush()
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
timeout +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun timeout(): Timeout
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun toString(): String
+
+
+
+
+
+
+ +
+
+
write +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun write(source: Buffer, byteCount: Long)
+
+
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-deflater-sink/timeout.html b/2.x/okio/okio/-deflater-sink/timeout.html new file mode 100644 index 0000000000..136bc0d26a --- /dev/null +++ b/2.x/okio/okio/-deflater-sink/timeout.html @@ -0,0 +1,53 @@ + + + + timeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

timeout

+
+
+ +
+
open override fun timeout(): Timeout
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-deflater-sink/to-string.html b/2.x/okio/okio/-deflater-sink/to-string.html new file mode 100644 index 0000000000..80baf961bd --- /dev/null +++ b/2.x/okio/okio/-deflater-sink/to-string.html @@ -0,0 +1,53 @@ + + + + toString + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

toString

+
+
+ +
+
open override fun toString(): String
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-deflater-sink/write.html b/2.x/okio/okio/-deflater-sink/write.html new file mode 100644 index 0000000000..388a35c600 --- /dev/null +++ b/2.x/okio/okio/-deflater-sink/write.html @@ -0,0 +1,53 @@ + + + + write + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

write

+
+
+ +
+
open override fun write(source: Buffer, byteCount: Long)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-e-o-f-exception/-e-o-f-exception.html b/2.x/okio/okio/-e-o-f-exception/-e-o-f-exception.html new file mode 100644 index 0000000000..553d726d18 --- /dev/null +++ b/2.x/okio/okio/-e-o-f-exception/-e-o-f-exception.html @@ -0,0 +1,53 @@ + + + + EOFException + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

EOFException

+
+
+ +
+
fun EOFException(message: String? = null)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-e-o-f-exception/index.html b/2.x/okio/okio/-e-o-f-exception/index.html new file mode 100644 index 0000000000..59aab112c0 --- /dev/null +++ b/2.x/okio/okio/-e-o-f-exception/index.html @@ -0,0 +1,151 @@ + + + + EOFException + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

EOFException

+
+
+
open class EOFException(message: String?) : IOException
typealias EOFException = EOFException
+
+
+
+
+

Functions

+
+
+
+
equals +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open fun toString(): String
+
+
+
+
+
+
+
+

Properties

+
+
+
+
cause +
Link copied to clipboard
+
+
+
+
common
+
+
+
open val cause: Throwable?
+
+
+
+
+ +
+
+
message +
Link copied to clipboard
+
+
+
+
common
+
+
+
open val message: String?
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-experimental-file-system/-experimental-file-system.html b/2.x/okio/okio/-experimental-file-system/-experimental-file-system.html new file mode 100644 index 0000000000..da25353789 --- /dev/null +++ b/2.x/okio/okio/-experimental-file-system/-experimental-file-system.html @@ -0,0 +1,53 @@ + + + + ExperimentalFileSystem + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

ExperimentalFileSystem

+
+
+ +
+
fun ExperimentalFileSystem()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-experimental-file-system/index.html b/2.x/okio/okio/-experimental-file-system/index.html new file mode 100644 index 0000000000..b66c77e158 --- /dev/null +++ b/2.x/okio/okio/-experimental-file-system/index.html @@ -0,0 +1,115 @@ + + + + ExperimentalFileSystem + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

ExperimentalFileSystem

+
annotation class ExperimentalFileSystem
+
+
+
+
+

Functions

+
+
+
+
equals +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open fun toString(): String
+
+
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-file-not-found-exception/-file-not-found-exception.html b/2.x/okio/okio/-file-not-found-exception/-file-not-found-exception.html new file mode 100644 index 0000000000..4e95238531 --- /dev/null +++ b/2.x/okio/okio/-file-not-found-exception/-file-not-found-exception.html @@ -0,0 +1,53 @@ + + + + FileNotFoundException + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

FileNotFoundException

+
+
+ +
+
fun FileNotFoundException(message: String? = null)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-file-not-found-exception/index.html b/2.x/okio/okio/-file-not-found-exception/index.html new file mode 100644 index 0000000000..d4e0a35848 --- /dev/null +++ b/2.x/okio/okio/-file-not-found-exception/index.html @@ -0,0 +1,151 @@ + + + + FileNotFoundException + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

FileNotFoundException

+
+
+
class FileNotFoundException(message: String?) : IOException
typealias FileNotFoundException = FileNotFoundException
+
+
+
+
+

Functions

+
+
+
+
equals +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open fun toString(): String
+
+
+
+
+
+
+
+

Properties

+
+
+
+
cause +
Link copied to clipboard
+
+
+
+
common
+
+
+
open val cause: Throwable?
+
+
+
+
+ +
+
+
message +
Link copied to clipboard
+
+
+
+
common
+
+
+
open val message: String?
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-sink/-forwarding-sink.html b/2.x/okio/okio/-forwarding-sink/-forwarding-sink.html new file mode 100644 index 0000000000..6debe8930c --- /dev/null +++ b/2.x/okio/okio/-forwarding-sink/-forwarding-sink.html @@ -0,0 +1,53 @@ + + + + ForwardingSink + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

ForwardingSink

+
+
+ +
+
fun ForwardingSink(delegate: Sink)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-sink/close.html b/2.x/okio/okio/-forwarding-sink/close.html new file mode 100644 index 0000000000..e3ef5d1769 --- /dev/null +++ b/2.x/okio/okio/-forwarding-sink/close.html @@ -0,0 +1,53 @@ + + + + close + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

close

+
+
+ +
+
open override fun close()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-sink/delegate.html b/2.x/okio/okio/-forwarding-sink/delegate.html new file mode 100644 index 0000000000..e6218b3589 --- /dev/null +++ b/2.x/okio/okio/-forwarding-sink/delegate.html @@ -0,0 +1,53 @@ + + + + delegate + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

delegate

+
+
+ +
+
val delegate: Sink
+
+

Sink to which this instance is delegating.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-sink/flush.html b/2.x/okio/okio/-forwarding-sink/flush.html new file mode 100644 index 0000000000..4b9d8eb62e --- /dev/null +++ b/2.x/okio/okio/-forwarding-sink/flush.html @@ -0,0 +1,53 @@ + + + + flush + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

flush

+
+
+ +
+
open override fun flush()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-sink/index.html b/2.x/okio/okio/-forwarding-sink/index.html new file mode 100644 index 0000000000..2f2858fd5f --- /dev/null +++ b/2.x/okio/okio/-forwarding-sink/index.html @@ -0,0 +1,242 @@ + + + + ForwardingSink + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

ForwardingSink

+
abstract class ForwardingSink(delegate: Sink) : Sink

A Sink which forwards calls to another. Useful for subclassing.

+
+
+
+
+

Constructors

+
+
+
+
ForwardingSink +
Link copied to clipboard
+
+
+
+ +
+
+
fun ForwardingSink(delegate: Sink)
+
+
+
+
+
+

Functions

+
+
+
+
close +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun close()
+
+
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
flush +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun flush()
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
timeout +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun timeout(): Timeout
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun toString(): String
+
+
+
+
+
+
+ +
+
+
write +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun write(source: Buffer, byteCount: Long)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
delegate +
Link copied to clipboard
+
+
+
+ +
+
+
val delegate: Sink
Sink to which this instance is delegating.
+
+
+
+
+
+

Inheritors

+
+
+
+
HashingSink +
Link copied to clipboard
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-sink/timeout.html b/2.x/okio/okio/-forwarding-sink/timeout.html new file mode 100644 index 0000000000..dc7da49d4b --- /dev/null +++ b/2.x/okio/okio/-forwarding-sink/timeout.html @@ -0,0 +1,53 @@ + + + + timeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

timeout

+
+
+ +
+
open override fun timeout(): Timeout
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-sink/to-string.html b/2.x/okio/okio/-forwarding-sink/to-string.html new file mode 100644 index 0000000000..3dd1ed87c6 --- /dev/null +++ b/2.x/okio/okio/-forwarding-sink/to-string.html @@ -0,0 +1,53 @@ + + + + toString + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

toString

+
+
+ +
+
open override fun toString(): String
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-sink/write.html b/2.x/okio/okio/-forwarding-sink/write.html new file mode 100644 index 0000000000..401d4dd833 --- /dev/null +++ b/2.x/okio/okio/-forwarding-sink/write.html @@ -0,0 +1,53 @@ + + + + write + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

write

+
+
+ +
+
open override fun write(source: Buffer, byteCount: Long)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-source/-forwarding-source.html b/2.x/okio/okio/-forwarding-source/-forwarding-source.html new file mode 100644 index 0000000000..154e449d12 --- /dev/null +++ b/2.x/okio/okio/-forwarding-source/-forwarding-source.html @@ -0,0 +1,53 @@ + + + + ForwardingSource + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

ForwardingSource

+
+
+ +
+
fun ForwardingSource(delegate: Source)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-source/close.html b/2.x/okio/okio/-forwarding-source/close.html new file mode 100644 index 0000000000..d081997946 --- /dev/null +++ b/2.x/okio/okio/-forwarding-source/close.html @@ -0,0 +1,53 @@ + + + + close + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

close

+
+
+ +
+
open override fun close()
+
+

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-source/delegate.html b/2.x/okio/okio/-forwarding-source/delegate.html new file mode 100644 index 0000000000..10895ed86d --- /dev/null +++ b/2.x/okio/okio/-forwarding-source/delegate.html @@ -0,0 +1,53 @@ + + + + delegate + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

delegate

+
+
+ +
+
val delegate: Source
+
+

Source to which this instance is delegating.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-source/index.html b/2.x/okio/okio/-forwarding-source/index.html new file mode 100644 index 0000000000..45809e33ba --- /dev/null +++ b/2.x/okio/okio/-forwarding-source/index.html @@ -0,0 +1,222 @@ + + + + ForwardingSource + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

ForwardingSource

+
abstract class ForwardingSource(delegate: Source) : Source

A Source which forwards calls to another. Useful for subclassing.

+
+
+
+
+

Constructors

+
+
+
+
ForwardingSource +
Link copied to clipboard
+
+
+
+ +
+
+
fun ForwardingSource(delegate: Source)
+
+
+
+
+
+

Functions

+
+
+
+
close +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun close()
+
+
Closes this source and releases the resources held by this source.
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
read +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun read(sink: Buffer, byteCount: Long): Long
+
+
Removes at least 1, and up to byteCount bytes from this and appends them to sink.
+
+
+
+
+ +
+
+
timeout +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun timeout(): Timeout
+
+
Returns the timeout for this source.
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun toString(): String
+
+
+
+
+
+
+
+

Properties

+
+
+
+
delegate +
Link copied to clipboard
+
+
+
+ +
+
+
val delegate: Source
Source to which this instance is delegating.
+
+
+
+
+
+

Inheritors

+
+
+
+
HashingSource +
Link copied to clipboard
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-source/read.html b/2.x/okio/okio/-forwarding-source/read.html new file mode 100644 index 0000000000..1e0275b0da --- /dev/null +++ b/2.x/okio/okio/-forwarding-source/read.html @@ -0,0 +1,53 @@ + + + + read + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

read

+
+
+ +
+
open override fun read(sink: Buffer, byteCount: Long): Long
+
+

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-source/timeout.html b/2.x/okio/okio/-forwarding-source/timeout.html new file mode 100644 index 0000000000..41fa902c48 --- /dev/null +++ b/2.x/okio/okio/-forwarding-source/timeout.html @@ -0,0 +1,53 @@ + + + + timeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

timeout

+
+
+ +
+
open override fun timeout(): Timeout
+
+

Returns the timeout for this source.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-source/to-string.html b/2.x/okio/okio/-forwarding-source/to-string.html new file mode 100644 index 0000000000..f1fcc41286 --- /dev/null +++ b/2.x/okio/okio/-forwarding-source/to-string.html @@ -0,0 +1,53 @@ + + + + toString + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

toString

+
+
+ +
+
open override fun toString(): String
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-timeout/-forwarding-timeout.html b/2.x/okio/okio/-forwarding-timeout/-forwarding-timeout.html new file mode 100644 index 0000000000..034421b02a --- /dev/null +++ b/2.x/okio/okio/-forwarding-timeout/-forwarding-timeout.html @@ -0,0 +1,53 @@ + + + + ForwardingTimeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

ForwardingTimeout

+
+
+ +
+
fun ForwardingTimeout(delegate: Timeout)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-timeout/clear-deadline.html b/2.x/okio/okio/-forwarding-timeout/clear-deadline.html new file mode 100644 index 0000000000..8108cf693d --- /dev/null +++ b/2.x/okio/okio/-forwarding-timeout/clear-deadline.html @@ -0,0 +1,53 @@ + + + + clearDeadline + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

clearDeadline

+
+
+ +
+
open override fun clearDeadline(): Timeout
+
+

Clears the deadline.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-timeout/clear-timeout.html b/2.x/okio/okio/-forwarding-timeout/clear-timeout.html new file mode 100644 index 0000000000..84a71319cd --- /dev/null +++ b/2.x/okio/okio/-forwarding-timeout/clear-timeout.html @@ -0,0 +1,53 @@ + + + + clearTimeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

clearTimeout

+
+
+ +
+
open override fun clearTimeout(): Timeout
+
+

Clears the timeout. Operating system timeouts may still apply.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-timeout/deadline-nano-time.html b/2.x/okio/okio/-forwarding-timeout/deadline-nano-time.html new file mode 100644 index 0000000000..2fc9045423 --- /dev/null +++ b/2.x/okio/okio/-forwarding-timeout/deadline-nano-time.html @@ -0,0 +1,59 @@ + + + + deadlineNanoTime + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

deadlineNanoTime

+
+
+ +
+
open override fun deadlineNanoTime(): Long
+
+

Returns the nano time when the deadline will be reached.

Throws

if no deadline is set.

+
+ +
+
open override fun deadlineNanoTime(deadlineNanoTime: Long): Timeout
+
+

Sets the nano time when the deadline will be reached. All operations must complete before this time. Use a deadline to set a maximum bound on the time spent on a sequence of operations.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-timeout/delegate.html b/2.x/okio/okio/-forwarding-timeout/delegate.html new file mode 100644 index 0000000000..6fa06e91c1 --- /dev/null +++ b/2.x/okio/okio/-forwarding-timeout/delegate.html @@ -0,0 +1,53 @@ + + + + delegate + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

delegate

+
+
+ +
+
var delegate: Timeout
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-timeout/has-deadline.html b/2.x/okio/okio/-forwarding-timeout/has-deadline.html new file mode 100644 index 0000000000..c6f2d36043 --- /dev/null +++ b/2.x/okio/okio/-forwarding-timeout/has-deadline.html @@ -0,0 +1,53 @@ + + + + hasDeadline + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hasDeadline

+
+
+ +
+
open override fun hasDeadline(): Boolean
+
+

Returns true if a deadline is enabled.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-timeout/index.html b/2.x/okio/okio/-forwarding-timeout/index.html new file mode 100644 index 0000000000..0f431659bc --- /dev/null +++ b/2.x/okio/okio/-forwarding-timeout/index.html @@ -0,0 +1,377 @@ + + + + ForwardingTimeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

ForwardingTimeout

+
open class ForwardingTimeout(delegate: Timeout) : Timeout

A Timeout which forwards calls to another. Useful for subclassing.

+
+
+
+
+

Constructors

+
+
+
+
ForwardingTimeout +
Link copied to clipboard
+
+
+
+ +
+
+
fun ForwardingTimeout(delegate: Timeout)
+
+
+
+
+
+

Functions

+
+
+
+
clearDeadline +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun clearDeadline(): Timeout
+
+
Clears the deadline.
+
+
+
+
+ +
+
+
clearTimeout +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun clearTimeout(): Timeout
+
+
Clears the timeout.
+
+
+
+
+ +
+
+
deadline +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun deadline(duration: Long, unit: TimeUnit): Timeout
+
+
Set a deadline of now plus duration time.
+
+
+
+
+ +
+
+
deadlineNanoTime +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun deadlineNanoTime(): Long
+
+
Returns the nano time when the deadline will be reached.
+
+ +
+
open override fun deadlineNanoTime(deadlineNanoTime: Long): Timeout
+
+
Sets the nano time when the deadline will be reached.
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hasDeadline +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun hasDeadline(): Boolean
+
+
Returns true if a deadline is enabled.
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
intersectWith +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
inline fun intersectWith(other: Timeout, block: () -> Unit)
+
+
Applies the minimum intersection between this timeout and other, run block, then finally rollback this timeout's values.
+
+
+
+
+ +
+
+
setDelegate +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun setDelegate(delegate: Timeout): ForwardingTimeout
+
+
+
+
+
+
+ +
+
+
throwIfReached +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun throwIfReached()
+
+
Throws an InterruptedIOException if the deadline has been reached or if the current thread has been interrupted.
+
+
+
+
+ +
+
+
timeout +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun timeout(timeout: Long, unit: TimeUnit): Timeout
+
+
Wait at most timeout time before aborting an operation.
+
+
+
+
+ +
+
+
timeoutNanos +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun timeoutNanos(): Long
+
+
Returns the timeout in nanoseconds, or 0 for no timeout.
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun toString(): String
+
+
+
+
+
+
+ +
+
+
waitUntilNotified +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun waitUntilNotified(monitor: Any)
+
+
Waits on monitor until it is notified.
+
+
+
+
+
+

Properties

+
+
+
+
delegate +
Link copied to clipboard
+
+
+
+ +
+
+
var delegate: Timeout
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-timeout/set-delegate.html b/2.x/okio/okio/-forwarding-timeout/set-delegate.html new file mode 100644 index 0000000000..09d546e8e5 --- /dev/null +++ b/2.x/okio/okio/-forwarding-timeout/set-delegate.html @@ -0,0 +1,53 @@ + + + + setDelegate + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

setDelegate

+
+
+ +
+
fun setDelegate(delegate: Timeout): ForwardingTimeout
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-timeout/throw-if-reached.html b/2.x/okio/okio/-forwarding-timeout/throw-if-reached.html new file mode 100644 index 0000000000..2ea988df6e --- /dev/null +++ b/2.x/okio/okio/-forwarding-timeout/throw-if-reached.html @@ -0,0 +1,53 @@ + + + + throwIfReached + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

throwIfReached

+
+
+ +
+
open override fun throwIfReached()
+
+

Throws an InterruptedIOException if the deadline has been reached or if the current thread has been interrupted. This method doesn't detect timeouts; that should be implemented to asynchronously abort an in-progress operation.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-timeout/timeout-nanos.html b/2.x/okio/okio/-forwarding-timeout/timeout-nanos.html new file mode 100644 index 0000000000..459f46d26a --- /dev/null +++ b/2.x/okio/okio/-forwarding-timeout/timeout-nanos.html @@ -0,0 +1,53 @@ + + + + timeoutNanos + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

timeoutNanos

+
+
+ +
+
open override fun timeoutNanos(): Long
+
+

Returns the timeout in nanoseconds, or 0 for no timeout.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-forwarding-timeout/timeout.html b/2.x/okio/okio/-forwarding-timeout/timeout.html new file mode 100644 index 0000000000..df4fed53ed --- /dev/null +++ b/2.x/okio/okio/-forwarding-timeout/timeout.html @@ -0,0 +1,53 @@ + + + + timeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

timeout

+
+
+ +
+
open override fun timeout(timeout: Long, unit: TimeUnit): Timeout
+
+

Wait at most timeout time before aborting an operation. Using a per-operation timeout means that as long as forward progress is being made, no sequence of operations will fail.

If timeout == 0, operations will run indefinitely. (Operating system timeouts may still apply.)

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-gzip-sink/-gzip-sink.html b/2.x/okio/okio/-gzip-sink/-gzip-sink.html new file mode 100644 index 0000000000..9ed17ceac6 --- /dev/null +++ b/2.x/okio/okio/-gzip-sink/-gzip-sink.html @@ -0,0 +1,53 @@ + + + + GzipSink + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

GzipSink

+
+
+ +
+
fun GzipSink(sink: Sink)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-gzip-sink/close.html b/2.x/okio/okio/-gzip-sink/close.html new file mode 100644 index 0000000000..0c3e42337b --- /dev/null +++ b/2.x/okio/okio/-gzip-sink/close.html @@ -0,0 +1,53 @@ + + + + close + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

close

+
+
+ +
+
open override fun close()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-gzip-sink/deflater.html b/2.x/okio/okio/-gzip-sink/deflater.html new file mode 100644 index 0000000000..1d42621e02 --- /dev/null +++ b/2.x/okio/okio/-gzip-sink/deflater.html @@ -0,0 +1,53 @@ + + + + deflater + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

deflater

+
+
+ +
+
val deflater: Deflater
+
+

The deflater used to compress the body.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-gzip-sink/flush.html b/2.x/okio/okio/-gzip-sink/flush.html new file mode 100644 index 0000000000..5060846117 --- /dev/null +++ b/2.x/okio/okio/-gzip-sink/flush.html @@ -0,0 +1,53 @@ + + + + flush + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

flush

+
+
+ +
+
open override fun flush()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-gzip-sink/index.html b/2.x/okio/okio/-gzip-sink/index.html new file mode 100644 index 0000000000..0e4d555a88 --- /dev/null +++ b/2.x/okio/okio/-gzip-sink/index.html @@ -0,0 +1,231 @@ + + + + GzipSink + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

GzipSink

+
class GzipSink(sink: Sink) : Sink

A sink that uses GZIP to compress written data to another sink.

Sync flush

Aggressive flushing of this stream may result in reduced compression. Each call to flush immediately compresses all currently-buffered data; this early compression may be less effective than compression performed without flushing.

This is equivalent to using Deflater with the sync flush option. This class does not offer any partial flush mechanism. For best performance, only call flush when application behavior requires it.

+
+
+
+
+

Constructors

+
+
+
+
GzipSink +
Link copied to clipboard
+
+
+
+ +
+
+
fun GzipSink(sink: Sink)
+
+
+
+
+
+

Functions

+
+
+
+
close +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun close()
+
+
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
flush +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun flush()
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
timeout +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun timeout(): Timeout
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun toString(): String
+
+
+
+
+
+
+ +
+
+
write +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun write(source: Buffer, byteCount: Long)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
deflater +
Link copied to clipboard
+
+
+
+ +
+
+
val deflater: Deflater
The deflater used to compress the body.
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-gzip-sink/timeout.html b/2.x/okio/okio/-gzip-sink/timeout.html new file mode 100644 index 0000000000..118865e383 --- /dev/null +++ b/2.x/okio/okio/-gzip-sink/timeout.html @@ -0,0 +1,53 @@ + + + + timeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

timeout

+
+
+ +
+
open override fun timeout(): Timeout
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-gzip-sink/write.html b/2.x/okio/okio/-gzip-sink/write.html new file mode 100644 index 0000000000..39778b27cb --- /dev/null +++ b/2.x/okio/okio/-gzip-sink/write.html @@ -0,0 +1,53 @@ + + + + write + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

write

+
+
+ +
+
open override fun write(source: Buffer, byteCount: Long)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-gzip-source/-gzip-source.html b/2.x/okio/okio/-gzip-source/-gzip-source.html new file mode 100644 index 0000000000..a7ecb7121e --- /dev/null +++ b/2.x/okio/okio/-gzip-source/-gzip-source.html @@ -0,0 +1,53 @@ + + + + GzipSource + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

GzipSource

+
+
+ +
+
fun GzipSource(source: Source)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-gzip-source/close.html b/2.x/okio/okio/-gzip-source/close.html new file mode 100644 index 0000000000..b434418bc6 --- /dev/null +++ b/2.x/okio/okio/-gzip-source/close.html @@ -0,0 +1,53 @@ + + + + close + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

close

+
+
+ +
+
open override fun close()
+
+

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-gzip-source/index.html b/2.x/okio/okio/-gzip-source/index.html new file mode 100644 index 0000000000..992b463a3c --- /dev/null +++ b/2.x/okio/okio/-gzip-source/index.html @@ -0,0 +1,193 @@ + + + + GzipSource + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

GzipSource

+
class GzipSource(source: Source) : Source

A source that uses GZIP to decompress data read from another source.

+
+
+
+
+

Constructors

+
+
+
+
GzipSource +
Link copied to clipboard
+
+
+
+ +
+
+
fun GzipSource(source: Source)
+
+
+
+
+
+

Functions

+
+
+
+
close +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun close()
+
+
Closes this source and releases the resources held by this source.
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
read +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun read(sink: Buffer, byteCount: Long): Long
+
+
Removes at least 1, and up to byteCount bytes from this and appends them to sink.
+
+
+
+
+ +
+
+
timeout +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun timeout(): Timeout
+
+
Returns the timeout for this source.
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun toString(): String
+
+
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-gzip-source/read.html b/2.x/okio/okio/-gzip-source/read.html new file mode 100644 index 0000000000..ff2572b6f1 --- /dev/null +++ b/2.x/okio/okio/-gzip-source/read.html @@ -0,0 +1,53 @@ + + + + read + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

read

+
+
+ +
+
open override fun read(sink: Buffer, byteCount: Long): Long
+
+

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-gzip-source/timeout.html b/2.x/okio/okio/-gzip-source/timeout.html new file mode 100644 index 0000000000..d78c163bee --- /dev/null +++ b/2.x/okio/okio/-gzip-source/timeout.html @@ -0,0 +1,53 @@ + + + + timeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

timeout

+
+
+ +
+
open override fun timeout(): Timeout
+
+

Returns the timeout for this source.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-sink/-companion/hmac-sha1.html b/2.x/okio/okio/-hashing-sink/-companion/hmac-sha1.html new file mode 100644 index 0000000000..9e75ce6acd --- /dev/null +++ b/2.x/okio/okio/-hashing-sink/-companion/hmac-sha1.html @@ -0,0 +1,55 @@ + + + + hmacSha1 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hmacSha1

+
+
+ +
+
+
+
fun hmacSha1(sink: Sink, key: ByteString): HashingSink
fun hmacSha1(sink: Sink, key: ByteString): HashingSink
+
+

Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-sink/-companion/hmac-sha256.html b/2.x/okio/okio/-hashing-sink/-companion/hmac-sha256.html new file mode 100644 index 0000000000..09f9064713 --- /dev/null +++ b/2.x/okio/okio/-hashing-sink/-companion/hmac-sha256.html @@ -0,0 +1,55 @@ + + + + hmacSha256 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hmacSha256

+
+
+ +
+
+
+
fun hmacSha256(sink: Sink, key: ByteString): HashingSink
fun hmacSha256(sink: Sink, key: ByteString): HashingSink
+
+

Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-sink/-companion/hmac-sha512.html b/2.x/okio/okio/-hashing-sink/-companion/hmac-sha512.html new file mode 100644 index 0000000000..c0aceb12dc --- /dev/null +++ b/2.x/okio/okio/-hashing-sink/-companion/hmac-sha512.html @@ -0,0 +1,55 @@ + + + + hmacSha512 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hmacSha512

+
+
+ +
+
+
+
fun hmacSha512(sink: Sink, key: ByteString): HashingSink
fun hmacSha512(sink: Sink, key: ByteString): HashingSink
+
+

Returns a sink that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-sink/-companion/index.html b/2.x/okio/okio/-hashing-sink/-companion/index.html new file mode 100644 index 0000000000..af228f32a2 --- /dev/null +++ b/2.x/okio/okio/-hashing-sink/-companion/index.html @@ -0,0 +1,329 @@ + + + + Companion + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Companion

+
object Companion
+
+
+
+
+

Functions

+
+
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+
+
open operator fun equals(other: Any?): Boolean
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun hashCode(): Int
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
hmacSha1 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun hmacSha1(sink: Sink, key: ByteString): HashingSink
+
+
Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.
+
+
+ +
+
+ +
+
fun hmacSha1(sink: Sink, key: ByteString): HashingSink
+
+
Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.
+
+
+
+
+ +
+
+
hmacSha256 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun hmacSha256(sink: Sink, key: ByteString): HashingSink
+
+
Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.
+
+
+ +
+
+ +
+
fun hmacSha256(sink: Sink, key: ByteString): HashingSink
+
+
Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.
+
+
+
+
+ +
+
+
hmacSha512 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun hmacSha512(sink: Sink, key: ByteString): HashingSink
+
+
Returns a sink that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.
+
+
+ +
+
+ +
+
fun hmacSha512(sink: Sink, key: ByteString): HashingSink
+
+
Returns a sink that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.
+
+
+
+
+ +
+
+
md5 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun md5(sink: Sink): HashingSink
+
+
Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.
+
+
+ +
+
+ +
+
fun md5(sink: Sink): HashingSink
+
+
Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.
+
+
+
+
+ +
+
+
sha1 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun sha1(sink: Sink): HashingSink
+
+
Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.
+
+
+ +
+
+ +
+
fun sha1(sink: Sink): HashingSink
+
+
Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.
+
+
+
+
+ +
+
+
sha256 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun sha256(sink: Sink): HashingSink
+
+
Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.
+
+
+ +
+
+ +
+
fun sha256(sink: Sink): HashingSink
+
+
Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.
+
+
+
+
+ +
+
+
sha512 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun sha512(sink: Sink): HashingSink
+
+
Returns a sink that uses the SHA-512 hash algorithm to produce 512-bit hashes.
+
+
+ +
+
+ +
+
fun sha512(sink: Sink): HashingSink
+
+
Returns a sink that uses the SHA-512 hash algorithm to produce 512-bit hashes.
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun toString(): String
open fun toString(): String
+
+
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-sink/-companion/md5.html b/2.x/okio/okio/-hashing-sink/-companion/md5.html new file mode 100644 index 0000000000..2f5b0476e6 --- /dev/null +++ b/2.x/okio/okio/-hashing-sink/-companion/md5.html @@ -0,0 +1,55 @@ + + + + md5 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

md5

+
+
+ +
+
+
+
fun md5(sink: Sink): HashingSink
fun md5(sink: Sink): HashingSink
+
+

Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-sink/-companion/sha1.html b/2.x/okio/okio/-hashing-sink/-companion/sha1.html new file mode 100644 index 0000000000..42eb69e801 --- /dev/null +++ b/2.x/okio/okio/-hashing-sink/-companion/sha1.html @@ -0,0 +1,55 @@ + + + + sha1 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

sha1

+
+
+ +
+
+
+
fun sha1(sink: Sink): HashingSink
fun sha1(sink: Sink): HashingSink
+
+

Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-sink/-companion/sha256.html b/2.x/okio/okio/-hashing-sink/-companion/sha256.html new file mode 100644 index 0000000000..3410528eb2 --- /dev/null +++ b/2.x/okio/okio/-hashing-sink/-companion/sha256.html @@ -0,0 +1,55 @@ + + + + sha256 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

sha256

+
+
+ +
+
+
+
fun sha256(sink: Sink): HashingSink
fun sha256(sink: Sink): HashingSink
+
+

Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-sink/-companion/sha512.html b/2.x/okio/okio/-hashing-sink/-companion/sha512.html new file mode 100644 index 0000000000..051b72f946 --- /dev/null +++ b/2.x/okio/okio/-hashing-sink/-companion/sha512.html @@ -0,0 +1,55 @@ + + + + sha512 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

sha512

+
+
+ +
+
+
+
fun sha512(sink: Sink): HashingSink
fun sha512(sink: Sink): HashingSink
+
+

Returns a sink that uses the SHA-512 hash algorithm to produce 512-bit hashes.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-sink/hash.html b/2.x/okio/okio/-hashing-sink/hash.html new file mode 100644 index 0000000000..8b59aed45c --- /dev/null +++ b/2.x/okio/okio/-hashing-sink/hash.html @@ -0,0 +1,57 @@ + + + + hash + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hash

+
+
+
+
common
+
+
+ +
+
val hash: ByteString
+
+

Returns the hash of the bytes accepted thus far and resets the internal state of this sink.

Warning: This method is not idempotent. Each time this method is called its internal state is cleared. This starts a new hash with zero bytes accepted.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-sink/index.html b/2.x/okio/okio/-hashing-sink/index.html new file mode 100644 index 0000000000..16916cd4b0 --- /dev/null +++ b/2.x/okio/okio/-hashing-sink/index.html @@ -0,0 +1,294 @@ + + + + HashingSink + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

HashingSink

+
+
+
class HashingSink : Sink

A sink that computes a hash of the full stream of bytes it has accepted. To use, create an instance with your preferred hash algorithm. Write all of the data to the sink and then call hash to compute the final hash value.

In this example we use HashingSink with a BufferedSink to make writing to the sink easier.

HashingSink hashingSink = HashingSink.sha256(s);
BufferedSink bufferedSink = Okio.buffer(hashingSink);

... // Write to bufferedSink and either flush or close it.

ByteString hash = hashingSink.hash();
class HashingSink : ForwardingSink, Sink

A sink that computes a hash of the full stream of bytes it has accepted. To use, create an instance with your preferred hash algorithm. Write all of the data to the sink and then call hash to compute the final hash value.

In this example we use HashingSink with a BufferedSink to make writing to the sink easier.

HashingSink hashingSink = HashingSink.sha256(s);
BufferedSink bufferedSink = Okio.buffer(hashingSink);

... // Write to bufferedSink and either flush or close it.

ByteString hash = hashingSink.hash();
+
+
+
+
+

Types

+
+
+
+
Companion +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
object Companion
+
+
+
+
+
+
+
+

Functions

+
+
+
+
close +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun close()
+
+
+
+
+
common
+
+
+ +
+
abstract override fun close()
+
+
Pushes all buffered bytes to their final destination and releases the resources held by this sink.
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+
+
open operator fun equals(other: Any?): Boolean
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
flush +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun flush()
+
+
+
+
+
common
+
+
+ +
+
abstract fun flush()
+
+
Pushes all buffered bytes to their final destination.
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun hashCode(): Int
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
timeout +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun timeout(): Timeout
+
+
+
+
+
common
+
+
+ +
+
abstract fun timeout(): Timeout
+
+
Returns the timeout for this sink.
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun toString(): String
open override fun toString(): String
+
+
+
+
+
+
+ +
+
+
write +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun write(source: Buffer, byteCount: Long)
+
+
+
+
+
common
+
+
+ +
+
abstract fun write(source: Buffer, byteCount: Long)
+
+
Removes byteCount bytes from source and appends them to this.
+
+
+
+
+
+

Properties

+
+
+
+
delegate +
Link copied to clipboard
+
+
+
+ +
+
+
val delegate: Sink
Sink to which this instance is delegating.
+
+
+
+
+ +
+
+
hash +
Link copied to clipboard
+
+
+
+
+
+
val hash: ByteString
Returns the hash of the bytes accepted thus far and resets the internal state of this sink.
val hash: ByteString
Returns the hash of the bytes accepted thus far and resets the internal state of this sink.
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-sink/write.html b/2.x/okio/okio/-hashing-sink/write.html new file mode 100644 index 0000000000..83c8328e3f --- /dev/null +++ b/2.x/okio/okio/-hashing-sink/write.html @@ -0,0 +1,53 @@ + + + + write + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

write

+
+
+ +
+
open override fun write(source: Buffer, byteCount: Long)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-source/-companion/hmac-sha1.html b/2.x/okio/okio/-hashing-source/-companion/hmac-sha1.html new file mode 100644 index 0000000000..de05f838ea --- /dev/null +++ b/2.x/okio/okio/-hashing-source/-companion/hmac-sha1.html @@ -0,0 +1,55 @@ + + + + hmacSha1 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hmacSha1

+
+
+ +
+
+
+
fun hmacSha1(source: Source, key: ByteString): HashingSource
fun hmacSha1(source: Source, key: ByteString): HashingSource
+
+

Returns a source that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-source/-companion/hmac-sha256.html b/2.x/okio/okio/-hashing-source/-companion/hmac-sha256.html new file mode 100644 index 0000000000..36470f7317 --- /dev/null +++ b/2.x/okio/okio/-hashing-source/-companion/hmac-sha256.html @@ -0,0 +1,55 @@ + + + + hmacSha256 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hmacSha256

+
+
+ +
+
+
+
fun hmacSha256(source: Source, key: ByteString): HashingSource
fun hmacSha256(source: Source, key: ByteString): HashingSource
+
+

Returns a source that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-source/-companion/hmac-sha512.html b/2.x/okio/okio/-hashing-source/-companion/hmac-sha512.html new file mode 100644 index 0000000000..9a8bbd77cf --- /dev/null +++ b/2.x/okio/okio/-hashing-source/-companion/hmac-sha512.html @@ -0,0 +1,55 @@ + + + + hmacSha512 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hmacSha512

+
+
+ +
+
+
+
fun hmacSha512(source: Source, key: ByteString): HashingSource
fun hmacSha512(source: Source, key: ByteString): HashingSource
+
+

Returns a source that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-source/-companion/index.html b/2.x/okio/okio/-hashing-source/-companion/index.html new file mode 100644 index 0000000000..4140190894 --- /dev/null +++ b/2.x/okio/okio/-hashing-source/-companion/index.html @@ -0,0 +1,329 @@ + + + + Companion + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Companion

+
object Companion
+
+
+
+
+

Functions

+
+
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+
+
open operator fun equals(other: Any?): Boolean
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun hashCode(): Int
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
hmacSha1 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun hmacSha1(source: Source, key: ByteString): HashingSource
+
+
Returns a source that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.
+
+
+ +
+
+ +
+
fun hmacSha1(source: Source, key: ByteString): HashingSource
+
+
Returns a source that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.
+
+
+
+
+ +
+
+
hmacSha256 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun hmacSha256(source: Source, key: ByteString): HashingSource
+
+
Returns a source that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.
+
+
+ +
+
+ +
+
fun hmacSha256(source: Source, key: ByteString): HashingSource
+
+
Returns a source that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.
+
+
+
+
+ +
+
+
hmacSha512 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun hmacSha512(source: Source, key: ByteString): HashingSource
+
+
Returns a source that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.
+
+
+ +
+
+ +
+
fun hmacSha512(source: Source, key: ByteString): HashingSource
+
+
Returns a source that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.
+
+
+
+
+ +
+
+
md5 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun md5(source: Source): HashingSource
+
+
Returns a source that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.
+
+
+ +
+
+ +
+
fun md5(source: Source): HashingSource
+
+
Returns a source that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.
+
+
+
+
+ +
+
+
sha1 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun sha1(source: Source): HashingSource
+
+
Returns a source that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.
+
+
+ +
+
+ +
+
fun sha1(source: Source): HashingSource
+
+
Returns a source that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.
+
+
+
+
+ +
+
+
sha256 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun sha256(source: Source): HashingSource
+
+
Returns a source that uses the SHA-256 hash algorithm to produce 256-bit hashes.
+
+
+ +
+
+ +
+
fun sha256(source: Source): HashingSource
+
+
Returns a source that uses the SHA-256 hash algorithm to produce 256-bit hashes.
+
+
+
+
+ +
+
+
sha512 +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
fun sha512(source: Source): HashingSource
+
+
Returns a source that uses the SHA-512 hash algorithm to produce 512-bit hashes.
+
+
+ +
+
+ +
+
fun sha512(source: Source): HashingSource
+
+
Returns a source that uses the SHA-512 hash algorithm to produce 512-bit hashes.
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun toString(): String
open fun toString(): String
+
+
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-source/-companion/md5.html b/2.x/okio/okio/-hashing-source/-companion/md5.html new file mode 100644 index 0000000000..e806151f82 --- /dev/null +++ b/2.x/okio/okio/-hashing-source/-companion/md5.html @@ -0,0 +1,55 @@ + + + + md5 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

md5

+
+
+ +
+
+
+
fun md5(source: Source): HashingSource
fun md5(source: Source): HashingSource
+
+

Returns a source that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-source/-companion/sha1.html b/2.x/okio/okio/-hashing-source/-companion/sha1.html new file mode 100644 index 0000000000..188cce9ffc --- /dev/null +++ b/2.x/okio/okio/-hashing-source/-companion/sha1.html @@ -0,0 +1,55 @@ + + + + sha1 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

sha1

+
+
+ +
+
+
+
fun sha1(source: Source): HashingSource
fun sha1(source: Source): HashingSource
+
+

Returns a source that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-source/-companion/sha256.html b/2.x/okio/okio/-hashing-source/-companion/sha256.html new file mode 100644 index 0000000000..f089bfa6d3 --- /dev/null +++ b/2.x/okio/okio/-hashing-source/-companion/sha256.html @@ -0,0 +1,55 @@ + + + + sha256 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

sha256

+
+
+ +
+
+
+
fun sha256(source: Source): HashingSource
fun sha256(source: Source): HashingSource
+
+

Returns a source that uses the SHA-256 hash algorithm to produce 256-bit hashes.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-source/-companion/sha512.html b/2.x/okio/okio/-hashing-source/-companion/sha512.html new file mode 100644 index 0000000000..0c224d05ed --- /dev/null +++ b/2.x/okio/okio/-hashing-source/-companion/sha512.html @@ -0,0 +1,55 @@ + + + + sha512 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

sha512

+
+
+ +
+
+
+
fun sha512(source: Source): HashingSource
fun sha512(source: Source): HashingSource
+
+

Returns a source that uses the SHA-512 hash algorithm to produce 512-bit hashes.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-source/hash.html b/2.x/okio/okio/-hashing-source/hash.html new file mode 100644 index 0000000000..7d037b4ff2 --- /dev/null +++ b/2.x/okio/okio/-hashing-source/hash.html @@ -0,0 +1,57 @@ + + + + hash + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hash

+
+
+
+
common
+
+
+ +
+
val hash: ByteString
+
+

Returns the hash of the bytes supplied thus far and resets the internal state of this source.

Warning: This method is not idempotent. Each time this method is called its internal state is cleared. This starts a new hash with zero bytes supplied.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-source/index.html b/2.x/okio/okio/-hashing-source/index.html new file mode 100644 index 0000000000..5a62ac74d8 --- /dev/null +++ b/2.x/okio/okio/-hashing-source/index.html @@ -0,0 +1,263 @@ + + + + HashingSource + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

HashingSource

+
+
+
class HashingSource : Source

A source that computes a hash of the full stream of bytes it has supplied. To use, create an instance with your preferred hash algorithm. Exhaust the source by reading all of its bytes and then call hash to compute the final hash value.

In this example we use HashingSource with a BufferedSource to make reading from the source easier.

HashingSource hashingSource = HashingSource.sha256(rawSource);
BufferedSource bufferedSource = Okio.buffer(hashingSource);

... // Read all of bufferedSource.

ByteString hash = hashingSource.hash();
class HashingSource : ForwardingSource, Source

A source that computes a hash of the full stream of bytes it has supplied. To use, create an instance with your preferred hash algorithm. Exhaust the source by reading all of its bytes and then call hash to compute the final hash value.

In this example we use HashingSource with a BufferedSource to make reading from the source easier.

HashingSource hashingSource = HashingSource.sha256(rawSource);
BufferedSource bufferedSource = Okio.buffer(hashingSource);

... // Read all of bufferedSource.

ByteString hash = hashingSource.hash();
+
+
+
+
+

Types

+
+
+
+
Companion +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
object Companion
+
+
+
+
+
+
+
+

Functions

+
+
+
+
close +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun close()
+
+
Closes this source and releases the resources held by this source.
+
+
+
common
+
+
+ +
+
abstract override fun close()
+
+
Closes this source and releases the resources held by this source.
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+
+
open operator fun equals(other: Any?): Boolean
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun hashCode(): Int
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
read +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun read(sink: Buffer, byteCount: Long): Long
+
+
Removes at least 1, and up to byteCount bytes from this and appends them to sink.
+
+
+
common
+
+
+ +
+
abstract fun read(sink: Buffer, byteCount: Long): Long
+
+
Removes at least 1, and up to byteCount bytes from this and appends them to sink.
+
+
+
+
+ +
+
+
timeout +
Link copied to clipboard
+
+
+
+
+ +
+
+ +
+
open override fun timeout(): Timeout
+
+
Returns the timeout for this source.
+
+
+
common
+
+
+ +
+
abstract fun timeout(): Timeout
+
+
Returns the timeout for this source.
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun toString(): String
open override fun toString(): String
+
+
+
+
+
+
+
+

Properties

+
+
+
+
delegate +
Link copied to clipboard
+
+
+
+ +
+
+
val delegate: Source
Source to which this instance is delegating.
+
+
+
+
+ +
+
+
hash +
Link copied to clipboard
+
+
+
+
+
+
val hash: ByteString
Returns the hash of the bytes supplied thus far and resets the internal state of this source.
val hash: ByteString
Returns the hash of the bytes supplied thus far and resets the internal state of this source.
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-hashing-source/read.html b/2.x/okio/okio/-hashing-source/read.html new file mode 100644 index 0000000000..9f0bce7507 --- /dev/null +++ b/2.x/okio/okio/-hashing-source/read.html @@ -0,0 +1,53 @@ + + + + read + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

read

+
+
+ +
+
open override fun read(sink: Buffer, byteCount: Long): Long
+
+

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-i-o-exception/-i-o-exception.html b/2.x/okio/okio/-i-o-exception/-i-o-exception.html new file mode 100644 index 0000000000..0cc5acb903 --- /dev/null +++ b/2.x/okio/okio/-i-o-exception/-i-o-exception.html @@ -0,0 +1,53 @@ + + + + IOException + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

IOException

+
+
+ +
+
fun IOException(message: String? = null)
fun IOException(message: String?, cause: Throwable?)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-i-o-exception/index.html b/2.x/okio/okio/-i-o-exception/index.html new file mode 100644 index 0000000000..f472c48667 --- /dev/null +++ b/2.x/okio/okio/-i-o-exception/index.html @@ -0,0 +1,189 @@ + + + + IOException + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

IOException

+
+
+
open class IOException(message: String?, cause: Throwable?) : Exception
typealias IOException = IOException
+
+
+
+
+

Constructors

+
+
+
+
IOException +
Link copied to clipboard
+
+
+
+
common
+
+
+
fun IOException(message: String? = null)
+
+
+
+
+
+

Functions

+
+
+
+
equals +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open fun toString(): String
+
+
+
+
+
+
+
+

Properties

+
+
+
+
cause +
Link copied to clipboard
+
+
+
+
common
+
+
+
open val cause: Throwable?
+
+
+
+
+ +
+
+
message +
Link copied to clipboard
+
+
+
+
common
+
+
+
open val message: String?
+
+
+
+
+
+

Inheritors

+
+
+
+
EOFException +
Link copied to clipboard
+
+
+
+
+ +
+
+
FileNotFoundException +
Link copied to clipboard
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-inflater-source/-inflater-source.html b/2.x/okio/okio/-inflater-source/-inflater-source.html new file mode 100644 index 0000000000..04e6079e4e --- /dev/null +++ b/2.x/okio/okio/-inflater-source/-inflater-source.html @@ -0,0 +1,53 @@ + + + + InflaterSource + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

InflaterSource

+
+
+ +
+
fun InflaterSource(source: Source, inflater: Inflater)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-inflater-source/close.html b/2.x/okio/okio/-inflater-source/close.html new file mode 100644 index 0000000000..c05e87b5f3 --- /dev/null +++ b/2.x/okio/okio/-inflater-source/close.html @@ -0,0 +1,53 @@ + + + + close + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

close

+
+
+ +
+
open override fun close()
+
+

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-inflater-source/index.html b/2.x/okio/okio/-inflater-source/index.html new file mode 100644 index 0000000000..4825a8e002 --- /dev/null +++ b/2.x/okio/okio/-inflater-source/index.html @@ -0,0 +1,233 @@ + + + + InflaterSource + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

InflaterSource

+
class InflaterSource : Source

A source that uses DEFLATE to decompress data read from another source.

+
+
+
+
+

Constructors

+
+
+
+
InflaterSource +
Link copied to clipboard
+
+
+
+ +
+
+
fun InflaterSource(source: Source, inflater: Inflater)
+
+
+
+
+
+

Functions

+
+
+
+
close +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun close()
+
+
Closes this source and releases the resources held by this source.
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
read +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun read(sink: Buffer, byteCount: Long): Long
+
+
Removes at least 1, and up to byteCount bytes from this and appends them to sink.
+
+
+
+
+ +
+
+
readOrInflate +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun readOrInflate(sink: Buffer, byteCount: Long): Long
+
+
Consume deflated bytes from the underlying source, and write any inflated bytes to sink.
+
+
+
+
+ +
+
+
refill +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun refill(): Boolean
+
+
Refills the inflater with compressed data if it needs input.
+
+
+
+
+ +
+
+
timeout +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open override fun timeout(): Timeout
+
+
Returns the timeout for this source.
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun toString(): String
+
+
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-inflater-source/read-or-inflate.html b/2.x/okio/okio/-inflater-source/read-or-inflate.html new file mode 100644 index 0000000000..8b2f611871 --- /dev/null +++ b/2.x/okio/okio/-inflater-source/read-or-inflate.html @@ -0,0 +1,53 @@ + + + + readOrInflate + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

readOrInflate

+
+
+ +
+
fun readOrInflate(sink: Buffer, byteCount: Long): Long
+
+

Consume deflated bytes from the underlying source, and write any inflated bytes to sink. Returns the number of inflated bytes written to sink. This may return 0L, though it will always consume 1 or more bytes from the underlying source if it is not exhausted.

Use this instead of read when it is useful to consume the deflated stream even when doing so doesn't yield inflated bytes.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-inflater-source/read.html b/2.x/okio/okio/-inflater-source/read.html new file mode 100644 index 0000000000..d472933309 --- /dev/null +++ b/2.x/okio/okio/-inflater-source/read.html @@ -0,0 +1,53 @@ + + + + read + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

read

+
+
+ +
+
open override fun read(sink: Buffer, byteCount: Long): Long
+
+

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-inflater-source/refill.html b/2.x/okio/okio/-inflater-source/refill.html new file mode 100644 index 0000000000..fd70a32bc2 --- /dev/null +++ b/2.x/okio/okio/-inflater-source/refill.html @@ -0,0 +1,53 @@ + + + + refill + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

refill

+
+
+ +
+
fun refill(): Boolean
+
+

Refills the inflater with compressed data if it needs input. (And only if it needs input). Returns true if the inflater required input but the source was exhausted.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-inflater-source/timeout.html b/2.x/okio/okio/-inflater-source/timeout.html new file mode 100644 index 0000000000..2a7d54fb5d --- /dev/null +++ b/2.x/okio/okio/-inflater-source/timeout.html @@ -0,0 +1,53 @@ + + + + timeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

timeout

+
+
+ +
+
open override fun timeout(): Timeout
+
+

Returns the timeout for this source.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-okio.html b/2.x/okio/okio/-okio.html new file mode 100644 index 0000000000..4f4ae0126f --- /dev/null +++ b/2.x/okio/okio/-okio.html @@ -0,0 +1,53 @@ + + + + Okio + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Okio

+
+
+ +
+
val Okio: -DeprecatedOkio
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-options/-companion/index.html b/2.x/okio/okio/-options/-companion/index.html new file mode 100644 index 0000000000..9281100a0f --- /dev/null +++ b/2.x/okio/okio/-options/-companion/index.html @@ -0,0 +1,135 @@ + + + + Companion + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Companion

+
object Companion
+
+
+
+
+

Functions

+
+
+
+
equals +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
of +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
fun of(vararg byteStrings: ByteString): Options
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open fun toString(): String
+
+
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-options/-companion/of.html b/2.x/okio/okio/-options/-companion/of.html new file mode 100644 index 0000000000..f68e3309a2 --- /dev/null +++ b/2.x/okio/okio/-options/-companion/of.html @@ -0,0 +1,53 @@ + + + + of + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

of

+
+
+ +
+
fun of(vararg byteStrings: ByteString): Options
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-options/get.html b/2.x/okio/okio/-options/get.html new file mode 100644 index 0000000000..965db882b9 --- /dev/null +++ b/2.x/okio/okio/-options/get.html @@ -0,0 +1,53 @@ + + + + get + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

get

+
+
+ +
+
open operator override fun get(index: Int): ByteString
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-options/index.html b/2.x/okio/okio/-options/index.html new file mode 100644 index 0000000000..07b12a93ce --- /dev/null +++ b/2.x/okio/okio/-options/index.html @@ -0,0 +1,335 @@ + + + + Options + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Options

+
class Options : AbstractList<ByteString> , RandomAccess

An indexed set of values that may be read with BufferedSource.select.

+
+
+
+
+

Types

+
+
+
+
Companion +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
object Companion
+
+
+
+
+
+
+
+

Functions

+
+
+
+
contains +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open operator override fun contains(element: ByteString): Boolean
+
+
+
+
+
+
+ +
+
+
containsAll +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open override fun containsAll(elements: Collection<ByteString>): Boolean
+
+
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open operator override fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
get +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open operator override fun get(index: Int): ByteString
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open override fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
indexOf +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open override fun indexOf(element: ByteString): Int
+
+
+
+
+
+
+ +
+
+
isEmpty +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open override fun isEmpty(): Boolean
+
+
+
+
+
+
+ +
+
+
iterator +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open operator override fun iterator(): Iterator<ByteString>
+
+
+
+
+
+
+ +
+
+
lastIndexOf +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open override fun lastIndexOf(element: ByteString): Int
+
+
+
+
+
+
+ +
+
+
listIterator +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open override fun listIterator(): ListIterator<ByteString>
open override fun listIterator(index: Int): ListIterator<ByteString>
+
+
+
+
+
+
+ +
+
+
subList +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open override fun subList(fromIndex: Int, toIndex: Int): List<ByteString>
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open override fun toString(): String
+
+
+
+
+
+
+
+

Properties

+
+
+
+
size +
Link copied to clipboard
+
+
+
+
common
+
+
+
open override val size: Int
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-options/size.html b/2.x/okio/okio/-options/size.html new file mode 100644 index 0000000000..f8d27b4c79 --- /dev/null +++ b/2.x/okio/okio/-options/size.html @@ -0,0 +1,53 @@ + + + + size + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

size

+
+
+ +
+
open override val size: Int
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-pipe/-pipe.html b/2.x/okio/okio/-pipe/-pipe.html new file mode 100644 index 0000000000..6ef6394deb --- /dev/null +++ b/2.x/okio/okio/-pipe/-pipe.html @@ -0,0 +1,53 @@ + + + + Pipe + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Pipe

+
+
+ +
+
fun Pipe(maxBufferSize: Long)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-pipe/cancel.html b/2.x/okio/okio/-pipe/cancel.html new file mode 100644 index 0000000000..ed5de2d954 --- /dev/null +++ b/2.x/okio/okio/-pipe/cancel.html @@ -0,0 +1,53 @@ + + + + cancel + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

cancel

+
+
+ +
+
fun cancel()
+
+

Fail any in-flight and future operations. After canceling:

Closing the source and the sink will complete normally even after a pipe has been canceled. If this sink has been folded, closing it will close the folded sink. This operation may block.

This operation may be called by any thread at any time. It is safe to call concurrently while operating on the source or the sink.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-pipe/fold.html b/2.x/okio/okio/-pipe/fold.html new file mode 100644 index 0000000000..7cd2ac906d --- /dev/null +++ b/2.x/okio/okio/-pipe/fold.html @@ -0,0 +1,53 @@ + + + + fold + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

fold

+
+
+ +
+
fun fold(sink: Sink)
+
+

Writes any buffered contents of this pipe to sink, then replace this pipe's source with sink. This pipe's source is closed and attempts to read it will throw an IllegalStateException.

This method must not be called while concurrently accessing this pipe's source. It is safe, however, to call this while concurrently writing this pipe's sink.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-pipe/index.html b/2.x/okio/okio/-pipe/index.html new file mode 100644 index 0000000000..97db43b064 --- /dev/null +++ b/2.x/okio/okio/-pipe/index.html @@ -0,0 +1,207 @@ + + + + Pipe + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Pipe

+
class Pipe(maxBufferSize: Long)

A source and a sink that are attached. The sink's output is the source's input. Typically each is accessed by its own thread: a producer thread writes data to the sink and a consumer thread reads data from the source.

This class uses a buffer to decouple source and sink. This buffer has a user-specified maximum size. When a producer thread outruns its consumer the buffer fills up and eventually writes to the sink will block until the consumer has caught up. Symmetrically, if a consumer outruns its producer reads block until there is data to be read. Limits on the amount of time spent waiting for the other party can be configured with timeouts on the source and the sink.

When the sink is closed, source reads will continue to complete normally until the buffer has been exhausted. At that point reads will return -1, indicating the end of the stream. But if the source is closed first, writes to the sink will immediately fail with an IOException.

A pipe may be canceled to immediately fail writes to the sink and reads from the source.

+
+
+
+
+

Constructors

+
+
+
+
Pipe +
Link copied to clipboard
+
+
+
+ +
+
+
fun Pipe(maxBufferSize: Long)
+
+
+
+
+
+

Functions

+
+
+
+
cancel +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun cancel()
+
+
Fail any in-flight and future operations.
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
fold +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun fold(sink: Sink)
+
+
Writes any buffered contents of this pipe to sink, then replace this pipe's source with sink.
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun toString(): String
+
+
+
+
+
+
+
+

Properties

+
+
+
+
sink +
Link copied to clipboard
+
+
+
+ +
+
+
val sink: Sink
+
+
+
+
+ +
+
+
source +
Link copied to clipboard
+
+
+
+ +
+
+
val source: Source
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-pipe/sink.html b/2.x/okio/okio/-pipe/sink.html new file mode 100644 index 0000000000..638aeac251 --- /dev/null +++ b/2.x/okio/okio/-pipe/sink.html @@ -0,0 +1,53 @@ + + + + sink + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

sink

+
+
+ +
+
val sink: Sink
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-pipe/source.html b/2.x/okio/okio/-pipe/source.html new file mode 100644 index 0000000000..343bf99768 --- /dev/null +++ b/2.x/okio/okio/-pipe/source.html @@ -0,0 +1,53 @@ + + + + source + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

source

+
+
+ +
+
val source: Source
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-sink/close.html b/2.x/okio/okio/-sink/close.html new file mode 100644 index 0000000000..57babcb37c --- /dev/null +++ b/2.x/okio/okio/-sink/close.html @@ -0,0 +1,67 @@ + + + + close + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

close

+
+
+
+
common
+
+
+ +
+
abstract override fun close()
+
+

Pushes all buffered bytes to their final destination and releases the resources held by this sink. It is an error to write a closed sink. It is safe to close a sink more than once.

+
+
+ +
+
+ +
+
abstract override fun close()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-sink/flush.html b/2.x/okio/okio/-sink/flush.html new file mode 100644 index 0000000000..c27c1b4636 --- /dev/null +++ b/2.x/okio/okio/-sink/flush.html @@ -0,0 +1,67 @@ + + + + flush + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

flush

+
+
+
+
common
+
+
+ +
+
abstract fun flush()
+
+

Pushes all buffered bytes to their final destination.

+
+
+ +
+
+ +
+
abstract override fun flush()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-sink/index.html b/2.x/okio/okio/-sink/index.html new file mode 100644 index 0000000000..bd58705420 --- /dev/null +++ b/2.x/okio/okio/-sink/index.html @@ -0,0 +1,402 @@ + + + + Sink + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Sink

+
+
+
interface Sink : Closeable

Receives a stream of bytes. Use this interface to write data wherever it's needed: to the network, storage, or a buffer in memory. Sinks may be layered to transform received data, such as to compress, encrypt, throttle, or add protocol framing.

Most application code shouldn't operate on a sink directly, but rather on a BufferedSink which is both more efficient and more convenient. Use buffer to wrap any sink with a buffer.

Sinks are easy to test: just use a Buffer in your tests, and read from it to confirm it received the data that was expected.

Comparison with OutputStream

This interface is functionally equivalent to java.io.OutputStream.

OutputStream requires multiple layers when emitted data is heterogeneous: a DataOutputStream for primitive values, a BufferedOutputStream for buffering, and OutputStreamWriter for charset encoding. This library uses BufferedSink for all of the above.

Sink is also easier to layer: there is no java.io.OutputStream.write method that is awkward to implement efficiently.

Interop with OutputStream

Use sink to adapt an OutputStream to a sink. Use BufferedSink.outputStream to adapt a sink to an OutputStream.

interface Sink : Closeable, Flushable
+
+
+
+
+

Functions

+
+
+
+
close +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract override fun close()
+
+
Pushes all buffered bytes to their final destination and releases the resources held by this sink.
+
+
+ +
+
+ +
+
abstract override fun close()
+
+
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+
+
open operator fun equals(other: Any?): Boolean
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
flush +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun flush()
+
+
Pushes all buffered bytes to their final destination.
+
+
+ +
+
+ +
+
abstract override fun flush()
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun hashCode(): Int
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
timeout +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun timeout(): Timeout
+
+
Returns the timeout for this sink.
+
+
+ +
+
+ +
+
abstract fun timeout(): Timeout
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun toString(): String
open fun toString(): String
+
+
+
+
+
+
+ +
+
+
write +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
abstract fun write(source: Buffer, byteCount: Long)
+
+
Removes byteCount bytes from source and appends them to this.
+
+
+ +
+
+ +
+
abstract fun write(source: Buffer, byteCount: Long)
+
+
+
+
+
+
+
+

Inheritors

+
+
+
+
BufferedSink +
Link copied to clipboard
+
+
+
+
+ +
+
+
HashingSink +
Link copied to clipboard
+
+
+
+
+ +
+
+
CipherSink +
Link copied to clipboard
+
+
+
+
+ +
+
+
DeflaterSink +
Link copied to clipboard
+
+
+
+
+ +
+
+
ForwardingSink +
Link copied to clipboard
+
+
+
+
+ +
+
+
GzipSink +
Link copied to clipboard
+
+
+
+
+
+

Extensions

+
+
+
+
buffer +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
fun Sink.buffer(): BufferedSink
+
+
Returns a new sink that buffers writes to sink.
+
+
+
+
+ +
+
+
cipherSink +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun Sink.cipherSink(cipher: Cipher): CipherSink
+
+
Returns a sink that uses cipher to encrypt or decrypt this.
+
+
+
+
+ +
+
+
deflate +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
inline fun Sink.deflate(deflater: Deflater = Deflater()): DeflaterSink
+
+
Returns an DeflaterSink that DEFLATE-compresses data to this Sink while writing.
+
+
+
+
+ +
+
+
gzip +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
inline fun Sink.gzip(): GzipSink
+
+
Returns a GzipSink that gzip-compresses to this Sink while writing.
+
+
+
+
+ +
+
+
hashingSink +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun Sink.hashingSink(mac: Mac): HashingSink
+
+
Returns a sink that uses mac to hash this.
+
+ +
+
fun Sink.hashingSink(digest: MessageDigest): HashingSink
+
+
Returns a sink that uses digest to hash this.
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-sink/timeout.html b/2.x/okio/okio/-sink/timeout.html new file mode 100644 index 0000000000..b49b0d93f0 --- /dev/null +++ b/2.x/okio/okio/-sink/timeout.html @@ -0,0 +1,67 @@ + + + + timeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

timeout

+
+
+
+
common
+
+
+ +
+
abstract fun timeout(): Timeout
+
+

Returns the timeout for this sink.

+
+
+ +
+
+ +
+
abstract fun timeout(): Timeout
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-sink/write.html b/2.x/okio/okio/-sink/write.html new file mode 100644 index 0000000000..49f595d884 --- /dev/null +++ b/2.x/okio/okio/-sink/write.html @@ -0,0 +1,67 @@ + + + + write + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

write

+
+
+
+
common
+
+
+ +
+
abstract fun write(source: Buffer, byteCount: Long)
+
+

Removes byteCount bytes from source and appends them to this.

+
+
+ +
+
+ +
+
abstract fun write(source: Buffer, byteCount: Long)
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-source/close.html b/2.x/okio/okio/-source/close.html new file mode 100644 index 0000000000..9b5e5c2a0f --- /dev/null +++ b/2.x/okio/okio/-source/close.html @@ -0,0 +1,53 @@ + + + + close + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

close

+
+
+ +
+
abstract override fun close()
+
+

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-source/index.html b/2.x/okio/okio/-source/index.html new file mode 100644 index 0000000000..bc221dc9f3 --- /dev/null +++ b/2.x/okio/okio/-source/index.html @@ -0,0 +1,339 @@ + + + + Source + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Source

+
interface Source : Closeable

Supplies a stream of bytes. Use this interface to read data from wherever it's located: from the network, storage, or a buffer in memory. Sources may be layered to transform supplied data, such as to decompress, decrypt, or remove protocol framing.

Most applications shouldn't operate on a source directly, but rather on a BufferedSource which is both more efficient and more convenient. Use buffer to wrap any source with a buffer.

Sources are easy to test: just use a Buffer in your tests, and fill it with the data your application is to read.

Comparison with InputStream

This interface is functionally equivalent to java.io.InputStream.

InputStream requires multiple layers when consumed data is heterogeneous: a DataInputStream for primitive values, a BufferedInputStream for buffering, and InputStreamReader for strings. This library uses BufferedSource for all of the above.

Source avoids the impossible-to-implement java.io.InputStream.available method. Instead callers specify how many bytes they require.

Source omits the unsafe-to-compose java.io.InputStream.mark state that's tracked by InputStream; instead, callers just buffer what they need.

When implementing a source, you don't need to worry about the java.io.InputStream.read method that is awkward to implement efficiently and returns one of 257 possible values.

And source has a stronger skip method: BufferedSource.skip won't return prematurely.

Interop with InputStream

Use source to adapt an InputStream to a source. Use BufferedSource.inputStream to adapt a source to an InputStream.

+
+
+
+
+

Functions

+
+
+
+
close +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
abstract override fun close()
+
+
Closes this source and releases the resources held by this source.
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
read +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
abstract fun read(sink: Buffer, byteCount: Long): Long
+
+
Removes at least 1, and up to byteCount bytes from this and appends them to sink.
+
+
+
+
+ +
+
+
timeout +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
abstract fun timeout(): Timeout
+
+
Returns the timeout for this source.
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
open fun toString(): String
+
+
+
+
+
+
+
+

Inheritors

+
+
+
+
BufferedSource +
Link copied to clipboard
+
+
+
+
+ +
+
+
HashingSource +
Link copied to clipboard
+
+
+
+
+ +
+
+
CipherSource +
Link copied to clipboard
+
+
+
+
+ +
+
+
ForwardingSource +
Link copied to clipboard
+
+
+
+
+ +
+
+
GzipSource +
Link copied to clipboard
+
+
+
+
+ +
+
+
InflaterSource +
Link copied to clipboard
+
+
+
+
+
+

Extensions

+
+
+
+
buffer +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
fun Source.buffer(): BufferedSource
+
+
Returns a new source that buffers reads from source.
+
+
+
+
+ +
+
+
cipherSource +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun Source.cipherSource(cipher: Cipher): CipherSource
+
+
Returns a source that uses cipher to encrypt or decrypt this.
+
+
+
+
+ +
+
+
gzip +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
inline fun Source.gzip(): GzipSource
+
+
Returns a GzipSource that gzip-decompresses this Source while reading.
+
+
+
+
+ +
+
+
hashingSource +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun Source.hashingSource(mac: Mac): HashingSource
+
+
Returns a source that uses mac to hash this.
+
+ +
+
fun Source.hashingSource(digest: MessageDigest): HashingSource
+
+
Returns a source that uses digest to hash this.
+
+
+
+
+ +
+
+
inflate +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
inline fun Source.inflate(inflater: Inflater = Inflater()): InflaterSource
+
+
Returns an InflaterSource that DEFLATE-decompresses this Source while reading.
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-source/read.html b/2.x/okio/okio/-source/read.html new file mode 100644 index 0000000000..89f38bd6d9 --- /dev/null +++ b/2.x/okio/okio/-source/read.html @@ -0,0 +1,53 @@ + + + + read + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

read

+
+
+ +
+
abstract fun read(sink: Buffer, byteCount: Long): Long
+
+

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-source/timeout.html b/2.x/okio/okio/-source/timeout.html new file mode 100644 index 0000000000..628a56e5eb --- /dev/null +++ b/2.x/okio/okio/-source/timeout.html @@ -0,0 +1,53 @@ + + + + timeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

timeout

+
+
+ +
+
abstract fun timeout(): Timeout
+
+

Returns the timeout for this source.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-throttler/-throttler.html b/2.x/okio/okio/-throttler/-throttler.html new file mode 100644 index 0000000000..75570e7fa8 --- /dev/null +++ b/2.x/okio/okio/-throttler/-throttler.html @@ -0,0 +1,53 @@ + + + + Throttler + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Throttler

+
+
+ +
+
fun Throttler()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-throttler/bytes-per-second.html b/2.x/okio/okio/-throttler/bytes-per-second.html new file mode 100644 index 0000000000..ea4bc5d5f0 --- /dev/null +++ b/2.x/okio/okio/-throttler/bytes-per-second.html @@ -0,0 +1,53 @@ + + + + bytesPerSecond + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

bytesPerSecond

+
+
+ +
+
fun bytesPerSecond(bytesPerSecond: Long, waitByteCount: Long = this.waitByteCount, maxByteCount: Long = this.maxByteCount)
+
+

Sets the rate at which bytes will be allocated. Use 0 for no limit.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-throttler/index.html b/2.x/okio/okio/-throttler/index.html new file mode 100644 index 0000000000..862a22844b --- /dev/null +++ b/2.x/okio/okio/-throttler/index.html @@ -0,0 +1,193 @@ + + + + Throttler + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Throttler

+
class Throttler

Enables limiting of Source and Sink throughput. Attach to this throttler via source and sink and set the desired throughput via bytesPerSecond. Multiple Sources and Sinks can be attached to a single Throttler and they will be throttled as a group, where their combined throughput will not exceed the desired throughput. The same Source or Sink can be attached to multiple Throttlers and its throughput will not exceed the desired throughput of any of the Throttlers.

This class has these tuning parameters:

  • bytesPerSecond: Maximum sustained throughput. Use 0 for no limit.

  • waitByteCount: When the requested byte count is greater than this many bytes and isn't immediately available, only wait until we can allocate at least this many bytes. Use this to set the ideal byte count during sustained throughput.

  • maxByteCount: Maximum number of bytes to allocate on any call. This is also the number of bytes that will be returned before any waiting.

+
+
+
+
+

Constructors

+
+
+
+
Throttler +
Link copied to clipboard
+
+
+
+ +
+
+
fun Throttler()
+
+
+
+
+
+

Functions

+
+
+
+
bytesPerSecond +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun bytesPerSecond(bytesPerSecond: Long, waitByteCount: Long = this.waitByteCount, maxByteCount: Long = this.maxByteCount)
+
+
Sets the rate at which bytes will be allocated.
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
sink +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun sink(sink: Sink): Sink
+
+
Create a Sink which honors this Throttler.
+
+
+
+
+ +
+
+
source +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun source(source: Source): Source
+
+
Create a Source which honors this Throttler.
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun toString(): String
+
+
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-throttler/sink.html b/2.x/okio/okio/-throttler/sink.html new file mode 100644 index 0000000000..cc0b58a66f --- /dev/null +++ b/2.x/okio/okio/-throttler/sink.html @@ -0,0 +1,53 @@ + + + + sink + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

sink

+
+
+ +
+
fun sink(sink: Sink): Sink
+
+

Create a Sink which honors this Throttler.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-throttler/source.html b/2.x/okio/okio/-throttler/source.html new file mode 100644 index 0000000000..d4ca30b570 --- /dev/null +++ b/2.x/okio/okio/-throttler/source.html @@ -0,0 +1,53 @@ + + + + source + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

source

+
+
+ +
+
fun source(source: Source): Source
+
+

Create a Source which honors this Throttler.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-timeout/-companion/-n-o-n-e.html b/2.x/okio/okio/-timeout/-companion/-n-o-n-e.html new file mode 100644 index 0000000000..c14cbd2317 --- /dev/null +++ b/2.x/okio/okio/-timeout/-companion/-n-o-n-e.html @@ -0,0 +1,67 @@ + + + + NONE + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

NONE

+
+
+
+
common
+
+
+ +
+
val NONE: Timeout
+
+

An empty timeout that neither tracks nor detects timeouts. Use this when timeouts aren't necessary, such as in implementations whose operations do not block.

+
+
+ +
+
+ +
+
val NONE: Timeout
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-timeout/-companion/index.html b/2.x/okio/okio/-timeout/-companion/index.html new file mode 100644 index 0000000000..2b5cbf4c15 --- /dev/null +++ b/2.x/okio/okio/-timeout/-companion/index.html @@ -0,0 +1,149 @@ + + + + Companion + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Companion

+
object Companion
+
+
+
+
+

Functions

+
+
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+
+
open operator fun equals(other: Any?): Boolean
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun hashCode(): Int
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
minTimeout +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun minTimeout(aNanos: Long, bNanos: Long): Long
+
+
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun toString(): String
open fun toString(): String
+
+
+
+
+
+
+
+

Properties

+
+
+
+
NONE +
Link copied to clipboard
+
+
+
+
+
+
val NONE: Timeout
An empty timeout that neither tracks nor detects timeouts.
val NONE: Timeout
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-timeout/-companion/min-timeout.html b/2.x/okio/okio/-timeout/-companion/min-timeout.html new file mode 100644 index 0000000000..2a5f4cdbb8 --- /dev/null +++ b/2.x/okio/okio/-timeout/-companion/min-timeout.html @@ -0,0 +1,53 @@ + + + + minTimeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

minTimeout

+
+
+ +
+
fun minTimeout(aNanos: Long, bNanos: Long): Long
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-timeout/-timeout.html b/2.x/okio/okio/-timeout/-timeout.html new file mode 100644 index 0000000000..a6e5bb7529 --- /dev/null +++ b/2.x/okio/okio/-timeout/-timeout.html @@ -0,0 +1,53 @@ + + + + Timeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Timeout

+
+
+ +
+
fun Timeout()
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-timeout/clear-deadline.html b/2.x/okio/okio/-timeout/clear-deadline.html new file mode 100644 index 0000000000..6edd2d0a7a --- /dev/null +++ b/2.x/okio/okio/-timeout/clear-deadline.html @@ -0,0 +1,53 @@ + + + + clearDeadline + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

clearDeadline

+
+
+ +
+
open fun clearDeadline(): Timeout
+
+

Clears the deadline.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-timeout/clear-timeout.html b/2.x/okio/okio/-timeout/clear-timeout.html new file mode 100644 index 0000000000..439524d82f --- /dev/null +++ b/2.x/okio/okio/-timeout/clear-timeout.html @@ -0,0 +1,53 @@ + + + + clearTimeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

clearTimeout

+
+
+ +
+
open fun clearTimeout(): Timeout
+
+

Clears the timeout. Operating system timeouts may still apply.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-timeout/deadline-nano-time.html b/2.x/okio/okio/-timeout/deadline-nano-time.html new file mode 100644 index 0000000000..b18b5964c5 --- /dev/null +++ b/2.x/okio/okio/-timeout/deadline-nano-time.html @@ -0,0 +1,59 @@ + + + + deadlineNanoTime + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

deadlineNanoTime

+
+
+ +
+
open fun deadlineNanoTime(): Long
+
+

Returns the nano time when the deadline will be reached.

Throws

if no deadline is set.

+
+ +
+
open fun deadlineNanoTime(deadlineNanoTime: Long): Timeout
+
+

Sets the nano time when the deadline will be reached. All operations must complete before this time. Use a deadline to set a maximum bound on the time spent on a sequence of operations.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-timeout/deadline.html b/2.x/okio/okio/-timeout/deadline.html new file mode 100644 index 0000000000..f09688c8d2 --- /dev/null +++ b/2.x/okio/okio/-timeout/deadline.html @@ -0,0 +1,53 @@ + + + + deadline + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

deadline

+
+
+ +
+
fun deadline(duration: Long, unit: TimeUnit): Timeout
+
+

Set a deadline of now plus duration time.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-timeout/has-deadline.html b/2.x/okio/okio/-timeout/has-deadline.html new file mode 100644 index 0000000000..a33c583fbc --- /dev/null +++ b/2.x/okio/okio/-timeout/has-deadline.html @@ -0,0 +1,53 @@ + + + + hasDeadline + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hasDeadline

+
+
+ +
+
open fun hasDeadline(): Boolean
+
+

Returns true if a deadline is enabled.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-timeout/index.html b/2.x/okio/okio/-timeout/index.html new file mode 100644 index 0000000000..34658e645b --- /dev/null +++ b/2.x/okio/okio/-timeout/index.html @@ -0,0 +1,363 @@ + + + + Timeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Timeout

+
+
+
open class Timeout

A policy on how much time to spend on a task before giving up. When a task times out, it is left in an unspecified state and should be abandoned. For example, if reading from a source times out, that source should be closed and the read should be retried later. If writing to a sink times out, the same rules apply: close the sink and retry later.

Timeouts and Deadlines

This class offers two complementary controls to define a timeout policy.

Timeouts specify the maximum time to wait for a single operation to complete. Timeouts are typically used to detect problems like network partitions. For example, if a remote peer doesn't return any data for ten seconds, we may assume that the peer is unavailable.

Deadlines specify the maximum time to spend on a job, composed of one or more operations. Use deadlines to set an upper bound on the time invested on a job. For example, a battery-conscious app may limit how much time it spends pre-loading content.

open class Timeout
+
+
+
+
+

Types

+
+
+
+
Companion +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
object Companion
+
+
+
+
+
+
+
+

Functions

+
+
+
+
clearDeadline +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun clearDeadline(): Timeout
+
+
Clears the deadline.
+
+
+
+
+ +
+
+
clearTimeout +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun clearTimeout(): Timeout
+
+
Clears the timeout.
+
+
+
+
+ +
+
+
deadline +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun deadline(duration: Long, unit: TimeUnit): Timeout
+
+
Set a deadline of now plus duration time.
+
+
+
+
+ +
+
+
deadlineNanoTime +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun deadlineNanoTime(): Long
+
+
Returns the nano time when the deadline will be reached.
+
+ +
+
open fun deadlineNanoTime(deadlineNanoTime: Long): Timeout
+
+
Sets the nano time when the deadline will be reached.
+
+
+
+
+ +
+
+
equals +
Link copied to clipboard
+
+
+
+ +
+
+
+
open operator fun equals(other: Any?): Boolean
open operator fun equals(other: Any?): Boolean
+
+
+
+
+
+
+ +
+
+
hasDeadline +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun hasDeadline(): Boolean
+
+
Returns true if a deadline is enabled.
+
+
+
+
+ +
+
+
hashCode +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun hashCode(): Int
open fun hashCode(): Int
+
+
+
+
+
+
+ +
+
+
intersectWith +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
inline fun intersectWith(other: Timeout, block: () -> Unit)
+
+
Applies the minimum intersection between this timeout and other, run block, then finally rollback this timeout's values.
+
+
+
+
+ +
+
+
throwIfReached +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun throwIfReached()
+
+
Throws an InterruptedIOException if the deadline has been reached or if the current thread has been interrupted.
+
+
+
+
+ +
+
+
timeout +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun timeout(timeout: Long, unit: TimeUnit): Timeout
+
+
Wait at most timeout time before aborting an operation.
+
+
+
+
+ +
+
+
timeoutNanos +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open fun timeoutNanos(): Long
+
+
Returns the timeout in nanoseconds, or 0 for no timeout.
+
+
+
+
+ +
+
+
toString +
Link copied to clipboard
+
+
+
+ +
+
+
+
open fun toString(): String
open fun toString(): String
+
+
+
+
+
+
+ +
+
+
waitUntilNotified +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun waitUntilNotified(monitor: Any)
+
+
Waits on monitor until it is notified.
+
+
+
+
+
+

Inheritors

+
+
+
+
AsyncTimeout +
Link copied to clipboard
+
+
+
+
+ +
+
+
ForwardingTimeout +
Link copied to clipboard
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-timeout/intersect-with.html b/2.x/okio/okio/-timeout/intersect-with.html new file mode 100644 index 0000000000..b47e19cdff --- /dev/null +++ b/2.x/okio/okio/-timeout/intersect-with.html @@ -0,0 +1,53 @@ + + + + intersectWith + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

intersectWith

+
+
+ +
+
inline fun intersectWith(other: Timeout, block: () -> Unit)
+
+

Applies the minimum intersection between this timeout and other, run block, then finally rollback this timeout's values.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-timeout/throw-if-reached.html b/2.x/okio/okio/-timeout/throw-if-reached.html new file mode 100644 index 0000000000..efca3aedba --- /dev/null +++ b/2.x/okio/okio/-timeout/throw-if-reached.html @@ -0,0 +1,53 @@ + + + + throwIfReached + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

throwIfReached

+
+
+ +
+
open fun throwIfReached()
+
+

Throws an InterruptedIOException if the deadline has been reached or if the current thread has been interrupted. This method doesn't detect timeouts; that should be implemented to asynchronously abort an in-progress operation.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-timeout/timeout-nanos.html b/2.x/okio/okio/-timeout/timeout-nanos.html new file mode 100644 index 0000000000..d91d20c355 --- /dev/null +++ b/2.x/okio/okio/-timeout/timeout-nanos.html @@ -0,0 +1,53 @@ + + + + timeoutNanos + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

timeoutNanos

+
+
+ +
+
open fun timeoutNanos(): Long
+
+

Returns the timeout in nanoseconds, or 0 for no timeout.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-timeout/timeout.html b/2.x/okio/okio/-timeout/timeout.html new file mode 100644 index 0000000000..094744a6ca --- /dev/null +++ b/2.x/okio/okio/-timeout/timeout.html @@ -0,0 +1,53 @@ + + + + timeout + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

timeout

+
+
+ +
+
open fun timeout(timeout: Long, unit: TimeUnit): Timeout
+
+

Wait at most timeout time before aborting an operation. Using a per-operation timeout means that as long as forward progress is being made, no sequence of operations will fail.

If timeout == 0, operations will run indefinitely. (Operating system timeouts may still apply.)

+
+ +
+
+ + + diff --git a/2.x/okio/okio/-timeout/wait-until-notified.html b/2.x/okio/okio/-timeout/wait-until-notified.html new file mode 100644 index 0000000000..b8c58fca0b --- /dev/null +++ b/2.x/okio/okio/-timeout/wait-until-notified.html @@ -0,0 +1,53 @@ + + + + waitUntilNotified + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

waitUntilNotified

+
+
+ +
+
fun waitUntilNotified(monitor: Any)
+
+

Waits on monitor until it is notified. Throws InterruptedIOException if either the thread is interrupted or if this timeout elapses before monitor is notified. The caller must be synchronized on monitor.

Here's a sample class that uses waitUntilNotified() to await a specific state. Note that the call is made within a loop to avoid unnecessary waiting and to mitigate spurious notifications.

class Dice {
Random random = new Random();
int latestTotal;

public synchronized void roll() {
latestTotal = 2 + random.nextInt(6) + random.nextInt(6);
System.out.println("Rolled " + latestTotal);
notifyAll();
}

public void rollAtFixedRate(int period, TimeUnit timeUnit) {
Executors.newScheduledThreadPool(0).scheduleAtFixedRate(new Runnable() {
public void run() {
roll();
}
}, 0, period, timeUnit);
}

public synchronized void awaitTotal(Timeout timeout, int total)
throws InterruptedIOException {
while (latestTotal != total) {
timeout.waitUntilNotified(this);
}
}
}
+
+ +
+
+ + + diff --git a/2.x/okio/okio/-utf8.html b/2.x/okio/okio/-utf8.html new file mode 100644 index 0000000000..38ca6a6887 --- /dev/null +++ b/2.x/okio/okio/-utf8.html @@ -0,0 +1,53 @@ + + + + Utf8 + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Utf8

+
+
+ +
+
val Utf8: -DeprecatedUtf8
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/appending-sink.html b/2.x/okio/okio/appending-sink.html new file mode 100644 index 0000000000..04070bb3a5 --- /dev/null +++ b/2.x/okio/okio/appending-sink.html @@ -0,0 +1,53 @@ + + + + appendingSink + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

appendingSink

+
+
+ +
+
fun File.appendingSink(): Sink
+
+

Returns a sink that writes to file.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/blackhole-sink.html b/2.x/okio/okio/blackhole-sink.html new file mode 100644 index 0000000000..050a417ef9 --- /dev/null +++ b/2.x/okio/okio/blackhole-sink.html @@ -0,0 +1,53 @@ + + + + blackholeSink + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

blackholeSink

+
+
+ +
+
@JvmName(name = "blackhole")
fun blackholeSink(): Sink
+
+

Returns a sink that writes nowhere.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/buffer.html b/2.x/okio/okio/buffer.html new file mode 100644 index 0000000000..d1b44c202c --- /dev/null +++ b/2.x/okio/okio/buffer.html @@ -0,0 +1,59 @@ + + + + buffer + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

buffer

+
+
+ +
+
fun Source.buffer(): BufferedSource
+
+

Returns a new source that buffers reads from source. The returned source will perform bulk reads into its in-memory buffer. Use this wherever you read a source to get an ergonomic and efficient access to data.

+
+ +
+
fun Sink.buffer(): BufferedSink
+
+

Returns a new sink that buffers writes to sink. The returned sink will batch writes to sink. Use this wherever you write to a sink to get an ergonomic and efficient access to data.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/cipher-sink.html b/2.x/okio/okio/cipher-sink.html new file mode 100644 index 0000000000..b11c8520e5 --- /dev/null +++ b/2.x/okio/okio/cipher-sink.html @@ -0,0 +1,53 @@ + + + + cipherSink + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

cipherSink

+
+
+ +
+
fun Sink.cipherSink(cipher: Cipher): CipherSink
+
+

Returns a sink that uses cipher to encrypt or decrypt this.

Throws

if cipher isn't a block cipher.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/cipher-source.html b/2.x/okio/okio/cipher-source.html new file mode 100644 index 0000000000..a9a5b29f45 --- /dev/null +++ b/2.x/okio/okio/cipher-source.html @@ -0,0 +1,53 @@ + + + + cipherSource + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

cipherSource

+
+
+ +
+
fun Source.cipherSource(cipher: Cipher): CipherSource
+
+

Returns a source that uses cipher to encrypt or decrypt this.

Throws

if cipher isn't a block cipher.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/deflate.html b/2.x/okio/okio/deflate.html new file mode 100644 index 0000000000..7a4b9f9534 --- /dev/null +++ b/2.x/okio/okio/deflate.html @@ -0,0 +1,53 @@ + + + + deflate + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

deflate

+
+
+ +
+
inline fun Sink.deflate(deflater: Deflater = Deflater()): DeflaterSink
+
+

Returns an DeflaterSink that DEFLATE-compresses data to this Sink while writing.

See also

+
+ +
+
+ + + diff --git a/2.x/okio/okio/gzip.html b/2.x/okio/okio/gzip.html new file mode 100644 index 0000000000..fc69b20736 --- /dev/null +++ b/2.x/okio/okio/gzip.html @@ -0,0 +1,59 @@ + + + + gzip + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

gzip

+
+
+ +
+
inline fun Sink.gzip(): GzipSink
+
+

Returns a GzipSink that gzip-compresses to this Sink while writing.

See also

+
+ +
+
inline fun Source.gzip(): GzipSource
+
+

Returns a GzipSource that gzip-decompresses this Source while reading.

See also

+
+ +
+
+ + + diff --git a/2.x/okio/okio/hashing-sink.html b/2.x/okio/okio/hashing-sink.html new file mode 100644 index 0000000000..d1f9d0dae6 --- /dev/null +++ b/2.x/okio/okio/hashing-sink.html @@ -0,0 +1,59 @@ + + + + hashingSink + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hashingSink

+
+
+ +
+
fun Sink.hashingSink(mac: Mac): HashingSink
+
+

Returns a sink that uses mac to hash this.

+
+ +
+
fun Sink.hashingSink(digest: MessageDigest): HashingSink
+
+

Returns a sink that uses digest to hash this.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/hashing-source.html b/2.x/okio/okio/hashing-source.html new file mode 100644 index 0000000000..eb2a8aabcf --- /dev/null +++ b/2.x/okio/okio/hashing-source.html @@ -0,0 +1,59 @@ + + + + hashingSource + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

hashingSource

+
+
+ +
+
fun Source.hashingSource(mac: Mac): HashingSource
+
+

Returns a source that uses mac to hash this.

+
+ +
+
fun Source.hashingSource(digest: MessageDigest): HashingSource
+
+

Returns a source that uses digest to hash this.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/index.html b/2.x/okio/okio/index.html new file mode 100644 index 0000000000..36cd10022b --- /dev/null +++ b/2.x/okio/okio/index.html @@ -0,0 +1,1093 @@ + + + + okio + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

Package okio

+
+
+
+
+

Types

+
+
+
+
ArrayIndexOutOfBoundsException +
Link copied to clipboard
+
+
+
+ +
+
+
+
class ArrayIndexOutOfBoundsException(message: String?) : IndexOutOfBoundsException
typealias ArrayIndexOutOfBoundsException = ArrayIndexOutOfBoundsException
+
+
+
+
+
+
+ +
+
+
AsyncTimeout +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open class AsyncTimeout : Timeout
+
+
This timeout uses a background thread to take action exactly when the timeout occurs.
+
+
+
+
+ +
+
+
Buffer +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
class Buffer : BufferedSource, BufferedSink
+
+
A collection of bytes in memory.
+
+
+ +
+
+ +
+
class Buffer : BufferedSource, BufferedSink, Cloneable, ByteChannel
+
+
+
+
+
+
+ +
+
+
BufferedSink +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
interface BufferedSink : Sink
+
+
A sink that keeps a buffer internally so that callers can do small writes without a performance penalty.
+
+
+ +
+
+ +
+
interface BufferedSink : Sink, WritableByteChannel
+
+
+
+
+
+
+ +
+
+
BufferedSource +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
interface BufferedSource : Source
+
+
A source that keeps a buffer internally so that callers can do small reads without a performance penalty.
+
+
+ +
+
+ +
+
interface BufferedSource : Source, ReadableByteChannel
+
+
+
+
+
+
+ +
+
+
ByteString +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open class ByteString : Comparable<ByteString>
+
+
An immutable sequence of bytes.
+
+
+ +
+
+ +
+
open class ByteString : Serializable, Comparable<ByteString>
+
+
+
+
+
+
+ +
+
+
CipherSink +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
class CipherSink(sink: BufferedSink, cipher: Cipher) : Sink
+
+
+
+
+
+
+ +
+
+
CipherSource +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
class CipherSource(source: BufferedSource, cipher: Cipher) : Source
+
+
+
+
+
+
+ +
+
+
Closeable +
Link copied to clipboard
+
+
+
+ +
+
+
+
interface Closeable
typealias Closeable = Closeable
+
+
+
+
+
+
+ +
+
+
DeflaterSink +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
class DeflaterSink : Sink
+
+
A sink that uses DEFLATE to compress data written to another source.
+
+
+
+
+ +
+
+
EOFException +
Link copied to clipboard
+
+
+
+ +
+
+
+
open class EOFException(message: String?) : IOException
typealias EOFException = EOFException
+
+
+
+
+
+
+ +
+
+
ExperimentalFileSystem +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
annotation class ExperimentalFileSystem
+
+
+
+
+
+
+ +
+
+
FileNotFoundException +
Link copied to clipboard
+
+
+
+ +
+
+
+
class FileNotFoundException(message: String?) : IOException
typealias FileNotFoundException = FileNotFoundException
+
+
+
+
+
+
+ +
+
+
ForwardingSink +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
abstract class ForwardingSink(delegate: Sink) : Sink
+
+
A Sink which forwards calls to another.
+
+
+
+
+ +
+
+
ForwardingSource +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
abstract class ForwardingSource(delegate: Source) : Source
+
+
A Source which forwards calls to another.
+
+
+
+
+ +
+
+
ForwardingTimeout +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
open class ForwardingTimeout(delegate: Timeout) : Timeout
+
+
A Timeout which forwards calls to another.
+
+
+
+
+ +
+
+
GzipSink +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
class GzipSink(sink: Sink) : Sink
+
+
A sink that uses GZIP to compress written data to another sink.
+
+
+
+
+ +
+
+
GzipSource +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
class GzipSource(source: Source) : Source
+
+
A source that uses GZIP to decompress data read from another source.
+
+
+
+
+ +
+
+
HashingSink +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
class HashingSink : Sink
+
+
A sink that computes a hash of the full stream of bytes it has accepted.
+
+
+ +
+
+ +
+
class HashingSink : ForwardingSink, Sink
+
+
A sink that computes a hash of the full stream of bytes it has accepted.
+
+
+
+
+ +
+
+
HashingSource +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
class HashingSource : Source
+
+
A source that computes a hash of the full stream of bytes it has supplied.
+
+
+ +
+
+ +
+
class HashingSource : ForwardingSource, Source
+
+
A source that computes a hash of the full stream of bytes it has supplied.
+
+
+
+
+ +
+
+
InflaterSource +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
class InflaterSource : Source
+
+
A source that uses DEFLATE to decompress data read from another source.
+
+
+
+
+ +
+
+
IOException +
Link copied to clipboard
+
+
+
+ +
+
+
+
open class IOException(message: String?, cause: Throwable?) : Exception
typealias IOException = IOException
+
+
+
+
+
+
+ +
+
+
Options +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
class Options : AbstractList<ByteString> , RandomAccess
+
+
An indexed set of values that may be read with BufferedSource.select.
+
+
+
+
+ +
+
+
Pipe +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
class Pipe(maxBufferSize: Long)
+
+
A source and a sink that are attached.
+
+
+
+
+ +
+
+
Sink +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
interface Sink : Closeable
+
+
Receives a stream of bytes.
+
+
+ +
+
+ +
+
interface Sink : Closeable, Flushable
+
+
+
+
+
+
+ +
+
+
Source +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
interface Source : Closeable
+
+
Supplies a stream of bytes.
+
+
+
+
+ +
+
+
Throttler +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
class Throttler
+
+
Enables limiting of Source and Sink throughput.
+
+
+
+
+ +
+
+
Timeout +
Link copied to clipboard
+
+
+
+
+
common
+
+
+ +
+
open class Timeout
+
+
A policy on how much time to spend on a task before giving up.
+
+
+ +
+
+ +
+
open class Timeout
+
+
+
+
+
+
+
+

Functions

+
+
+
+
appendingSink +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun File.appendingSink(): Sink
+
+
Returns a sink that writes to file.
+
+
+
+
+ +
+
+
blackholeSink +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
@JvmName(name = "blackhole")
fun blackholeSink(): Sink
+
+
Returns a sink that writes nowhere.
+
+
+
+
+ +
+
+
buffer +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
fun Sink.buffer(): BufferedSink
+
+
Returns a new sink that buffers writes to sink.
+
+ +
+
fun Source.buffer(): BufferedSource
+
+
Returns a new source that buffers reads from source.
+
+
+
+
+ +
+
+
cipherSink +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun Sink.cipherSink(cipher: Cipher): CipherSink
+
+
Returns a sink that uses cipher to encrypt or decrypt this.
+
+
+
+
+ +
+
+
cipherSource +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun Source.cipherSource(cipher: Cipher): CipherSource
+
+
Returns a source that uses cipher to encrypt or decrypt this.
+
+
+
+
+ +
+
+
deflate +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
inline fun Sink.deflate(deflater: Deflater = Deflater()): DeflaterSink
+
+
Returns an DeflaterSink that DEFLATE-compresses data to this Sink while writing.
+
+
+
+
+ +
+
+
gzip +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
inline fun Sink.gzip(): GzipSink
+
+
Returns a GzipSink that gzip-compresses to this Sink while writing.
+
+ +
+
inline fun Source.gzip(): GzipSource
+
+
Returns a GzipSource that gzip-decompresses this Source while reading.
+
+
+
+
+ +
+
+
hashingSink +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun Sink.hashingSink(digest: MessageDigest): HashingSink
+
+
Returns a sink that uses digest to hash this.
+
+ +
+
fun Sink.hashingSink(mac: Mac): HashingSink
+
+
Returns a sink that uses mac to hash this.
+
+
+
+
+ +
+
+
hashingSource +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun Source.hashingSource(digest: MessageDigest): HashingSource
+
+
Returns a source that uses digest to hash this.
+
+ +
+
fun Source.hashingSource(mac: Mac): HashingSource
+
+
Returns a source that uses mac to hash this.
+
+
+
+
+ +
+
+
inflate +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
inline fun Source.inflate(inflater: Inflater = Inflater()): InflaterSource
+
+
Returns an InflaterSource that DEFLATE-decompresses this Source while reading.
+
+
+
+
+ +
+
+
sink +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun OutputStream.sink(): Sink
+
+
Returns a sink that writes to out.
+
+ +
+
fun Socket.sink(): Sink
+
+
Returns a sink that writes to socket.
+
+ +
+
fun File.sink(append: Boolean = false): Sink
+
+
Returns a sink that writes to file.
+
+ +
+
@IgnoreJRERequirement()
fun Path.sink(vararg options: OpenOption): Sink
+
+
Returns a source that reads from path.
+
+
+
+
+ +
+
+
source +
Link copied to clipboard
+
+
+
+ +
+
+ +
+
fun File.source(): Source
+
+
Returns a source that reads from file.
+
+ +
+
fun InputStream.source(): Source
+
+
Returns a source that reads from in.
+
+ +
+
fun Socket.source(): Source
+
+
Returns a source that reads from socket.
+
+ +
+
@IgnoreJRERequirement()
fun Path.source(vararg options: OpenOption): Source
+
+
Returns a sink that writes to path.
+
+
+
+
+ +
+
+
toByteString +
Link copied to clipboard
+
+
+
+
apple
+
+
+ +
+
fun <ERROR CLASS>.toByteString(): <ERROR CLASS>
+
+
+
+
+
+
+ +
+
+
use +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
inline fun <T : Closeable?, R> T.use(block: (T) -> R): R
+
+
Execute block then close this.
+
+
+
+
+ +
+
+
utf8Size +
Link copied to clipboard
+
+
+
+
common
+
+
+ +
+
@JvmName(name = "size")
fun String.utf8Size(beginIndex: Int = 0, endIndex: Int = length): Long
+
+
Returns the number of bytes used to encode the slice of string as UTF-8 when using BufferedSink.writeUtf8.
+
+
+
+
+
+

Properties

+
+
+
+
Okio +
Link copied to clipboard
+
+
+
+ +
+
+
val Okio: -DeprecatedOkio
+
+
+
+
+ +
+
+
Utf8 +
Link copied to clipboard
+
+
+
+ +
+
+
val Utf8: -DeprecatedUtf8
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/inflate.html b/2.x/okio/okio/inflate.html new file mode 100644 index 0000000000..0df90cc8bc --- /dev/null +++ b/2.x/okio/okio/inflate.html @@ -0,0 +1,53 @@ + + + + inflate + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

inflate

+
+
+ +
+
inline fun Source.inflate(inflater: Inflater = Inflater()): InflaterSource
+
+

Returns an InflaterSource that DEFLATE-decompresses this Source while reading.

See also

+
+ +
+
+ + + diff --git a/2.x/okio/okio/sink.html b/2.x/okio/okio/sink.html new file mode 100644 index 0000000000..d765b78b80 --- /dev/null +++ b/2.x/okio/okio/sink.html @@ -0,0 +1,71 @@ + + + + sink + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

sink

+
+
+ +
+
fun OutputStream.sink(): Sink
+
+

Returns a sink that writes to out.

+
+ +
+
fun Socket.sink(): Sink
+
+

Returns a sink that writes to socket. Prefer this over sink because this method honors timeouts. When the socket write times out, the socket is asynchronously closed by a watchdog thread.

+
+ +
+
fun File.sink(append: Boolean = false): Sink
+
+

Returns a sink that writes to file.

+
+ +
+
@IgnoreJRERequirement()
fun Path.sink(vararg options: OpenOption): Sink
+
+

Returns a source that reads from path.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/source.html b/2.x/okio/okio/source.html new file mode 100644 index 0000000000..75416723a3 --- /dev/null +++ b/2.x/okio/okio/source.html @@ -0,0 +1,71 @@ + + + + source + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

source

+
+
+ +
+
fun InputStream.source(): Source
+
+

Returns a source that reads from in.

+
+ +
+
fun Socket.source(): Source
+
+

Returns a source that reads from socket. Prefer this over source because this method honors timeouts. When the socket read times out, the socket is asynchronously closed by a watchdog thread.

+
+ +
+
fun File.source(): Source
+
+

Returns a source that reads from file.

+
+ +
+
@IgnoreJRERequirement()
fun Path.source(vararg options: OpenOption): Source
+
+

Returns a sink that writes to path.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/to-byte-string.html b/2.x/okio/okio/to-byte-string.html new file mode 100644 index 0000000000..db4ed9bfef --- /dev/null +++ b/2.x/okio/okio/to-byte-string.html @@ -0,0 +1,53 @@ + + + + toByteString + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

toByteString

+
+
+ +
+
fun <ERROR CLASS>.toByteString(): <ERROR CLASS>
+
+
+
+ +
+
+ + + diff --git a/2.x/okio/okio/use.html b/2.x/okio/okio/use.html new file mode 100644 index 0000000000..7bee5e0d6b --- /dev/null +++ b/2.x/okio/okio/use.html @@ -0,0 +1,53 @@ + + + + use + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

use

+
+
+ +
+
inline fun <T : Closeable?, R> T.use(block: (T) -> R): R
+
+

Execute block then close this. This will be closed even if block throws.

+
+ +
+
+ + + diff --git a/2.x/okio/okio/utf8-size.html b/2.x/okio/okio/utf8-size.html new file mode 100644 index 0000000000..4ae1dbc1da --- /dev/null +++ b/2.x/okio/okio/utf8-size.html @@ -0,0 +1,53 @@ + + + + utf8Size + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
+ + +
+ +
+

utf8Size

+
+
+ +
+
@JvmName(name = "size")
fun String.utf8Size(beginIndex: Int = 0, endIndex: Int = length): Long
+
+

Returns the number of bytes used to encode the slice of string as UTF-8 when using BufferedSink.writeUtf8.

+
+ +
+
+ + + diff --git a/2.x/okio/package-list b/2.x/okio/package-list new file mode 100644 index 0000000000..119c544e22 --- /dev/null +++ b/2.x/okio/package-list @@ -0,0 +1,5 @@ +$dokka.format:html-v1 +$dokka.linkExtension:html + +okio + diff --git a/2.x/scripts/clipboard.js b/2.x/scripts/clipboard.js new file mode 100644 index 0000000000..b00ce246ef --- /dev/null +++ b/2.x/scripts/clipboard.js @@ -0,0 +1,52 @@ +window.addEventListener('load', () => { + document.querySelectorAll('span.copy-icon').forEach(element => { + element.addEventListener('click', (el) => copyElementsContentToClipboard(element)); + }) + + document.querySelectorAll('span.anchor-icon').forEach(element => { + element.addEventListener('click', (el) => { + if(element.hasAttribute('pointing-to')){ + const location = hrefWithoutCurrentlyUsedAnchor() + '#' + element.getAttribute('pointing-to') + copyTextToClipboard(element, location) + } + }); + }) +}) + +const copyElementsContentToClipboard = (element) => { + const selection = window.getSelection(); + const range = document.createRange(); + range.selectNodeContents(element.parentNode.parentNode); + selection.removeAllRanges(); + selection.addRange(range); + + copyAndShowPopup(element, () => selection.removeAllRanges()) +} + +const copyTextToClipboard = (element, text) => { + var textarea = document.createElement("textarea"); + textarea.textContent = text; + textarea.style.position = "fixed"; + document.body.appendChild(textarea); + textarea.select(); + + copyAndShowPopup(element, () => document.body.removeChild(textarea)) +} + +const copyAndShowPopup = (element, after) => { + try { + document.execCommand('copy'); + element.nextElementSibling.classList.add('active-popup'); + setTimeout(() => { + element.nextElementSibling.classList.remove('active-popup'); + }, 1200); + } catch (e) { + console.error('Failed to write to clipboard:', e) + } + finally { + if(after) after() + } +} + +const hrefWithoutCurrentlyUsedAnchor = () => window.location.href.split('#')[0] + diff --git a/2.x/scripts/main.js b/2.x/scripts/main.js new file mode 100644 index 0000000000..12373ea9eb --- /dev/null +++ b/2.x/scripts/main.js @@ -0,0 +1,67 @@ +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=390)}([function(e,t,n){e.exports=n(264)()},function(e,t,n){"use strict";e.exports=n(239)},function(e,t,n){var r; +/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;to;)Q(e,n=r[o++],t[n]);return e},X=function(e){var t=F.call(this,e=x(e,!0));return!(this===W&&o(H,e)&&!o(U,e))&&(!(t||!o(this,e)||!o(H,e)||o(this,A)&&this[A][e])||t)},J=function(e,t){if(e=w(e),t=x(t,!0),e!==W||!o(H,t)||o(U,t)){var n=I(e,t);return!n||!o(H,t)||o(e,A)&&e[A][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=z(w(e)),r=[],i=0;n.length>i;)o(H,t=n[i++])||t==A||t==c||r.push(t);return r},ee=function(e){for(var t,n=e===W,r=z(n?U:w(e)),i=[],a=0;r.length>a;)!o(H,t=r[a++])||n&&!o(W,t)||i.push(H[t]);return i};B||(l((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call(U,n),o(this,A)&&o(this[A],e)&&(this[A][e]=!1),K(this,e,S(1,n))};return i&&G&&K(W,e,{configurable:!0,set:t}),q(e)}).prototype,"toString",(function(){return this._k})),E.f=J,C.f=Q,n(114).f=O.f=Z,n(95).f=X,T.f=ee,i&&!n(111)&&l(W,"propertyIsEnumerable",X,!0),h.f=function(e){return q(d(e))}),a(a.G+a.W+a.F*!B,{Symbol:R});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)d(te[ne++]);for(var re=P(d.store),oe=0;re.length>oe;)v(re[oe++]);a(a.S+a.F*!B,"Symbol",{for:function(e){return o(D,e+="")?D[e]:D[e]=R(e)},keyFor:function(e){if(!$(e))throw TypeError(e+" is not a symbol!");for(var t in D)if(D[t]===e)return t},useSetter:function(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!B,"Object",{create:function(e,t){return void 0===t?k(e):Y(k(e),t)},defineProperty:Q,defineProperties:Y,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var ie=u((function(){T.f(1)}));a(a.S+a.F*ie,"Object",{getOwnPropertySymbols:function(e){return T.f(_(e))}}),M&&a(a.S+a.F*(!B||u((function(){var e=R();return"[null]"!=N([e])||"{}"!=N({a:e})||"{}"!=N(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!$(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!$(t))return t}),r[1]=t,N.apply(M,r)}}),R.prototype[L]||n(59)(R.prototype,L,R.prototype.valueOf),f(R,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){var r=n(10);r(r.S+r.F*!n(30),"Object",{defineProperty:n(39).f})},function(e,t,n){"use strict";n(257);var r=n(27),o=n(135),i=n(30),a=/./.toString,l=function(e){n(42)(RegExp.prototype,"toString",e,!0)};n(31)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?l((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?o.call(e):void 0)})):"toString"!=a.name&&l((function(){return a.call(this)}))},function(e,t,n){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(42)(r,"toString",(function(){var e=i.call(this);return e==e?o.call(this):"Invalid Date"}))},function(e,t,n){n(182)("asyncIterator")},function(e,t,n){var r=n(32),o=n(79),i=n(59),a=n(42),l=n(80),c=function(e,t,n){var u,s,f,p,d=e&c.F,h=e&c.G,v=e&c.S,g=e&c.P,m=e&c.B,y=h?r:v?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?o:o[t]||(o[t]={}),_=b.prototype||(b.prototype={});for(u in h&&(n=t),n)f=((s=!d&&y&&void 0!==y[u])?y:n)[u],p=m&&s?l(f,r):g&&"function"==typeof f?l(Function.call,f):f,y&&a(y,u,f,e&c.U),b[u]!=f&&i(b,u,p),g&&_[u]!=f&&(_[u]=f)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){for(var r=n(12),o=n(70),i=n(42),a=n(32),l=n(59),c=n(96),u=n(25),s=u("iterator"),f=u("toStringTag"),p=c.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(d),v=0;v=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(10);r(r.S,"Object",{create:n(83)})},function(e,t,n){var r=n(10),o=n(83),i=n(81),a=n(27),l=n(29),c=n(31),u=n(184),s=(n(32).Reflect||{}).construct,f=c((function(){function e(){}return!(s((function(){}),[],e)instanceof e)})),p=!c((function(){s((function(){}))}));r(r.S+r.F*(f||p),"Reflect",{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(p&&!f)return s(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(u.apply(e,r))}var c=n.prototype,d=o(l(c)?c:Object.prototype),h=Function.apply.call(e,d,t);return l(h)?h:d}})},function(e,t,n){var r=n(10);r(r.S,"Object",{setPrototypeOf:n(180).set})},function(e,t,n){var r=n(54),o=n(70);n(252)("keys",(function(){return function(e){return o(r(e))}}))},function(e,t,n){"use strict";var r=n(10),o=n(130)(!1),i=[].indexOf,a=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(72)(i)),"Array",{indexOf:function(e){return a?i.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){var r=n(26),o=n(266);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){var r=n(10);r(r.S+r.F,"Object",{assign:n(185)})},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,l=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(c," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,l,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(35),o=n(28),i=n(98),a=n(74),l=n(75),c=function(e,t,n){var u,s,f,p=e&c.F,d=e&c.G,h=e&c.S,v=e&c.P,g=e&c.B,m=e&c.W,y=d?o:o[t]||(o[t]={}),b=y.prototype,_=d?r:h?r[t]:(r[t]||{}).prototype;for(u in d&&(n=t),n)(s=!p&&_&&void 0!==_[u])&&l(y,u)||(f=s?_[u]:n[u],y[u]=d&&"function"!=typeof _[u]?n[u]:g&&s?i(f,r):m&&_[u]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((y.virtual||(y.virtual={}))[u]=f,e&c.R&&b&&!b[u]&&a(b,u,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){var r=n(26),o=n(332);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){var r=n(113),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(71);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";var r=n(10),o=n(62)(1);r(r.P+r.F*!n(72)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(64);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(85)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var r=n(80),o=n(10),i=n(54),a=n(189),l=n(190),c=n(53),u=n(174),s=n(191);o(o.S+o.F*!n(192)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,f,p=i(e),d="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,g=void 0!==v,m=0,y=s(p);if(g&&(v=r(v,h>2?arguments[2]:void 0,2)),null==y||d==Array&&l(y))for(n=new d(t=c(p.length));t>m;m++)u(n,m,g?v(p[m],m):p[m]);else for(f=y.call(p),n=new d;!(o=f.next()).done;m++)u(n,m,g?a(f,v,[o.value,m],!0):o.value);return n.length=m,n}})},function(e,t,n){var r=n(39),o=n(91);e.exports=n(30)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(112),o=n(71);e.exports=function(e){return r(o(e))}},function(e,t,n){"use strict";var r=n(10),o=n(62)(0),i=n(72)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(80),o=n(112),i=n(54),a=n(53),l=n(259);e.exports=function(e,t){var n=1==e,c=2==e,u=3==e,s=4==e,f=6==e,p=5==e||f,d=t||l;return function(t,l,h){for(var v,g,m=i(t),y=o(m),b=r(l,h,3),_=a(y.length),w=0,x=n?d(t,_):c?d(t,0):void 0;_>w;w++)if((p||w in y)&&(g=b(v=y[w],w,m),e))if(n)x[w]=g;else if(g)switch(e){case 3:return!0;case 5:return v;case 6:return w;case 2:x.push(v)}else if(s)return!1;return f?-1:u||s?s:x}}},function(e,t,n){var r=n(56),o=n(200),i=n(147),a=Object.defineProperty;t.f=n(57)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports={default:n(282),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(304)),o=a(n(308)),i=a(n(205));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,i.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},function(e,t,n){(function(e,r){var o; +/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */(function(){var i="Expected a function",a="__lodash_placeholder__",l=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],c="[object Arguments]",u="[object Array]",s="[object Boolean]",f="[object Date]",p="[object Error]",d="[object Function]",h="[object GeneratorFunction]",v="[object Map]",g="[object Number]",m="[object Object]",y="[object RegExp]",b="[object Set]",_="[object String]",w="[object Symbol]",x="[object WeakMap]",S="[object ArrayBuffer]",k="[object DataView]",O="[object Float32Array]",E="[object Float64Array]",T="[object Int8Array]",C="[object Int16Array]",P="[object Int32Array]",I="[object Uint8Array]",j="[object Uint16Array]",z="[object Uint32Array]",R=/\b__p \+= '';/g,M=/\b(__p \+=) '' \+/g,N=/(__e\(.*?\)|\b__t\)) \+\n'';/g,A=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,F=RegExp(A.source),D=RegExp(L.source),H=/<%-([\s\S]+?)%>/g,U=/<%([\s\S]+?)%>/g,W=/<%=([\s\S]+?)%>/g,B=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,G=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K=/[\\^$.*+?()[\]{}|]/g,q=RegExp(K.source),$=/^\s+|\s+$/g,Q=/^\s+/,Y=/\s+$/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,oe=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,le=/^0o[0-7]+$/i,ce=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,se=/($^)/,fe=/['\n\r\u2028\u2029\\]/g,pe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",de="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",he="[\\ud800-\\udfff]",ve="["+de+"]",ge="["+pe+"]",me="\\d+",ye="[\\u2700-\\u27bf]",be="[a-z\\xdf-\\xf6\\xf8-\\xff]",_e="[^\\ud800-\\udfff"+de+me+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",xe="[^\\ud800-\\udfff]",Se="(?:\\ud83c[\\udde6-\\uddff]){2}",ke="[\\ud800-\\udbff][\\udc00-\\udfff]",Oe="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ee="(?:"+be+"|"+_e+")",Te="(?:"+Oe+"|"+_e+")",Ce="(?:"+ge+"|"+we+")"+"?",Pe="[\\ufe0e\\ufe0f]?"+Ce+("(?:\\u200d(?:"+[xe,Se,ke].join("|")+")[\\ufe0e\\ufe0f]?"+Ce+")*"),Ie="(?:"+[ye,Se,ke].join("|")+")"+Pe,je="(?:"+[xe+ge+"?",ge,Se,ke,he].join("|")+")",ze=RegExp("['’]","g"),Re=RegExp(ge,"g"),Me=RegExp(we+"(?="+we+")|"+je+Pe,"g"),Ne=RegExp([Oe+"?"+be+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ve,Oe,"$"].join("|")+")",Te+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ve,Oe+Ee,"$"].join("|")+")",Oe+"?"+Ee+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Oe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",me,Ie].join("|"),"g"),Ae=RegExp("[\\u200d\\ud800-\\udfff"+pe+"\\ufe0e\\ufe0f]"),Le=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],De=-1,He={};He[O]=He[E]=He[T]=He[C]=He[P]=He[I]=He["[object Uint8ClampedArray]"]=He[j]=He[z]=!0,He[c]=He[u]=He[S]=He[s]=He[k]=He[f]=He[p]=He[d]=He[v]=He[g]=He[m]=He[y]=He[b]=He[_]=He[x]=!1;var Ue={};Ue[c]=Ue[u]=Ue[S]=Ue[k]=Ue[s]=Ue[f]=Ue[O]=Ue[E]=Ue[T]=Ue[C]=Ue[P]=Ue[v]=Ue[g]=Ue[m]=Ue[y]=Ue[b]=Ue[_]=Ue[w]=Ue[I]=Ue["[object Uint8ClampedArray]"]=Ue[j]=Ue[z]=!0,Ue[p]=Ue[d]=Ue[x]=!1;var We={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Be=parseFloat,Ve=parseInt,Ge="object"==typeof e&&e&&e.Object===Object&&e,Ke="object"==typeof self&&self&&self.Object===Object&&self,qe=Ge||Ke||Function("return this")(),$e=t&&!t.nodeType&&t,Qe=$e&&"object"==typeof r&&r&&!r.nodeType&&r,Ye=Qe&&Qe.exports===$e,Xe=Ye&&Ge.process,Je=function(){try{var e=Qe&&Qe.require&&Qe.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Ze=Je&&Je.isArrayBuffer,et=Je&&Je.isDate,tt=Je&&Je.isMap,nt=Je&&Je.isRegExp,rt=Je&&Je.isSet,ot=Je&&Je.isTypedArray;function it(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function pt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function Mt(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function Nt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var At=Et({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Lt=Et({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ft(e){return"\\"+We[e]}function Dt(e){return Ae.test(e)}function Ht(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ut(e,t){return function(n){return e(t(n))}}function Wt(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var $t=function e(t){var n,r=(t=null==t?qe:$t.defaults(qe.Object(),t,$t.pick(qe,Fe))).Array,o=t.Date,pe=t.Error,de=t.Function,he=t.Math,ve=t.Object,ge=t.RegExp,me=t.String,ye=t.TypeError,be=r.prototype,_e=de.prototype,we=ve.prototype,xe=t["__core-js_shared__"],Se=_e.toString,ke=we.hasOwnProperty,Oe=0,Ee=(n=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Te=we.toString,Ce=Se.call(ve),Pe=qe._,Ie=ge("^"+Se.call(ke).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=Ye?t.Buffer:void 0,Me=t.Symbol,Ae=t.Uint8Array,We=je?je.allocUnsafe:void 0,Ge=Ut(ve.getPrototypeOf,ve),Ke=ve.create,$e=we.propertyIsEnumerable,Qe=be.splice,Xe=Me?Me.isConcatSpreadable:void 0,Je=Me?Me.iterator:void 0,yt=Me?Me.toStringTag:void 0,Et=function(){try{var e=ei(ve,"defineProperty");return e({},"",{}),e}catch(e){}}(),Qt=t.clearTimeout!==qe.clearTimeout&&t.clearTimeout,Yt=o&&o.now!==qe.Date.now&&o.now,Xt=t.setTimeout!==qe.setTimeout&&t.setTimeout,Jt=he.ceil,Zt=he.floor,en=ve.getOwnPropertySymbols,tn=je?je.isBuffer:void 0,nn=t.isFinite,rn=be.join,on=Ut(ve.keys,ve),an=he.max,ln=he.min,cn=o.now,un=t.parseInt,sn=he.random,fn=be.reverse,pn=ei(t,"DataView"),dn=ei(t,"Map"),hn=ei(t,"Promise"),vn=ei(t,"Set"),gn=ei(t,"WeakMap"),mn=ei(ve,"create"),yn=gn&&new gn,bn={},_n=Ti(pn),wn=Ti(dn),xn=Ti(hn),Sn=Ti(vn),kn=Ti(gn),On=Me?Me.prototype:void 0,En=On?On.valueOf:void 0,Tn=On?On.toString:void 0;function Cn(e){if(Va(e)&&!Ra(e)&&!(e instanceof zn)){if(e instanceof jn)return e;if(ke.call(e,"__wrapped__"))return Ci(e)}return new jn(e)}var Pn=function(){function e(){}return function(t){if(!Ba(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function In(){}function jn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function zn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Yn(e,t,n,r,o,i){var a,l=1&t,u=2&t,p=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!Ba(e))return e;var x=Ra(e);if(x){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ke.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return yo(e,a)}else{var R=ri(e),M=R==d||R==h;if(La(e))return fo(e,l);if(R==m||R==c||M&&!o){if(a=u||M?{}:ii(e),!l)return u?function(e,t){return bo(e,ni(e),t)}(e,function(e,t){return e&&bo(t,wl(t),e)}(a,e)):function(e,t){return bo(e,ti(e),t)}(e,Kn(a,e))}else{if(!Ue[R])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case S:return po(e);case s:case f:return new r(+e);case k:return function(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case O:case E:case T:case C:case P:case I:case"[object Uint8ClampedArray]":case j:case z:return ho(e,n);case v:return new r;case g:case _:return new r(e);case y:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new r;case w:return o=e,En?ve(En.call(o)):{}}var o}(e,R,l)}}i||(i=new Ln);var N=i.get(e);if(N)return N;i.set(e,a),Qa(e)?e.forEach((function(r){a.add(Yn(r,t,n,r,e,i))})):Ga(e)&&e.forEach((function(r,o){a.set(o,Yn(r,t,n,o,e,i))}));var A=x?void 0:(p?u?qo:Ko:u?wl:_l)(e);return lt(A||e,(function(r,o){A&&(r=e[o=r]),Bn(a,o,Yn(r,t,n,o,e,i))})),a}function Xn(e,t,n){var r=n.length;if(null==e)return!r;for(e=ve(e);r--;){var o=n[r],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Jn(e,t,n){if("function"!=typeof e)throw new ye(i);return _i((function(){e.apply(void 0,n)}),t)}function Zn(e,t,n,r){var o=-1,i=ft,a=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=dt(t,It(n))),r?(i=pt,a=!1):t.length>=200&&(i=zt,a=!1,t=new An(t));e:for(;++o-1},Mn.prototype.set=function(e,t){var n=this.__data__,r=Vn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Nn.prototype.clear=function(){this.size=0,this.__data__={hash:new Rn,map:new(dn||Mn),string:new Rn}},Nn.prototype.delete=function(e){var t=Jo(this,e).delete(e);return this.size-=t?1:0,t},Nn.prototype.get=function(e){return Jo(this,e).get(e)},Nn.prototype.has=function(e){return Jo(this,e).has(e)},Nn.prototype.set=function(e,t){var n=Jo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},An.prototype.add=An.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},An.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.clear=function(){this.__data__=new Mn,this.size=0},Ln.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ln.prototype.get=function(e){return this.__data__.get(e)},Ln.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Mn){var r=n.__data__;if(!dn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nn(r)}return n.set(e,t),this.size=n.size,this};var er=xo(cr),tr=xo(ur,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function rr(e,t,n){for(var r=-1,o=e.length;++r0&&n(l)?t>1?ir(l,t-1,n,r,o):ht(o,l):r||(o[o.length]=l)}return o}var ar=So(),lr=So(!0);function cr(e,t){return e&&ar(e,t,_l)}function ur(e,t){return e&&lr(e,t,_l)}function sr(e,t){return st(t,(function(t){return Ha(e[t])}))}function fr(e,t){for(var n=0,r=(t=lo(t,e)).length;null!=e&&nt}function vr(e,t){return null!=e&&ke.call(e,t)}function gr(e,t){return null!=e&&t in ve(e)}function mr(e,t,n){for(var o=n?pt:ft,i=e[0].length,a=e.length,l=a,c=r(a),u=1/0,s=[];l--;){var f=e[l];l&&t&&(f=dt(f,It(t))),u=ln(f.length,u),c[l]=!n&&(t||i>=120&&f.length>=120)?new An(l&&f):void 0}f=e[0];var p=-1,d=c[0];e:for(;++p=l)return c;var u=n[r];return c*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)}))}function Rr(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)l!==e&&Qe.call(l,c,1),Qe.call(e,c,1);return e}function Nr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;li(o)?Qe.call(e,o,1):Zr(e,o)}}return e}function Ar(e,t){return e+Zt(sn()*(t-e+1))}function Lr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Zt(t/2))&&(e+=e)}while(t);return n}function Fr(e,t){return wi(vi(e,t,Kl),e+"")}function Dr(e){return Dn(Pl(e))}function Hr(e,t){var n=Pl(e);return ki(n,Qn(t,0,n.length))}function Ur(e,t,n,r){if(!Ba(e))return e;for(var o=-1,i=(t=lo(t,e)).length,a=i-1,l=e;null!=l&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o>>1,a=e[i];null!==a&&!Xa(a)&&(n?a<=t:a=200){var u=t?null:Fo(e);if(u)return Bt(u);a=!1,o=zt,c=new An}else c=t?[]:l;e:for(;++r=r?e:Gr(e,t,n)}var so=Qt||function(e){return qe.clearTimeout(e)};function fo(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function po(e){var t=new e.constructor(e.byteLength);return new Ae(t).set(new Ae(e)),t}function ho(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function vo(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=Xa(e),a=void 0!==t,l=null===t,c=t==t,u=Xa(t);if(!l&&!u&&!i&&e>t||i&&a&&c&&!l&&!u||r&&a&&c||!n&&c||!o)return 1;if(!r&&!i&&!u&&e1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&ci(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=ve(t);++r-1?o[i?t[a]:a]:void 0}}function Co(e){return Go((function(t){var n=t.length,r=n,o=jn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ye(i);if(o&&!l&&"wrapper"==Qo(a))var l=new jn([],!0)}for(r=l?r:n;++r1&&b.reverse(),f&&ul))return!1;var u=i.get(e),s=i.get(t);if(u&&s)return u==t&&s==e;var f=-1,p=!0,d=2&n?new An:void 0;for(i.set(e,t),i.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(X,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return lt(l,(function(n){var r="_."+n[0];t&n[1]&&!ft(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(J);return t?t[1].split(Z):[]}(r),n)))}function Si(e){var t=0,n=0;return function(){var r=cn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ki(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,$i(e,n)}));function ta(e){var t=Cn(e);return t.__chain__=!0,t}function na(e,t){return t(e)}var ra=Go((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return $n(t,e)};return!(t>1||this.__actions__.length)&&r instanceof zn&&li(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:na,args:[o],thisArg:void 0}),new jn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var oa=_o((function(e,t,n){ke.call(e,n)?++e[n]:qn(e,n,1)}));var ia=To(zi),aa=To(Ri);function la(e,t){return(Ra(e)?lt:er)(e,Xo(t,3))}function ca(e,t){return(Ra(e)?ct:tr)(e,Xo(t,3))}var ua=_o((function(e,t,n){ke.call(e,n)?e[n].push(t):qn(e,n,[t])}));var sa=Fr((function(e,t,n){var o=-1,i="function"==typeof t,a=Na(e)?r(e.length):[];return er(e,(function(e){a[++o]=i?it(t,e,n):yr(e,t,n)})),a})),fa=_o((function(e,t,n){qn(e,n,t)}));function pa(e,t){return(Ra(e)?dt:Tr)(e,Xo(t,3))}var da=_o((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ha=Fr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ci(e,t[0],t[1])?t=[]:n>2&&ci(t[0],t[1],t[2])&&(t=[t[0]]),zr(e,ir(t,1),[])})),va=Yt||function(){return qe.Date.now()};function ga(e,t,n){return t=n?void 0:t,Ho(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ma(e,t){var n;if("function"!=typeof t)throw new ye(i);return e=rl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ya=Fr((function(e,t,n){var r=1;if(n.length){var o=Wt(n,Yo(ya));r|=32}return Ho(e,r,t,n,o)})),ba=Fr((function(e,t,n){var r=3;if(n.length){var o=Wt(n,Yo(ba));r|=32}return Ho(t,r,e,n,o)}));function _a(e,t,n){var r,o,a,l,c,u,s=0,f=!1,p=!1,d=!0;if("function"!=typeof e)throw new ye(i);function h(t){var n=r,i=o;return r=o=void 0,s=t,l=e.apply(i,n)}function v(e){return s=e,c=_i(m,t),f?h(e):l}function g(e){var n=e-u;return void 0===u||n>=t||n<0||p&&e-s>=a}function m(){var e=va();if(g(e))return y(e);c=_i(m,function(e){var n=t-(e-u);return p?ln(n,a-(e-s)):n}(e))}function y(e){return c=void 0,d&&r?h(e):(r=o=void 0,l)}function b(){var e=va(),n=g(e);if(r=arguments,o=this,u=e,n){if(void 0===c)return v(u);if(p)return so(c),c=_i(m,t),h(u)}return void 0===c&&(c=_i(m,t)),l}return t=il(t)||0,Ba(n)&&(f=!!n.leading,a=(p="maxWait"in n)?an(il(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==c&&so(c),s=0,r=u=o=c=void 0},b.flush=function(){return void 0===c?l:y(va())},b}var wa=Fr((function(e,t){return Jn(e,1,t)})),xa=Fr((function(e,t,n){return Jn(e,il(t)||0,n)}));function Sa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ye(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Sa.Cache||Nn),n}function ka(e){if("function"!=typeof e)throw new ye(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Sa.Cache=Nn;var Oa=co((function(e,t){var n=(t=1==t.length&&Ra(t[0])?dt(t[0],It(Xo())):dt(ir(t,1),It(Xo()))).length;return Fr((function(r){for(var o=-1,i=ln(r.length,n);++o=t})),za=br(function(){return arguments}())?br:function(e){return Va(e)&&ke.call(e,"callee")&&!$e.call(e,"callee")},Ra=r.isArray,Ma=Ze?It(Ze):function(e){return Va(e)&&dr(e)==S};function Na(e){return null!=e&&Wa(e.length)&&!Ha(e)}function Aa(e){return Va(e)&&Na(e)}var La=tn||ic,Fa=et?It(et):function(e){return Va(e)&&dr(e)==f};function Da(e){if(!Va(e))return!1;var t=dr(e);return t==p||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!qa(e)}function Ha(e){if(!Ba(e))return!1;var t=dr(e);return t==d||t==h||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ua(e){return"number"==typeof e&&e==rl(e)}function Wa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ba(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Va(e){return null!=e&&"object"==typeof e}var Ga=tt?It(tt):function(e){return Va(e)&&ri(e)==v};function Ka(e){return"number"==typeof e||Va(e)&&dr(e)==g}function qa(e){if(!Va(e)||dr(e)!=m)return!1;var t=Ge(e);if(null===t)return!0;var n=ke.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Se.call(n)==Ce}var $a=nt?It(nt):function(e){return Va(e)&&dr(e)==y};var Qa=rt?It(rt):function(e){return Va(e)&&ri(e)==b};function Ya(e){return"string"==typeof e||!Ra(e)&&Va(e)&&dr(e)==_}function Xa(e){return"symbol"==typeof e||Va(e)&&dr(e)==w}var Ja=ot?It(ot):function(e){return Va(e)&&Wa(e.length)&&!!He[dr(e)]};var Za=No(Er),el=No((function(e,t){return e<=t}));function tl(e){if(!e)return[];if(Na(e))return Ya(e)?Kt(e):yo(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=ri(e);return(t==v?Ht:t==b?Bt:Pl)(e)}function nl(e){return e?(e=il(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function rl(e){var t=nl(e),n=t%1;return t==t?n?t-n:t:0}function ol(e){return e?Qn(rl(e),0,4294967295):0}function il(e){if("number"==typeof e)return e;if(Xa(e))return NaN;if(Ba(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ba(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace($,"");var n=ie.test(e);return n||le.test(e)?Ve(e.slice(2),n?2:8):oe.test(e)?NaN:+e}function al(e){return bo(e,wl(e))}function ll(e){return null==e?"":Xr(e)}var cl=wo((function(e,t){if(pi(t)||Na(t))bo(t,_l(t),e);else for(var n in t)ke.call(t,n)&&Bn(e,n,t[n])})),ul=wo((function(e,t){bo(t,wl(t),e)})),sl=wo((function(e,t,n,r){bo(t,wl(t),e,r)})),fl=wo((function(e,t,n,r){bo(t,_l(t),e,r)})),pl=Go($n);var dl=Fr((function(e,t){e=ve(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&ci(t[0],t[1],o)&&(r=1);++n1),t})),bo(e,qo(e),n),r&&(n=Yn(n,7,Bo));for(var o=t.length;o--;)Zr(n,t[o]);return n}));var Ol=Go((function(e,t){return null==e?{}:function(e,t){return Rr(e,t,(function(t,n){return gl(e,n)}))}(e,t)}));function El(e,t){if(null==e)return{};var n=dt(qo(e),(function(e){return[e]}));return t=Xo(t),Rr(e,n,(function(e,n){return t(e,n[0])}))}var Tl=Do(_l),Cl=Do(wl);function Pl(e){return null==e?[]:jt(e,_l(e))}var Il=Oo((function(e,t,n){return t=t.toLowerCase(),e+(n?jl(t):t)}));function jl(e){return Dl(ll(e).toLowerCase())}function zl(e){return(e=ll(e))&&e.replace(ue,At).replace(Re,"")}var Rl=Oo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ml=Oo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Nl=ko("toLowerCase");var Al=Oo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ll=Oo((function(e,t,n){return e+(n?" ":"")+Dl(t)}));var Fl=Oo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Dl=ko("toUpperCase");function Hl(e,t,n){return e=ll(e),void 0===(t=n?void 0:t)?function(e){return Le.test(e)}(e)?function(e){return e.match(Ne)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Ul=Fr((function(e,t){try{return it(e,void 0,t)}catch(e){return Da(e)?e:new pe(e)}})),Wl=Go((function(e,t){return lt(t,(function(t){t=Ei(t),qn(e,t,ya(e[t],e))})),e}));function Bl(e){return function(){return e}}var Vl=Co(),Gl=Co(!0);function Kl(e){return e}function ql(e){return Sr("function"==typeof e?e:Yn(e,1))}var $l=Fr((function(e,t){return function(n){return yr(n,e,t)}})),Ql=Fr((function(e,t){return function(n){return yr(e,n,t)}}));function Yl(e,t,n){var r=_l(t),o=sr(t,r);null!=n||Ba(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=sr(t,_l(t)));var i=!(Ba(n)&&"chain"in n&&!n.chain),a=Ha(e);return lt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=yo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,ht([this.value()],arguments))})})),e}function Xl(){}var Jl=zo(dt),Zl=zo(ut),ec=zo(mt);function tc(e){return ui(e)?Ot(Ei(e)):function(e){return function(t){return fr(t,e)}}(e)}var nc=Mo(),rc=Mo(!0);function oc(){return[]}function ic(){return!1}var ac=jo((function(e,t){return e+t}),0),lc=Lo("ceil"),cc=jo((function(e,t){return e/t}),1),uc=Lo("floor");var sc,fc=jo((function(e,t){return e*t}),1),pc=Lo("round"),dc=jo((function(e,t){return e-t}),0);return Cn.after=function(e,t){if("function"!=typeof t)throw new ye(i);return e=rl(e),function(){if(--e<1)return t.apply(this,arguments)}},Cn.ary=ga,Cn.assign=cl,Cn.assignIn=ul,Cn.assignInWith=sl,Cn.assignWith=fl,Cn.at=pl,Cn.before=ma,Cn.bind=ya,Cn.bindAll=Wl,Cn.bindKey=ba,Cn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ra(e)?e:[e]},Cn.chain=ta,Cn.chunk=function(e,t,n){t=(n?ci(e,t,n):void 0===t)?1:an(rl(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,l=r(Jt(o/t));io?0:o+n),(r=void 0===r||r>o?o:rl(r))<0&&(r+=o),r=n>r?0:ol(r);n>>0)?(e=ll(e))&&("string"==typeof t||null!=t&&!$a(t))&&!(t=Xr(t))&&Dt(e)?uo(Kt(e),0,n):e.split(t,n):[]},Cn.spread=function(e,t){if("function"!=typeof e)throw new ye(i);return t=null==t?0:an(rl(t),0),Fr((function(n){var r=n[t],o=uo(n,0,t);return r&&ht(o,r),it(e,this,o)}))},Cn.tail=function(e){var t=null==e?0:e.length;return t?Gr(e,1,t):[]},Cn.take=function(e,t,n){return e&&e.length?Gr(e,0,(t=n||void 0===t?1:rl(t))<0?0:t):[]},Cn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Gr(e,(t=r-(t=n||void 0===t?1:rl(t)))<0?0:t,r):[]},Cn.takeRightWhile=function(e,t){return e&&e.length?to(e,Xo(t,3),!1,!0):[]},Cn.takeWhile=function(e,t){return e&&e.length?to(e,Xo(t,3)):[]},Cn.tap=function(e,t){return t(e),e},Cn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ye(i);return Ba(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),_a(e,t,{leading:r,maxWait:t,trailing:o})},Cn.thru=na,Cn.toArray=tl,Cn.toPairs=Tl,Cn.toPairsIn=Cl,Cn.toPath=function(e){return Ra(e)?dt(e,Ei):Xa(e)?[e]:yo(Oi(ll(e)))},Cn.toPlainObject=al,Cn.transform=function(e,t,n){var r=Ra(e),o=r||La(e)||Ja(e);if(t=Xo(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Ba(e)&&Ha(i)?Pn(Ge(e)):{}}return(o?lt:cr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Cn.unary=function(e){return ga(e,1)},Cn.union=Vi,Cn.unionBy=Gi,Cn.unionWith=Ki,Cn.uniq=function(e){return e&&e.length?Jr(e):[]},Cn.uniqBy=function(e,t){return e&&e.length?Jr(e,Xo(t,2)):[]},Cn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Jr(e,void 0,t):[]},Cn.unset=function(e,t){return null==e||Zr(e,t)},Cn.unzip=qi,Cn.unzipWith=$i,Cn.update=function(e,t,n){return null==e?e:eo(e,t,ao(n))},Cn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:eo(e,t,ao(n),r)},Cn.values=Pl,Cn.valuesIn=function(e){return null==e?[]:jt(e,wl(e))},Cn.without=Qi,Cn.words=Hl,Cn.wrap=function(e,t){return Ea(ao(t),e)},Cn.xor=Yi,Cn.xorBy=Xi,Cn.xorWith=Ji,Cn.zip=Zi,Cn.zipObject=function(e,t){return oo(e||[],t||[],Bn)},Cn.zipObjectDeep=function(e,t){return oo(e||[],t||[],Ur)},Cn.zipWith=ea,Cn.entries=Tl,Cn.entriesIn=Cl,Cn.extend=ul,Cn.extendWith=sl,Yl(Cn,Cn),Cn.add=ac,Cn.attempt=Ul,Cn.camelCase=Il,Cn.capitalize=jl,Cn.ceil=lc,Cn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=il(n))==n?n:0),void 0!==t&&(t=(t=il(t))==t?t:0),Qn(il(e),t,n)},Cn.clone=function(e){return Yn(e,4)},Cn.cloneDeep=function(e){return Yn(e,5)},Cn.cloneDeepWith=function(e,t){return Yn(e,5,t="function"==typeof t?t:void 0)},Cn.cloneWith=function(e,t){return Yn(e,4,t="function"==typeof t?t:void 0)},Cn.conformsTo=function(e,t){return null==t||Xn(e,t,_l(t))},Cn.deburr=zl,Cn.defaultTo=function(e,t){return null==e||e!=e?t:e},Cn.divide=cc,Cn.endsWith=function(e,t,n){e=ll(e),t=Xr(t);var r=e.length,o=n=void 0===n?r:Qn(rl(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Cn.eq=Pa,Cn.escape=function(e){return(e=ll(e))&&D.test(e)?e.replace(L,Lt):e},Cn.escapeRegExp=function(e){return(e=ll(e))&&q.test(e)?e.replace(K,"\\$&"):e},Cn.every=function(e,t,n){var r=Ra(e)?ut:nr;return n&&ci(e,t,n)&&(t=void 0),r(e,Xo(t,3))},Cn.find=ia,Cn.findIndex=zi,Cn.findKey=function(e,t){return bt(e,Xo(t,3),cr)},Cn.findLast=aa,Cn.findLastIndex=Ri,Cn.findLastKey=function(e,t){return bt(e,Xo(t,3),ur)},Cn.floor=uc,Cn.forEach=la,Cn.forEachRight=ca,Cn.forIn=function(e,t){return null==e?e:ar(e,Xo(t,3),wl)},Cn.forInRight=function(e,t){return null==e?e:lr(e,Xo(t,3),wl)},Cn.forOwn=function(e,t){return e&&cr(e,Xo(t,3))},Cn.forOwnRight=function(e,t){return e&&ur(e,Xo(t,3))},Cn.get=vl,Cn.gt=Ia,Cn.gte=ja,Cn.has=function(e,t){return null!=e&&oi(e,t,vr)},Cn.hasIn=gl,Cn.head=Ni,Cn.identity=Kl,Cn.includes=function(e,t,n,r){e=Na(e)?e:Pl(e),n=n&&!r?rl(n):0;var o=e.length;return n<0&&(n=an(o+n,0)),Ya(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&wt(e,t,n)>-1},Cn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:rl(n);return o<0&&(o=an(r+o,0)),wt(e,t,o)},Cn.inRange=function(e,t,n){return t=nl(t),void 0===n?(n=t,t=0):n=nl(n),function(e,t,n){return e>=ln(t,n)&&e=-9007199254740991&&e<=9007199254740991},Cn.isSet=Qa,Cn.isString=Ya,Cn.isSymbol=Xa,Cn.isTypedArray=Ja,Cn.isUndefined=function(e){return void 0===e},Cn.isWeakMap=function(e){return Va(e)&&ri(e)==x},Cn.isWeakSet=function(e){return Va(e)&&"[object WeakSet]"==dr(e)},Cn.join=function(e,t){return null==e?"":rn.call(e,t)},Cn.kebabCase=Rl,Cn.last=Di,Cn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=rl(n))<0?an(r+o,0):ln(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):_t(e,St,o,!0)},Cn.lowerCase=Ml,Cn.lowerFirst=Nl,Cn.lt=Za,Cn.lte=el,Cn.max=function(e){return e&&e.length?rr(e,Kl,hr):void 0},Cn.maxBy=function(e,t){return e&&e.length?rr(e,Xo(t,2),hr):void 0},Cn.mean=function(e){return kt(e,Kl)},Cn.meanBy=function(e,t){return kt(e,Xo(t,2))},Cn.min=function(e){return e&&e.length?rr(e,Kl,Er):void 0},Cn.minBy=function(e,t){return e&&e.length?rr(e,Xo(t,2),Er):void 0},Cn.stubArray=oc,Cn.stubFalse=ic,Cn.stubObject=function(){return{}},Cn.stubString=function(){return""},Cn.stubTrue=function(){return!0},Cn.multiply=fc,Cn.nth=function(e,t){return e&&e.length?jr(e,rl(t)):void 0},Cn.noConflict=function(){return qe._===this&&(qe._=Pe),this},Cn.noop=Xl,Cn.now=va,Cn.pad=function(e,t,n){e=ll(e);var r=(t=rl(t))?Gt(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ro(Zt(o),n)+e+Ro(Jt(o),n)},Cn.padEnd=function(e,t,n){e=ll(e);var r=(t=rl(t))?Gt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=sn();return ln(e+o*(t-e+Be("1e-"+((o+"").length-1))),t)}return Ar(e,t)},Cn.reduce=function(e,t,n){var r=Ra(e)?vt:Tt,o=arguments.length<3;return r(e,Xo(t,4),n,o,er)},Cn.reduceRight=function(e,t,n){var r=Ra(e)?gt:Tt,o=arguments.length<3;return r(e,Xo(t,4),n,o,tr)},Cn.repeat=function(e,t,n){return t=(n?ci(e,t,n):void 0===t)?1:rl(t),Lr(ll(e),t)},Cn.replace=function(){var e=arguments,t=ll(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Cn.result=function(e,t,n){var r=-1,o=(t=lo(t,e)).length;for(o||(o=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=ln(e,4294967295);e-=4294967295;for(var o=Pt(r,t=Xo(t));++n=i)return e;var l=n-Gt(r);if(l<1)return r;var c=a?uo(a,0,l).join(""):e.slice(0,l);if(void 0===o)return c+r;if(a&&(l+=c.length-l),$a(o)){if(e.slice(l).search(o)){var u,s=c;for(o.global||(o=ge(o.source,ll(re.exec(o))+"g")),o.lastIndex=0;u=o.exec(s);)var f=u.index;c=c.slice(0,void 0===f?l:f)}}else if(e.indexOf(Xr(o),l)!=l){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r},Cn.unescape=function(e){return(e=ll(e))&&F.test(e)?e.replace(A,qt):e},Cn.uniqueId=function(e){var t=++Oe;return ll(e)+t},Cn.upperCase=Fl,Cn.upperFirst=Dl,Cn.each=la,Cn.eachRight=ca,Cn.first=Ni,Yl(Cn,(sc={},cr(Cn,(function(e,t){ke.call(Cn.prototype,t)||(sc[t]=e)})),sc),{chain:!1}),Cn.VERSION="4.17.19",lt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Cn[e].placeholder=Cn})),lt(["drop","take"],(function(e,t){zn.prototype[e]=function(n){n=void 0===n?1:an(rl(n),0);var r=this.__filtered__&&!t?new zn(this):this.clone();return r.__filtered__?r.__takeCount__=ln(n,r.__takeCount__):r.__views__.push({size:ln(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},zn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),lt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;zn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Xo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),lt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");zn.prototype[e]=function(){return this[n](1).value()[0]}})),lt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");zn.prototype[e]=function(){return this.__filtered__?new zn(this):this[n](1)}})),zn.prototype.compact=function(){return this.filter(Kl)},zn.prototype.find=function(e){return this.filter(e).head()},zn.prototype.findLast=function(e){return this.reverse().find(e)},zn.prototype.invokeMap=Fr((function(e,t){return"function"==typeof e?new zn(this):this.map((function(n){return yr(n,e,t)}))})),zn.prototype.reject=function(e){return this.filter(ka(Xo(e)))},zn.prototype.slice=function(e,t){e=rl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new zn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=rl(t))<0?n.dropRight(-t):n.take(t-e)),n)},zn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},zn.prototype.toArray=function(){return this.take(4294967295)},cr(zn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Cn[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(Cn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,l=t instanceof zn,c=a[0],u=l||Ra(t),s=function(e){var t=o.apply(Cn,ht([e],a));return r&&f?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var f=this.__chain__,p=!!this.__actions__.length,d=i&&!f,h=l&&!p;if(!i&&u){t=h?t:new zn(this);var v=e.apply(t,a);return v.__actions__.push({func:na,args:[s],thisArg:void 0}),new jn(v,f)}return d&&h?e.apply(this,a):(v=this.thru(s),d?r?v.value()[0]:v.value():v)})})),lt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=be[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Cn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ra(o)?o:[],e)}return this[n]((function(n){return t.apply(Ra(n)?n:[],e)}))}})),cr(zn.prototype,(function(e,t){var n=Cn[t];if(n){var r=n.name+"";ke.call(bn,r)||(bn[r]=[]),bn[r].push({name:t,func:n})}})),bn[Po(void 0,2).name]=[{name:"wrapper",func:void 0}],zn.prototype.clone=function(){var e=new zn(this.__wrapped__);return e.__actions__=yo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=yo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=yo(this.__views__),e},zn.prototype.reverse=function(){if(this.__filtered__){var e=new zn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},zn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ra(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Cn.prototype.plant=function(e){for(var t,n=this;n instanceof In;){var r=Ci(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Cn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof zn){var t=e;return this.__actions__.length&&(t=new zn(this)),(t=t.reverse()).__actions__.push({func:na,args:[Bi],thisArg:void 0}),new jn(t,this.__chain__)}return this.thru(Bi)},Cn.prototype.toJSON=Cn.prototype.valueOf=Cn.prototype.value=function(){return no(this.__wrapped__,this.__actions__)},Cn.prototype.first=Cn.prototype.head,Je&&(Cn.prototype[Je]=function(){return this}),Cn}();qe._=$t,void 0===(o=function(){return $t}.call(t,n,t,r))||(r.exports=o)}).call(this)}).call(this,n(108),n(243)(e))},function(e,t,n){var r=n(26),o=n(335);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){var r=n(26),o=n(376);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},function(e,t,n){var r=n(173),o=n(132);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(31);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,n){"use strict";var r=n(27),o=n(54),i=n(53),a=n(113),l=n(138),c=n(139),u=Math.max,s=Math.min,f=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g;n(140)("replace",2,(function(e,t,n,h){return[function(r,o){var i=e(this),a=null==r?void 0:r[t];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(e,t){var o=h(n,e,this,t);if(o.done)return o.value;var f=r(e),p=String(this),d="function"==typeof t;d||(t=String(t));var g=f.global;if(g){var m=f.unicode;f.lastIndex=0}for(var y=[];;){var b=c(f,p);if(null===b)break;if(y.push(b),!g)break;""===String(b[0])&&(f.lastIndex=l(p,i(f.lastIndex),m))}for(var _,w="",x=0,S=0;S=x&&(w+=p.slice(x,O)+I,x=O+k.length)}return w+p.slice(x)}];function v(e,t,r,i,a,l){var c=r+e.length,u=i.length,s=d;return void 0!==a&&(a=o(a),s=p),n.call(l,s,(function(n,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(c);case"<":l=a[o.slice(1,-1)];break;default:var s=+o;if(0===s)return n;if(s>u){var p=f(s/10);return 0===p?n:p<=u?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):n}l=i[s-1]}return void 0===l?"":l}))}}))},function(e,t,n){var r=n(63),o=n(121);e.exports=n(57)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(202),o=n(148);e.exports=function(e){return r(o(e))}},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(108))},function(e,t,n){var r=n(10);r(r.S+r.F*!n(30),"Object",{defineProperties:n(172)})},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(81);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(10),o=n(249),i=n(60),a=n(94),l=n(174);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),c=a.f,u=o(r),s={},f=0;u.length>f;)void 0!==(n=c(r,t=u[f++]))&&l(s,t,n);return s}})},function(e,t,n){var r=n(27),o=n(172),i=n(132),a=n(131)("IE_PROTO"),l=function(){},c=function(){var e,t=n(171)("iframe"),r=i.length;for(t.style.display="none",n(251).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(" + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

okio-assetfilesystem

+
+

Packages

+
+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio-assetfilesystem/navigation.html b/3.x/okio-assetfilesystem/navigation.html new file mode 100644 index 0000000000..29c8a08cdf --- /dev/null +++ b/3.x/okio-assetfilesystem/navigation.html @@ -0,0 +1,10 @@ + + diff --git a/3.x/okio-assetfilesystem/okio-assetfilesystem/okio.assetfilesystem/as-file-system.html b/3.x/okio-assetfilesystem/okio-assetfilesystem/okio.assetfilesystem/as-file-system.html new file mode 100644 index 0000000000..a5d2a7d38f --- /dev/null +++ b/3.x/okio-assetfilesystem/okio-assetfilesystem/okio.assetfilesystem/as-file-system.html @@ -0,0 +1,82 @@ + + + + + asFileSystem + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

asFileSystem

+
+
fun AssetManager.asFileSystem(): FileSystem

Expose this AssetManager as an Okio FileSystem.

Note: Assets are a read-only view on a file system and so any attempt to mutate will throw an IOException.

+
+ +
+
+
+ + diff --git a/3.x/okio-assetfilesystem/okio-assetfilesystem/okio.assetfilesystem/index.html b/3.x/okio-assetfilesystem/okio-assetfilesystem/okio.assetfilesystem/index.html new file mode 100644 index 0000000000..c003f92f3c --- /dev/null +++ b/3.x/okio-assetfilesystem/okio-assetfilesystem/okio.assetfilesystem/index.html @@ -0,0 +1,105 @@ + + + + + okio.assetfilesystem + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Package-level declarations

+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun AssetManager.asFileSystem(): FileSystem

Expose this AssetManager as an Okio FileSystem.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio-assetfilesystem/okio-assetfilesystem/package-list b/3.x/okio-assetfilesystem/okio-assetfilesystem/package-list new file mode 100644 index 0000000000..4d7ee3da87 --- /dev/null +++ b/3.x/okio-assetfilesystem/okio-assetfilesystem/package-list @@ -0,0 +1,6 @@ +$dokka.format:html-v1 +$dokka.linkExtension:html +$dokka.location:okio.assetfilesystem////PointingToDeclaration/okio-assetfilesystem/okio.assetfilesystem/index.html +$dokka.location:okio.assetfilesystem//asFileSystem/android.content.res.AssetManager#/PointingToDeclaration/okio-assetfilesystem/okio.assetfilesystem/as-file-system.html +okio.assetfilesystem + diff --git a/3.x/okio-assetfilesystem/scripts/clipboard.js b/3.x/okio-assetfilesystem/scripts/clipboard.js new file mode 100644 index 0000000000..7a4f33c598 --- /dev/null +++ b/3.x/okio-assetfilesystem/scripts/clipboard.js @@ -0,0 +1,56 @@ +/* + * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + */ + +window.addEventListener('load', () => { + document.querySelectorAll('span.copy-icon').forEach(element => { + element.addEventListener('click', (el) => copyElementsContentToClipboard(element)); + }) + + document.querySelectorAll('span.anchor-icon').forEach(element => { + element.addEventListener('click', (el) => { + if(element.hasAttribute('pointing-to')){ + const location = hrefWithoutCurrentlyUsedAnchor() + '#' + element.getAttribute('pointing-to') + copyTextToClipboard(element, location) + } + }); + }) +}) + +const copyElementsContentToClipboard = (element) => { + const selection = window.getSelection(); + const range = document.createRange(); + range.selectNodeContents(element.parentNode.parentNode); + selection.removeAllRanges(); + selection.addRange(range); + + copyAndShowPopup(element, () => selection.removeAllRanges()) +} + +const copyTextToClipboard = (element, text) => { + var textarea = document.createElement("textarea"); + textarea.textContent = text; + textarea.style.position = "fixed"; + document.body.appendChild(textarea); + textarea.select(); + + copyAndShowPopup(element, () => document.body.removeChild(textarea)) +} + +const copyAndShowPopup = (element, after) => { + try { + document.execCommand('copy'); + element.nextElementSibling.classList.add('active-popup'); + setTimeout(() => { + element.nextElementSibling.classList.remove('active-popup'); + }, 1200); + } catch (e) { + console.error('Failed to write to clipboard:', e) + } + finally { + if(after) after() + } +} + +const hrefWithoutCurrentlyUsedAnchor = () => window.location.href.split('#')[0] + diff --git a/3.x/okio-assetfilesystem/scripts/main.js b/3.x/okio-assetfilesystem/scripts/main.js new file mode 100644 index 0000000000..ba6c347392 --- /dev/null +++ b/3.x/okio-assetfilesystem/scripts/main.js @@ -0,0 +1,44 @@ +(()=>{var e={8527:e=>{e.exports=''},5570:e=>{e.exports=''},107:e=>{e.exports=''},7224:e=>{e.exports=''},538:e=>{e.exports=''},1924:(e,n,t)=>{"use strict";var r=t(210),o=t(5559),i=o(r("String.prototype.indexOf"));e.exports=function(e,n){var t=r(e,!!n);return"function"==typeof t&&i(e,".prototype.")>-1?o(t):t}},5559:(e,n,t)=>{"use strict";var r=t(8612),o=t(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),l=o("%Reflect.apply%",!0)||r.call(a,i),c=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),s=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var n=l(r,a,arguments);if(c&&u){var t=c(n,"length");t.configurable&&u(n,"length",{value:1+s(0,e.length-(arguments.length-1))})}return n};var f=function(){return l(r,i,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},4184:(e,n)=>{var t; +/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],n=0;n{"use strict";e.exports=function(e,n){var t=this,r=t.constructor;return t.options=Object.assign({storeInstancesGlobally:!0},n||{}),t.callbacks={},t.directMap={},t.sequenceLevels={},t.resetTimer=null,t.ignoreNextKeyup=!1,t.ignoreNextKeypress=!1,t.nextExpectedAction=!1,t.element=e,t.addEvents(),t.options.storeInstancesGlobally&&r.instances.push(t),t},e.exports.prototype.bind=t(2207),e.exports.prototype.bindMultiple=t(3396),e.exports.prototype.unbind=t(9208),e.exports.prototype.trigger=t(9855),e.exports.prototype.reset=t(6214),e.exports.prototype.stopCallback=t(3450),e.exports.prototype.handleKey=t(3067),e.exports.prototype.addEvents=t(718),e.exports.prototype.bindSingle=t(8763),e.exports.prototype.getKeyInfo=t(5825),e.exports.prototype.pickBestAction=t(8608),e.exports.prototype.getReverseMap=t(3956),e.exports.prototype.getMatches=t(3373),e.exports.prototype.resetSequences=t(3346),e.exports.prototype.fireCallback=t(2684),e.exports.prototype.bindSequence=t(7103),e.exports.prototype.resetSequenceTimer=t(7309),e.exports.prototype.detach=t(7554),e.exports.instances=[],e.exports.reset=t(1822),e.exports.REVERSE_MAP=null},718:(e,n,t)=>{"use strict";e.exports=function(){var e=this,n=t(4323),r=e.element;e.eventHandler=t(9646).bind(e),n(r,"keypress",e.eventHandler),n(r,"keydown",e.eventHandler),n(r,"keyup",e.eventHandler)}},2207:e=>{"use strict";e.exports=function(e,n,t){return e=e instanceof Array?e:[e],this.bindMultiple(e,n,t),this}},3396:e=>{"use strict";e.exports=function(e,n,t){for(var r=0;r{"use strict";e.exports=function(e,n,r,o){var i=this;function a(n){return function(){i.nextExpectedAction=n,++i.sequenceLevels[e],i.resetSequenceTimer()}}function l(n){var a;i.fireCallback(r,n,e),"keyup"!==o&&(a=t(6770),i.ignoreNextKeyup=a(n)),setTimeout((function(){i.resetSequences()}),10)}i.sequenceLevels[e]=0;for(var c=0;c{"use strict";e.exports=function(e,n,t,r,o){var i=this;i.directMap[e+":"+t]=n;var a,l=(e=e.replace(/\s+/g," ")).split(" ");l.length>1?i.bindSequence(e,l,n,t):(a=i.getKeyInfo(e,t),i.callbacks[a.key]=i.callbacks[a.key]||[],i.getMatches(a.key,a.modifiers,{type:a.action},r,e,o),i.callbacks[a.key][r?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:r,level:o,combo:e}))}},7554:(e,n,t)=>{var r=t(4323).off;e.exports=function(){var e=this,n=e.element;r(n,"keypress",e.eventHandler),r(n,"keydown",e.eventHandler),r(n,"keyup",e.eventHandler)}},4323:e=>{function n(e,n,t,r){return!e.addEventListener&&(n="on"+n),(e.addEventListener||e.attachEvent).call(e,n,t,r),t}e.exports=n,e.exports.on=n,e.exports.off=function(e,n,t,r){return!e.removeEventListener&&(n="on"+n),(e.removeEventListener||e.detachEvent).call(e,n,t,r),t}},2684:(e,n,t)=>{"use strict";e.exports=function(e,n,r,o){this.stopCallback(n,n.target||n.srcElement,r,o)||!1===e(n,r)&&(t(1350)(n),t(6103)(n))}},5825:(e,n,t)=>{"use strict";e.exports=function(e,n){var r,o,i,a,l,c,u=[];for(r=t(4520)(e),a=t(7549),l=t(5355),c=t(8581),i=0;i{"use strict";e.exports=function(e,n,r,o,i,a){var l,c,u,s,f=this,p=[],d=r.type;"keypress"!==d||r.code&&"Arrow"===r.code.slice(0,5)||(f.callbacks["any-character"]||[]).forEach((function(e){p.push(e)}));if(!f.callbacks[e])return p;for(u=t(8581),"keyup"===d&&u(e)&&(n=[e]),l=0;l{"use strict";e.exports=function(){var e,n=this.constructor;if(!n.REVERSE_MAP)for(var r in n.REVERSE_MAP={},e=t(4766))r>95&&r<112||e.hasOwnProperty(r)&&(n.REVERSE_MAP[e[r]]=r);return n.REVERSE_MAP}},3067:(e,n,t)=>{"use strict";e.exports=function(e,n,r){var o,i,a,l,c=this,u={},s=0,f=!1;for(o=c.getMatches(e,n,r),i=0;i{"use strict";e.exports=function(e){var n,r=this;"number"!=typeof e.which&&(e.which=e.keyCode);var o=t(6770)(e);void 0!==o&&("keyup"!==e.type||r.ignoreNextKeyup!==o?(n=t(4610),r.handleKey(o,n(e),e)):r.ignoreNextKeyup=!1)}},5532:e=>{"use strict";e.exports=function(e,n){return e.sort().join(",")===n.sort().join(",")}},8608:e=>{"use strict";e.exports=function(e,n,t){return t||(t=this.getReverseMap()[e]?"keydown":"keypress"),"keypress"===t&&n.length&&(t="keydown"),t}},6214:e=>{"use strict";e.exports=function(){return this.callbacks={},this.directMap={},this}},7309:e=>{"use strict";e.exports=function(){var e=this;clearTimeout(e.resetTimer),e.resetTimer=setTimeout((function(){e.resetSequences()}),1e3)}},3346:e=>{"use strict";e.exports=function(e){var n=this;e=e||{};var t,r=!1;for(t in n.sequenceLevels)e[t]?r=!0:n.sequenceLevels[t]=0;r||(n.nextExpectedAction=!1)}},3450:e=>{"use strict";e.exports=function(e,n){if((" "+n.className+" ").indexOf(" combokeys ")>-1)return!1;var t=n.tagName.toLowerCase();return"input"===t||"select"===t||"textarea"===t||n.isContentEditable}},9855:e=>{"use strict";e.exports=function(e,n){return this.directMap[e+":"+n]&&this.directMap[e+":"+n]({},e),this}},9208:e=>{"use strict";e.exports=function(e,n){return this.bind(e,(function(){}),n)}},1822:e=>{"use strict";e.exports=function(){this.instances.forEach((function(e){e.reset()}))}},6770:(e,n,t)=>{"use strict";e.exports=function(e){var n,r;if(n=t(4766),r=t(5295),"keypress"===e.type){var o=String.fromCharCode(e.which);return e.shiftKey||(o=o.toLowerCase()),o}return void 0!==n[e.which]?n[e.which]:void 0!==r[e.which]?r[e.which]:String.fromCharCode(e.which).toLowerCase()}},4610:e=>{"use strict";e.exports=function(e){var n=[];return e.shiftKey&&n.push("shift"),e.altKey&&n.push("alt"),e.ctrlKey&&n.push("ctrl"),e.metaKey&&n.push("meta"),n}},8581:e=>{"use strict";e.exports=function(e){return"shift"===e||"ctrl"===e||"alt"===e||"meta"===e}},4520:e=>{"use strict";e.exports=function(e){return"+"===e?["+"]:e.split("+")}},1350:e=>{"use strict";e.exports=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}},5355:e=>{"use strict";e.exports={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"}},7549:e=>{"use strict";e.exports={option:"alt",command:"meta",return:"enter",escape:"esc",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"}},5295:e=>{"use strict";e.exports={106:"*",107:"plus",109:"minus",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}},4766:e=>{"use strict";e.exports={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",173:"minus",187:"plus",189:"minus",224:"meta"};for(var n=1;n<20;++n)e.exports[111+n]="f"+n;for(n=0;n<=9;++n)e.exports[n+96]=n},6103:e=>{"use strict";e.exports=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}},3362:()=>{var e;!function(){var e=Math.PI,n=2*e,t=e/180,r=document.createElement("div");document.head.appendChild(r);var o=self.ConicGradient=function(e){o.all.push(this),e=e||{},this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.repeating=!!e.repeating,this.size=e.size||Math.max(innerWidth,innerHeight),this.canvas.width=this.canvas.height=this.size;var n=e.stops;this.stops=(n||"").split(/\s*,(?![^(]*\))\s*/),this.from=0;for(var t=0;t0){var i=this.stops[0].clone();i.pos=0,this.stops.unshift(i)}if(void 0===this.stops[this.stops.length-1].pos)this.stops[this.stops.length-1].pos=1;else if(!this.repeating&&this.stops[this.stops.length-1].pos<1){var a=this.stops[this.stops.length-1].clone();a.pos=1,this.stops.push(a)}if(this.stops.forEach((function(e,n){if(void 0===e.pos){for(var t=n+1;this[t];t++)if(void 0!==this[t].pos){e.pos=this[n-1].pos+(this[t].pos-this[n-1].pos)/(t-n+1);break}}else n>0&&(e.pos=Math.max(e.pos,this[n-1].pos))}),this.stops),this.repeating){var l=(n=this.stops.slice())[n.length-1].pos-n[0].pos;for(t=0;this.stops[this.stops.length-1].pos<1&&t<1e4;t++)for(var c=0;c'},get png(){return this.canvas.toDataURL()},get r(){return Math.sqrt(2)*this.size/2},paint:function(){var e,n,r,o=this.context,i=this.r,a=this.size/2,l=0,c=this.stops[l];o.translate(this.size/2,this.size/2),o.rotate(-90*t),o.rotate(this.from*t),o.translate(-this.size/2,-this.size/2);for(var u=0;u<360;){if(u/360+1e-5>=c.pos){do{e=c,l++,c=this.stops[l]}while(c&&c!=e&&c.pos===e.pos);if(!c)break;var s=e.color+""==c.color+""&&e!=c;n=e.color.map((function(e,n){return c.color[n]-e}))}r=(u/360-e.pos)/(c.pos-e.pos);var f=s?c.color:n.map((function(n,t){var o=n*r+e.color[t];return t<3?255&o:o}));if(o.fillStyle="rgba("+f.join(",")+")",o.beginPath(),o.moveTo(a,a),s)var p=360*(c.pos-e.pos);else p=.5;var d=u*t,h=(d=Math.min(360*t,d))+p*t;h=Math.min(360*t,h+.02),o.arc(a,a,i,d,h),o.closePath(),o.fill(),u+=p}}},o.ColorStop=function(e,t){if(this.gradient=e,t){var r=t.match(/^(.+?)(?:\s+([\d.]+)(%|deg|turn|grad|rad)?)?(?:\s+([\d.]+)(%|deg|turn|grad|rad)?)?\s*$/);if(this.color=o.ColorStop.colorToRGBA(r[1]),r[2]){var i=r[3];"%"==i||"0"===r[2]&&!i?this.pos=r[2]/100:"turn"==i?this.pos=+r[2]:"deg"==i?this.pos=r[2]/360:"grad"==i?this.pos=r[2]/400:"rad"==i&&(this.pos=r[2]/n)}r[4]&&(this.next=new o.ColorStop(e,r[1]+" "+r[4]+r[5]))}},o.ColorStop.prototype={clone:function(){var e=new o.ColorStop(this.gradient);return e.color=this.color,e.pos=this.pos,e},toString:function(){return"rgba("+this.color.join(", ")+") "+100*this.pos+"%"}},o.ColorStop.colorToRGBA=function(e){if(!Array.isArray(e)&&-1==e.indexOf("from")){r.style.color=e;var n=getComputedStyle(r).color.match(/rgba?\(([\d.]+), ([\d.]+), ([\d.]+)(?:, ([\d.]+))?\)/);return n&&(n.shift(),(n=n.map((function(e){return+e})))[3]=isNaN(n[3])?1:n[3]),n||[0,0,0,0]}return e}}(),self.StyleFix&&((e=document.createElement("p")).style.backgroundImage="conic-gradient(white, black)",e.style.backgroundImage=PrefixFree.prefix+"conic-gradient(white, black)",e.style.backgroundImage||StyleFix.register((function(e,n){return e.indexOf("conic-gradient")>-1&&(e=e.replace(/(?:repeating-)?conic-gradient\(\s*((?:\([^()]+\)|[^;()}])+?)\)/g,(function(e,n){return new ConicGradient({stops:n,repeating:e.indexOf("repeating-")>-1})}))),e})))},9662:(e,n,t)=>{var r=t(7854),o=t(614),i=t(6330),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a function")}},9483:(e,n,t)=>{var r=t(7854),o=t(4411),i=t(6330),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a constructor")}},6077:(e,n,t)=>{var r=t(7854),o=t(614),i=r.String,a=r.TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw a("Can't set "+i(e)+" as a prototype")}},1223:(e,n,t)=>{var r=t(5112),o=t(30),i=t(3070),a=r("unscopables"),l=Array.prototype;null==l[a]&&i.f(l,a,{configurable:!0,value:o(null)}),e.exports=function(e){l[a][e]=!0}},1530:(e,n,t)=>{"use strict";var r=t(8710).charAt;e.exports=function(e,n,t){return n+(t?r(e,n).length:1)}},5787:(e,n,t)=>{var r=t(7854),o=t(7976),i=r.TypeError;e.exports=function(e,n){if(o(n,e))return e;throw i("Incorrect invocation")}},9670:(e,n,t)=>{var r=t(7854),o=t(111),i=r.String,a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not an object")}},7556:(e,n,t)=>{var r=t(7293);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},8533:(e,n,t)=>{"use strict";var r=t(2092).forEach,o=t(9341)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},8457:(e,n,t)=>{"use strict";var r=t(7854),o=t(9974),i=t(6916),a=t(7908),l=t(3411),c=t(7659),u=t(4411),s=t(6244),f=t(6135),p=t(8554),d=t(1246),h=r.Array;e.exports=function(e){var n=a(e),t=u(this),r=arguments.length,g=r>1?arguments[1]:void 0,v=void 0!==g;v&&(g=o(g,r>2?arguments[2]:void 0));var A,b,m,y,E,_,C=d(n),w=0;if(!C||this==h&&c(C))for(A=s(n),b=t?new this(A):h(A);A>w;w++)_=v?g(n[w],w):n[w],f(b,w,_);else for(E=(y=p(n,C)).next,b=t?new this:[];!(m=i(E,y)).done;w++)_=v?l(y,g,[m.value,w],!0):m.value,f(b,w,_);return b.length=w,b}},1318:(e,n,t)=>{var r=t(5656),o=t(1400),i=t(6244),a=function(e){return function(n,t,a){var l,c=r(n),u=i(c),s=o(a,u);if(e&&t!=t){for(;u>s;)if((l=c[s++])!=l)return!0}else for(;u>s;s++)if((e||s in c)&&c[s]===t)return e||s||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2092:(e,n,t)=>{var r=t(9974),o=t(1702),i=t(8361),a=t(7908),l=t(6244),c=t(5417),u=o([].push),s=function(e){var n=1==e,t=2==e,o=3==e,s=4==e,f=6==e,p=7==e,d=5==e||f;return function(h,g,v,A){for(var b,m,y=a(h),E=i(y),_=r(g,v),C=l(E),w=0,x=A||c,k=n?x(h,C):t||p?x(h,0):void 0;C>w;w++)if((d||w in E)&&(m=_(b=E[w],w,y),e))if(n)k[w]=m;else if(m)switch(e){case 3:return!0;case 5:return b;case 6:return w;case 2:u(k,b)}else switch(e){case 4:return!1;case 7:u(k,b)}return f?-1:o||s?s:k}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},1194:(e,n,t)=>{var r=t(7293),o=t(5112),i=t(7392),a=o("species");e.exports=function(e){return i>=51||!r((function(){var n=[];return(n.constructor={})[a]=function(){return{foo:1}},1!==n[e](Boolean).foo}))}},9341:(e,n,t)=>{"use strict";var r=t(7293);e.exports=function(e,n){var t=[][e];return!!t&&r((function(){t.call(null,n||function(){throw 1},1)}))}},3671:(e,n,t)=>{var r=t(7854),o=t(9662),i=t(7908),a=t(8361),l=t(6244),c=r.TypeError,u=function(e){return function(n,t,r,u){o(t);var s=i(n),f=a(s),p=l(s),d=e?p-1:0,h=e?-1:1;if(r<2)for(;;){if(d in f){u=f[d],d+=h;break}if(d+=h,e?d<0:p<=d)throw c("Reduce of empty array with no initial value")}for(;e?d>=0:p>d;d+=h)d in f&&(u=t(u,f[d],d,s));return u}};e.exports={left:u(!1),right:u(!0)}},206:(e,n,t)=>{var r=t(1702);e.exports=r([].slice)},4362:(e,n,t)=>{var r=t(206),o=Math.floor,i=function(e,n){var t=e.length,c=o(t/2);return t<8?a(e,n):l(e,i(r(e,0,c),n),i(r(e,c),n),n)},a=function(e,n){for(var t,r,o=e.length,i=1;i0;)e[r]=e[--r];r!==i++&&(e[r]=t)}return e},l=function(e,n,t,r){for(var o=n.length,i=t.length,a=0,l=0;a{var r=t(7854),o=t(3157),i=t(4411),a=t(111),l=t(5112)("species"),c=r.Array;e.exports=function(e){var n;return o(e)&&(n=e.constructor,(i(n)&&(n===c||o(n.prototype))||a(n)&&null===(n=n[l]))&&(n=void 0)),void 0===n?c:n}},5417:(e,n,t)=>{var r=t(7475);e.exports=function(e,n){return new(r(e))(0===n?0:n)}},3411:(e,n,t)=>{var r=t(9670),o=t(9212);e.exports=function(e,n,t,i){try{return i?n(r(t)[0],t[1]):n(t)}catch(n){o(e,"throw",n)}}},7072:(e,n,t)=>{var r=t(5112)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,n){if(!n&&!o)return!1;var t=!1;try{var i={};i[r]=function(){return{next:function(){return{done:t=!0}}}},e(i)}catch(e){}return t}},4326:(e,n,t)=>{var r=t(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},648:(e,n,t)=>{var r=t(7854),o=t(1694),i=t(614),a=t(4326),l=t(5112)("toStringTag"),c=r.Object,u="Arguments"==a(function(){return arguments}());e.exports=o?a:function(e){var n,t,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,n){try{return e[n]}catch(e){}}(n=c(e),l))?t:u?a(n):"Object"==(r=a(n))&&i(n.callee)?"Arguments":r}},5631:(e,n,t)=>{"use strict";var r=t(3070).f,o=t(30),i=t(2248),a=t(9974),l=t(5787),c=t(408),u=t(654),s=t(6340),f=t(9781),p=t(2423).fastKey,d=t(9909),h=d.set,g=d.getterFor;e.exports={getConstructor:function(e,n,t,u){var s=e((function(e,r){l(e,d),h(e,{type:n,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&c(r,e[u],{that:e,AS_ENTRIES:t})})),d=s.prototype,v=g(n),A=function(e,n,t){var r,o,i=v(e),a=b(e,n);return a?a.value=t:(i.last=a={index:o=p(n,!0),key:n,value:t,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},b=function(e,n){var t,r=v(e),o=p(n);if("F"!==o)return r.index[o];for(t=r.first;t;t=t.next)if(t.key==n)return t};return i(d,{clear:function(){for(var e=v(this),n=e.index,t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),delete n[t.index],t=t.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var n=this,t=v(n),r=b(n,e);if(r){var o=r.next,i=r.previous;delete t.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),t.first==r&&(t.first=o),t.last==r&&(t.last=i),f?t.size--:n.size--}return!!r},forEach:function(e){for(var n,t=v(this),r=a(e,arguments.length>1?arguments[1]:void 0);n=n?n.next:t.first;)for(r(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function(e){return!!b(this,e)}}),i(d,t?{get:function(e){var n=b(this,e);return n&&n.value},set:function(e,n){return A(this,0===e?0:e,n)}}:{add:function(e){return A(this,e=0===e?0:e,e)}}),f&&r(d,"size",{get:function(){return v(this).size}}),s},setStrong:function(e,n,t){var r=n+" Iterator",o=g(n),i=g(r);u(e,n,(function(e,n){h(this,{type:r,target:e,state:o(e),kind:n,last:void 0})}),(function(){for(var e=i(this),n=e.kind,t=e.last;t&&t.removed;)t=t.previous;return e.target&&(e.last=t=t?t.next:e.state.first)?"keys"==n?{value:t.key,done:!1}:"values"==n?{value:t.value,done:!1}:{value:[t.key,t.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),t?"entries":"values",!t,!0),s(n)}}},9320:(e,n,t)=>{"use strict";var r=t(1702),o=t(2248),i=t(2423).getWeakData,a=t(9670),l=t(111),c=t(5787),u=t(408),s=t(2092),f=t(2597),p=t(9909),d=p.set,h=p.getterFor,g=s.find,v=s.findIndex,A=r([].splice),b=0,m=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},E=function(e,n){return g(e.entries,(function(e){return e[0]===n}))};y.prototype={get:function(e){var n=E(this,e);if(n)return n[1]},has:function(e){return!!E(this,e)},set:function(e,n){var t=E(this,e);t?t[1]=n:this.entries.push([e,n])},delete:function(e){var n=v(this.entries,(function(n){return n[0]===e}));return~n&&A(this.entries,n,1),!!~n}},e.exports={getConstructor:function(e,n,t,r){var s=e((function(e,o){c(e,p),d(e,{type:n,id:b++,frozen:void 0}),null!=o&&u(o,e[r],{that:e,AS_ENTRIES:t})})),p=s.prototype,g=h(n),v=function(e,n,t){var r=g(e),o=i(a(n),!0);return!0===o?m(r).set(n,t):o[r.id]=t,e};return o(p,{delete:function(e){var n=g(this);if(!l(e))return!1;var t=i(e);return!0===t?m(n).delete(e):t&&f(t,n.id)&&delete t[n.id]},has:function(e){var n=g(this);if(!l(e))return!1;var t=i(e);return!0===t?m(n).has(e):t&&f(t,n.id)}}),o(p,t?{get:function(e){var n=g(this);if(l(e)){var t=i(e);return!0===t?m(n).get(e):t?t[n.id]:void 0}},set:function(e,n){return v(this,e,n)}}:{add:function(e){return v(this,e,!0)}}),s}}},7710:(e,n,t)=>{"use strict";var r=t(2109),o=t(7854),i=t(1702),a=t(4705),l=t(1320),c=t(2423),u=t(408),s=t(5787),f=t(614),p=t(111),d=t(7293),h=t(7072),g=t(8003),v=t(9587);e.exports=function(e,n,t){var A=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),m=A?"set":"add",y=o[e],E=y&&y.prototype,_=y,C={},w=function(e){var n=i(E[e]);l(E,e,"add"==e?function(e){return n(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!p(e))&&n(this,0===e?0:e)}:"get"==e?function(e){return b&&!p(e)?void 0:n(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!p(e))&&n(this,0===e?0:e)}:function(e,t){return n(this,0===e?0:e,t),this})};if(a(e,!f(y)||!(b||E.forEach&&!d((function(){(new y).entries().next()})))))_=t.getConstructor(n,e,A,m),c.enable();else if(a(e,!0)){var x=new _,k=x[m](b?{}:-0,1)!=x,S=d((function(){x.has(1)})),O=h((function(e){new y(e)})),B=!b&&d((function(){for(var e=new y,n=5;n--;)e[m](n,n);return!e.has(-0)}));O||((_=n((function(e,n){s(e,E);var t=v(new y,e,_);return null!=n&&u(n,t[m],{that:t,AS_ENTRIES:A}),t}))).prototype=E,E.constructor=_),(S||B)&&(w("delete"),w("has"),A&&w("get")),(B||k)&&w(m),b&&E.clear&&delete E.clear}return C[e]=_,r({global:!0,forced:_!=y},C),g(_,e),b||t.setStrong(_,e,A),_}},9920:(e,n,t)=>{var r=t(2597),o=t(3887),i=t(1236),a=t(3070);e.exports=function(e,n){for(var t=o(n),l=a.f,c=i.f,u=0;u{var r=t(5112)("match");e.exports=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[r]=!1,"/./"[e](n)}catch(e){}}return!1}},8544:(e,n,t)=>{var r=t(7293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4230:(e,n,t)=>{var r=t(1702),o=t(4488),i=t(1340),a=/"/g,l=r("".replace);e.exports=function(e,n,t,r){var c=i(o(e)),u="<"+n;return""!==t&&(u+=" "+t+'="'+l(i(r),a,""")+'"'),u+">"+c+""}},4994:(e,n,t)=>{"use strict";var r=t(3383).IteratorPrototype,o=t(30),i=t(9114),a=t(8003),l=t(7497),c=function(){return this};e.exports=function(e,n,t){var u=n+" Iterator";return e.prototype=o(r,{next:i(1,t)}),a(e,u,!1,!0),l[u]=c,e}},8880:(e,n,t)=>{var r=t(9781),o=t(3070),i=t(9114);e.exports=r?function(e,n,t){return o.f(e,n,i(1,t))}:function(e,n,t){return e[n]=t,e}},9114:e=>{e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},6135:(e,n,t)=>{"use strict";var r=t(4948),o=t(3070),i=t(9114);e.exports=function(e,n,t){var a=r(n);a in e?o.f(e,a,i(0,t)):e[a]=t}},8709:(e,n,t)=>{"use strict";var r=t(7854),o=t(9670),i=t(2140),a=r.TypeError;e.exports=function(e){if(o(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw a("Incorrect hint");return i(this,e)}},654:(e,n,t)=>{"use strict";var r=t(2109),o=t(6916),i=t(1913),a=t(6530),l=t(614),c=t(4994),u=t(9518),s=t(7674),f=t(8003),p=t(8880),d=t(1320),h=t(5112),g=t(7497),v=t(3383),A=a.PROPER,b=a.CONFIGURABLE,m=v.IteratorPrototype,y=v.BUGGY_SAFARI_ITERATORS,E=h("iterator"),_="keys",C="values",w="entries",x=function(){return this};e.exports=function(e,n,t,a,h,v,k){c(t,n,a);var S,O,B,I=function(e){if(e===h&&R)return R;if(!y&&e in j)return j[e];switch(e){case _:case C:case w:return function(){return new t(this,e)}}return function(){return new t(this)}},T=n+" Iterator",P=!1,j=e.prototype,z=j[E]||j["@@iterator"]||h&&j[h],R=!y&&z||I(h),M="Array"==n&&j.entries||z;if(M&&(S=u(M.call(new e)))!==Object.prototype&&S.next&&(i||u(S)===m||(s?s(S,m):l(S[E])||d(S,E,x)),f(S,T,!0,!0),i&&(g[T]=x)),A&&h==C&&z&&z.name!==C&&(!i&&b?p(j,"name",C):(P=!0,R=function(){return o(z,this)})),h)if(O={values:I(C),keys:v?R:I(_),entries:I(w)},k)for(B in O)(y||P||!(B in j))&&d(j,B,O[B]);else r({target:n,proto:!0,forced:y||P},O);return i&&!k||j[E]===R||d(j,E,R,{name:h}),g[n]=R,O}},7235:(e,n,t)=>{var r=t(857),o=t(2597),i=t(6061),a=t(3070).f;e.exports=function(e){var n=r.Symbol||(r.Symbol={});o(n,e)||a(n,e,{value:i.f(e)})}},9781:(e,n,t)=>{var r=t(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(e,n,t)=>{var r=t(7854),o=t(111),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},8324:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:(e,n,t)=>{var r=t(317)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},8886:(e,n,t)=>{var r=t(8113).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},256:(e,n,t)=>{var r=t(8113);e.exports=/MSIE|Trident/.test(r)},5268:(e,n,t)=>{var r=t(4326),o=t(7854);e.exports="process"==r(o.process)},8113:(e,n,t)=>{var r=t(5005);e.exports=r("navigator","userAgent")||""},7392:(e,n,t)=>{var r,o,i=t(7854),a=t(8113),l=i.process,c=i.Deno,u=l&&l.versions||c&&c.version,s=u&&u.v8;s&&(o=(r=s.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},8008:(e,n,t)=>{var r=t(8113).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(e,n,t)=>{var r=t(7854),o=t(1236).f,i=t(8880),a=t(1320),l=t(3505),c=t(9920),u=t(4705);e.exports=function(e,n){var t,s,f,p,d,h=e.target,g=e.global,v=e.stat;if(t=g?r:v?r[h]||l(h,{}):(r[h]||{}).prototype)for(s in n){if(p=n[s],f=e.noTargetGet?(d=o(t,s))&&d.value:t[s],!u(g?s:h+(v?".":"#")+s,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;c(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),a(t,s,p,e)}}},7293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},7007:(e,n,t)=>{"use strict";t(4916);var r=t(1702),o=t(1320),i=t(2261),a=t(7293),l=t(5112),c=t(8880),u=l("species"),s=RegExp.prototype;e.exports=function(e,n,t,f){var p=l(e),d=!a((function(){var n={};return n[p]=function(){return 7},7!=""[e](n)})),h=d&&!a((function(){var n=!1,t=/a/;return"split"===e&&((t={}).constructor={},t.constructor[u]=function(){return t},t.flags="",t[p]=/./[p]),t.exec=function(){return n=!0,null},t[p](""),!n}));if(!d||!h||t){var g=r(/./[p]),v=n(p,""[e],(function(e,n,t,o,a){var l=r(e),c=n.exec;return c===i||c===s.exec?d&&!a?{done:!0,value:g(n,t,o)}:{done:!0,value:l(t,n,o)}:{done:!1}}));o(String.prototype,e,v[0]),o(s,p,v[1])}f&&c(s[p],"sham",!0)}},6677:(e,n,t)=>{var r=t(7293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:e=>{var n=Function.prototype,t=n.apply,r=n.bind,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(t):function(){return o.apply(t,arguments)})},9974:(e,n,t)=>{var r=t(1702),o=t(9662),i=r(r.bind);e.exports=function(e,n){return o(e),void 0===n?e:i?i(e,n):function(){return e.apply(n,arguments)}}},7065:(e,n,t)=>{"use strict";var r=t(7854),o=t(1702),i=t(9662),a=t(111),l=t(2597),c=t(206),u=r.Function,s=o([].concat),f=o([].join),p={},d=function(e,n,t){if(!l(p,n)){for(var r=[],o=0;o{var n=Function.prototype.call;e.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},6530:(e,n,t)=>{var r=t(9781),o=t(2597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,l=o(i,"name"),c=l&&"something"===function(){}.name,u=l&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:l,PROPER:c,CONFIGURABLE:u}},1702:e=>{var n=Function.prototype,t=n.bind,r=n.call,o=t&&t.bind(r);e.exports=t?function(e){return e&&o(r,e)}:function(e){return e&&function(){return r.apply(e,arguments)}}},5005:(e,n,t)=>{var r=t(7854),o=t(614),i=function(e){return o(e)?e:void 0};e.exports=function(e,n){return arguments.length<2?i(r[e]):r[e]&&r[e][n]}},1246:(e,n,t)=>{var r=t(648),o=t(8173),i=t(7497),a=t(5112)("iterator");e.exports=function(e){if(null!=e)return o(e,a)||o(e,"@@iterator")||i[r(e)]}},8554:(e,n,t)=>{var r=t(7854),o=t(6916),i=t(9662),a=t(9670),l=t(6330),c=t(1246),u=r.TypeError;e.exports=function(e,n){var t=arguments.length<2?c(e):n;if(i(t))return a(o(t,e));throw u(l(e)+" is not iterable")}},8173:(e,n,t)=>{var r=t(9662);e.exports=function(e,n){var t=e[n];return null==t?void 0:r(t)}},647:(e,n,t)=>{var r=t(1702),o=t(7908),i=Math.floor,a=r("".charAt),l=r("".replace),c=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,n,t,r,f,p){var d=t+e.length,h=r.length,g=s;return void 0!==f&&(f=o(f),g=u),l(p,g,(function(o,l){var u;switch(a(l,0)){case"$":return"$";case"&":return e;case"`":return c(n,0,t);case"'":return c(n,d);case"<":u=f[c(l,1,-1)];break;default:var s=+l;if(0===s)return o;if(s>h){var p=i(s/10);return 0===p?o:p<=h?void 0===r[p-1]?a(l,1):r[p-1]+a(l,1):o}u=r[s-1]}return void 0===u?"":u}))}},7854:(e,n,t)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t.g&&t.g)||function(){return this}()||Function("return this")()},2597:(e,n,t)=>{var r=t(1702),o=t(7908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,n){return i(o(e),n)}},3501:e=>{e.exports={}},490:(e,n,t)=>{var r=t(5005);e.exports=r("document","documentElement")},4664:(e,n,t)=>{var r=t(9781),o=t(7293),i=t(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:(e,n,t)=>{var r=t(7854),o=t(1702),i=t(7293),a=t(4326),l=r.Object,c=o("".split);e.exports=i((function(){return!l("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?c(e,""):l(e)}:l},9587:(e,n,t)=>{var r=t(614),o=t(111),i=t(7674);e.exports=function(e,n,t){var a,l;return i&&r(a=n.constructor)&&a!==t&&o(l=a.prototype)&&l!==t.prototype&&i(e,l),e}},2788:(e,n,t)=>{var r=t(1702),o=t(614),i=t(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},2423:(e,n,t)=>{var r=t(2109),o=t(1702),i=t(3501),a=t(111),l=t(2597),c=t(3070).f,u=t(8006),s=t(1156),f=t(2050),p=t(9711),d=t(6677),h=!1,g=p("meta"),v=0,A=function(e){c(e,g,{value:{objectID:"O"+v++,weakData:{}}})},b=e.exports={enable:function(){b.enable=function(){},h=!0;var e=u.f,n=o([].splice),t={};t[g]=1,e(t).length&&(u.f=function(t){for(var r=e(t),o=0,i=r.length;o{var r,o,i,a=t(8536),l=t(7854),c=t(1702),u=t(111),s=t(8880),f=t(2597),p=t(5465),d=t(6200),h=t(3501),g="Object already initialized",v=l.TypeError,A=l.WeakMap;if(a||p.state){var b=p.state||(p.state=new A),m=c(b.get),y=c(b.has),E=c(b.set);r=function(e,n){if(y(b,e))throw new v(g);return n.facade=e,E(b,e,n),n},o=function(e){return m(b,e)||{}},i=function(e){return y(b,e)}}else{var _=d("state");h[_]=!0,r=function(e,n){if(f(e,_))throw new v(g);return n.facade=e,s(e,_,n),n},o=function(e){return f(e,_)?e[_]:{}},i=function(e){return f(e,_)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(n){var t;if(!u(n)||(t=o(n)).type!==e)throw v("Incompatible receiver, "+e+" required");return t}}}},7659:(e,n,t)=>{var r=t(5112),o=t(7497),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},3157:(e,n,t)=>{var r=t(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:e=>{e.exports=function(e){return"function"==typeof e}},4411:(e,n,t)=>{var r=t(1702),o=t(7293),i=t(614),a=t(648),l=t(5005),c=t(2788),u=function(){},s=[],f=l("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=r(p.exec),h=!p.exec(u),g=function(e){if(!i(e))return!1;try{return f(u,s,e),!0}catch(e){return!1}};e.exports=!f||o((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return h||!!d(p,c(e))}:g},4705:(e,n,t)=>{var r=t(7293),o=t(614),i=/#|\.prototype\./,a=function(e,n){var t=c[l(e)];return t==s||t!=u&&(o(n)?r(n):!!n)},l=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",s=a.POLYFILL="P";e.exports=a},111:(e,n,t)=>{var r=t(614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},1913:e=>{e.exports=!1},7850:(e,n,t)=>{var r=t(111),o=t(4326),i=t(5112)("match");e.exports=function(e){var n;return r(e)&&(void 0!==(n=e[i])?!!n:"RegExp"==o(e))}},2190:(e,n,t)=>{var r=t(7854),o=t(5005),i=t(614),a=t(7976),l=t(3307),c=r.Object;e.exports=l?function(e){return"symbol"==typeof e}:function(e){var n=o("Symbol");return i(n)&&a(n.prototype,c(e))}},408:(e,n,t)=>{var r=t(7854),o=t(9974),i=t(6916),a=t(9670),l=t(6330),c=t(7659),u=t(6244),s=t(7976),f=t(8554),p=t(1246),d=t(9212),h=r.TypeError,g=function(e,n){this.stopped=e,this.result=n},v=g.prototype;e.exports=function(e,n,t){var r,A,b,m,y,E,_,C=t&&t.that,w=!(!t||!t.AS_ENTRIES),x=!(!t||!t.IS_ITERATOR),k=!(!t||!t.INTERRUPTED),S=o(n,C),O=function(e){return r&&d(r,"normal",e),new g(!0,e)},B=function(e){return w?(a(e),k?S(e[0],e[1],O):S(e[0],e[1])):k?S(e,O):S(e)};if(x)r=e;else{if(!(A=p(e)))throw h(l(e)+" is not iterable");if(c(A)){for(b=0,m=u(e);m>b;b++)if((y=B(e[b]))&&s(v,y))return y;return new g(!1)}r=f(e,A)}for(E=r.next;!(_=i(E,r)).done;){try{y=B(_.value)}catch(e){d(r,"throw",e)}if("object"==typeof y&&y&&s(v,y))return y}return new g(!1)}},9212:(e,n,t)=>{var r=t(6916),o=t(9670),i=t(8173);e.exports=function(e,n,t){var a,l;o(e);try{if(!(a=i(e,"return"))){if("throw"===n)throw t;return t}a=r(a,e)}catch(e){l=!0,a=e}if("throw"===n)throw t;if(l)throw a;return o(a),t}},3383:(e,n,t)=>{"use strict";var r,o,i,a=t(7293),l=t(614),c=t(30),u=t(9518),s=t(1320),f=t(5112),p=t(1913),d=f("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):h=!0),null==r||a((function(){var e={};return r[d].call(e)!==e}))?r={}:p&&(r=c(r)),l(r[d])||s(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},7497:e=>{e.exports={}},6244:(e,n,t)=>{var r=t(7466);e.exports=function(e){return r(e.length)}},133:(e,n,t)=>{var r=t(7392),o=t(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:(e,n,t)=>{var r=t(7854),o=t(614),i=t(2788),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},3929:(e,n,t)=>{var r=t(7854),o=t(7850),i=r.TypeError;e.exports=function(e){if(o(e))throw i("The method doesn't accept regular expressions");return e}},1574:(e,n,t)=>{"use strict";var r=t(9781),o=t(1702),i=t(6916),a=t(7293),l=t(1956),c=t(5181),u=t(5296),s=t(7908),f=t(8361),p=Object.assign,d=Object.defineProperty,h=o([].concat);e.exports=!p||a((function(){if(r&&1!==p({b:1},p(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},t=Symbol(),o="abcdefghijklmnopqrst";return e[t]=7,o.split("").forEach((function(e){n[e]=e})),7!=p({},e)[t]||l(p({},n)).join("")!=o}))?function(e,n){for(var t=s(e),o=arguments.length,a=1,p=c.f,d=u.f;o>a;)for(var g,v=f(arguments[a++]),A=p?h(l(v),p(v)):l(v),b=A.length,m=0;b>m;)g=A[m++],r&&!i(d,v,g)||(t[g]=v[g]);return t}:p},30:(e,n,t)=>{var r,o=t(9670),i=t(6048),a=t(748),l=t(3501),c=t(490),u=t(317),s=t(6200),f=s("IE_PROTO"),p=function(){},d=function(e){return" + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

okio-fakefilesystem

+
+

Packages

+
+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
common
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/navigation.html b/3.x/okio-fakefilesystem/navigation.html new file mode 100644 index 0000000000..783a33bd13 --- /dev/null +++ b/3.x/okio-fakefilesystem/navigation.html @@ -0,0 +1,10 @@ + + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/-fake-file-system.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/-fake-file-system.html new file mode 100644 index 0000000000..837bfe0387 --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/-fake-file-system.html @@ -0,0 +1,82 @@ + + + + + FakeFileSystem + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

FakeFileSystem

+
+
constructor(clock: Clock = Clock.System)
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/all-paths.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/all-paths.html new file mode 100644 index 0000000000..2e06b20a43 --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/all-paths.html @@ -0,0 +1,82 @@ + + + + + allPaths + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

allPaths

+
+
@get:JvmName(name = "allPaths")
val allPaths: Set<Path>

Canonical paths for every file and directory in this file system. This omits file system roots like C:\ and /.

+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-clobbering-empty-directories.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-clobbering-empty-directories.html new file mode 100644 index 0000000000..63d4e0e16f --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-clobbering-empty-directories.html @@ -0,0 +1,82 @@ + + + + + allowClobberingEmptyDirectories + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

allowClobberingEmptyDirectories

+
+

True to allow the target of an atomicMove operation to be an empty directory. Windows file systems typically allow files to replace empty directories; UNIX file systems do not.

+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-deleting-open-files.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-deleting-open-files.html new file mode 100644 index 0000000000..669fd42352 --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-deleting-open-files.html @@ -0,0 +1,82 @@ + + + + + allowDeletingOpenFiles + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

allowDeletingOpenFiles

+
+

True to allow files to be deleted even if they're currently open for read or write. UNIX file systems typically allow open files to be deleted; Windows file systems do not.

+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-moving-open-files.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-moving-open-files.html new file mode 100644 index 0000000000..b17dcc771e --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-moving-open-files.html @@ -0,0 +1,82 @@ + + + + + allowMovingOpenFiles + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

allowMovingOpenFiles

+
+

True to allow files to be moved even if they're currently open for read or write. UNIX file systems typically allow open files to be moved; Windows file systems do not.

+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-reads-while-writing.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-reads-while-writing.html new file mode 100644 index 0000000000..2c2b442399 --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-reads-while-writing.html @@ -0,0 +1,82 @@ + + + + + allowReadsWhileWriting + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

allowReadsWhileWriting

+
+

True to permit a file to have a source and sink open at the same time. Both Windows and UNIX file systems permit this but the result may be undefined.

+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-symlinks.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-symlinks.html new file mode 100644 index 0000000000..2ac61d7aaa --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-symlinks.html @@ -0,0 +1,82 @@ + + + + + allowSymlinks + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

allowSymlinks

+
+

True to allow symlinks to be created. UNIX file systems typically allow symlinks; Windows file systems do not. Setting this to false after creating a symlink does not prevent that symlink from being returned or used.

+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-writes-while-writing.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-writes-while-writing.html new file mode 100644 index 0000000000..9d8c54e3d2 --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-writes-while-writing.html @@ -0,0 +1,82 @@ + + + + + allowWritesWhileWriting + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

allowWritesWhileWriting

+
+

True to permit a file to have multiple sinks open at the same time. Both Windows and UNIX file systems permit this but the result may be undefined.

+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/appending-sink.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/appending-sink.html new file mode 100644 index 0000000000..991924415f --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/appending-sink.html @@ -0,0 +1,82 @@ + + + + + appendingSink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

appendingSink

+
+
open override fun appendingSink(file: Path, mustExist: Boolean): Sink
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/atomic-move.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/atomic-move.html new file mode 100644 index 0000000000..73aeec35bd --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/atomic-move.html @@ -0,0 +1,82 @@ + + + + + atomicMove + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

atomicMove

+
+
open override fun atomicMove(source: Path, target: Path)
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/canonicalize.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/canonicalize.html new file mode 100644 index 0000000000..dc6628ef9f --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/canonicalize.html @@ -0,0 +1,82 @@ + + + + + canonicalize + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

canonicalize

+
+
open override fun canonicalize(path: Path): Path
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/check-no-open-files.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/check-no-open-files.html new file mode 100644 index 0000000000..440a1ab7d6 --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/check-no-open-files.html @@ -0,0 +1,82 @@ + + + + + checkNoOpenFiles + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

checkNoOpenFiles

+
+

Confirm that all files that have been opened on this file system (with source, sink, and appendingSink) have since been closed. Call this in your test's tearDown() function to confirm that your program hasn't leaked any open files.

Forgetting to close a file on a real file system is a severe error that may lead to a program crash. The operating system enforces a limit on how many files may be open simultaneously. On Linux this is getrlimit and is commonly adjusted with the ulimit command.

Throws

if any files are open when this function is called.

+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/clock.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/clock.html new file mode 100644 index 0000000000..1e5e3fad7f --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/clock.html @@ -0,0 +1,82 @@ + + + + + clock + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

clock

+
+
val clock: Clock
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/close.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/close.html new file mode 100644 index 0000000000..29651f9579 --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/close.html @@ -0,0 +1,82 @@ + + + + + close + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

close

+
+
open override fun close()
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/create-directory.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/create-directory.html new file mode 100644 index 0000000000..558671309e --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/create-directory.html @@ -0,0 +1,82 @@ + + + + + createDirectory + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

createDirectory

+
+
open override fun createDirectory(dir: Path, mustCreate: Boolean)
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/create-symlink.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/create-symlink.html new file mode 100644 index 0000000000..da21e99c1b --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/create-symlink.html @@ -0,0 +1,82 @@ + + + + + createSymlink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

createSymlink

+
+
open override fun createSymlink(source: Path, target: Path)
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/delete.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/delete.html new file mode 100644 index 0000000000..0a99a1c592 --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/delete.html @@ -0,0 +1,82 @@ + + + + + delete + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

delete

+
+
open override fun delete(path: Path, mustExist: Boolean)
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/emulate-unix.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/emulate-unix.html new file mode 100644 index 0000000000..e929381333 --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/emulate-unix.html @@ -0,0 +1,82 @@ + + + + + emulateUnix + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

emulateUnix

+
+

Configure this file system to use a UNIX-like working directory (/, unless the working directory is already UNIX-like) and to follow a UNIX-like policy on what operations are permitted.

+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/emulate-windows.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/emulate-windows.html new file mode 100644 index 0000000000..f4e3a95cbf --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/emulate-windows.html @@ -0,0 +1,82 @@ + + + + + emulateWindows + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

emulateWindows

+
+

Configure this file system to use a Windows-like working directory (F:\, unless the working directory is already Windows-like) and to follow a Windows-like policy on what operations are permitted.

+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/index.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/index.html new file mode 100644 index 0000000000..db3757c436 --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/index.html @@ -0,0 +1,669 @@ + + + + + FakeFileSystem + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

FakeFileSystem

+
class FakeFileSystem(val clock: Clock = Clock.System) : FileSystem

A fully in-memory file system useful for testing. It includes features to support writing better tests.

Use openPaths to see which paths have been opened for read or write, but not yet closed. Tests should call checkNoOpenFiles in tearDown() to confirm that no file streams were leaked.

Strict By Default

-----------------

These actions are not allowed and throw an IOException if attempted:

  • Moving a file that is currently open for reading or writing.

  • Deleting a file that is currently open for reading or writing.

  • Moving a file to a path that currently resolves to an empty directory.

  • Reading and writing the same file at the same time.

  • Opening a file for writing that is already open for writing.

Programs that do not attempt any of the above operations should work fine on both UNIX and Windows systems. Relax these constraints individually or call emulateWindows or emulateUnix; to apply the constraints of a particular operating system.

Closeable

---------

This file system cannot be used after it is closed. Closing it does not close any of its open streams; those must be closed directly.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
constructor(clock: Clock = Clock.System)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

True to allow the target of an atomicMove operation to be an empty directory. Windows file systems typically allow files to replace empty directories; UNIX file systems do not.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

True to allow files to be deleted even if they're currently open for read or write. UNIX file systems typically allow open files to be deleted; Windows file systems do not.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

True to allow files to be moved even if they're currently open for read or write. UNIX file systems typically allow open files to be moved; Windows file systems do not.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

True to permit a file to have a source and sink open at the same time. Both Windows and UNIX file systems permit this but the result may be undefined.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

True to allow symlinks to be created. UNIX file systems typically allow symlinks; Windows file systems do not. Setting this to false after creating a symlink does not prevent that symlink from being returned or used.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

True to permit a file to have multiple sinks open at the same time. Both Windows and UNIX file systems permit this but the result may be undefined.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
@get:JvmName(name = "allPaths")
val allPaths: Set<Path>

Canonical paths for every file and directory in this file system. This omits file system roots like C:\ and /.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
val clock: Clock
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
@get:JvmName(name = "openPaths")
val openPaths: List<Path>

Canonical paths currently opened for reading or writing in the order they were opened. This may contain duplicates if a single path is open by multiple readers.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

An absolute path with this file system's current working directory. Relative paths will be resolved against this directory when they are used.

+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
open override fun appendingSink(file: Path, mustExist: Boolean): Sink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
open override fun atomicMove(source: Path, target: Path)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
open override fun canonicalize(path: Path): Path
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Confirm that all files that have been opened on this file system (with source, sink, and appendingSink) have since been closed. Call this in your test's tearDown() function to confirm that your program hasn't leaked any open files.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
open override fun close()
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
expect open fun copy(source: Path, target: Path)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
expect fun createDirectories(dir: Path, mustCreate: Boolean)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
open override fun createDirectory(dir: Path, mustCreate: Boolean)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
open override fun createSymlink(source: Path, target: Path)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
open override fun delete(path: Path, mustExist: Boolean)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
expect open fun deleteRecursively(fileOrDirectory: Path, mustExist: Boolean)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Configure this file system to use a UNIX-like working directory (/, unless the working directory is already UNIX-like) and to follow a UNIX-like policy on what operations are permitted.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Configure this file system to use a Windows-like working directory (F:\, unless the working directory is already Windows-like) and to follow a Windows-like policy on what operations are permitted.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
expect fun exists(path: Path): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
open override fun list(dir: Path): List<Path>
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
open override fun listOrNull(dir: Path): List<Path>?
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
expect open fun listRecursively(dir: Path, followSymlinks: Boolean): Sequence<Path>
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
expect fun metadata(path: Path): FileMetadata
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
open override fun metadataOrNull(path: Path): FileMetadata?
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
open override fun openReadOnly(file: Path): FileHandle
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
open override fun openReadWrite(file: Path, mustCreate: Boolean, mustExist: Boolean): FileHandle
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
expect inline fun <T> read(file: Path, readerAction: BufferedSource.() -> T): T
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun <T : Any> setExtra(path: Path, type: KClass<out T>, value: T?)

Sets the metadata of type type on path to value. If value is null this clears that metadata.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
open override fun sink(file: Path, mustCreate: Boolean): Sink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
open override fun source(file: Path): Source
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
open override fun toString(): String
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
expect inline fun <T> write(file: Path, mustCreate: Boolean, writerAction: BufferedSink.() -> T): T
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/list-or-null.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/list-or-null.html new file mode 100644 index 0000000000..895f8be23e --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/list-or-null.html @@ -0,0 +1,82 @@ + + + + + listOrNull + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

listOrNull

+
+
open override fun listOrNull(dir: Path): List<Path>?
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/list.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/list.html new file mode 100644 index 0000000000..a56c93d8c9 --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/list.html @@ -0,0 +1,82 @@ + + + + + list + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

list

+
+
open override fun list(dir: Path): List<Path>
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/metadata-or-null.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/metadata-or-null.html new file mode 100644 index 0000000000..21297baef3 --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/metadata-or-null.html @@ -0,0 +1,82 @@ + + + + + metadataOrNull + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

metadataOrNull

+
+
open override fun metadataOrNull(path: Path): FileMetadata?
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/open-paths.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/open-paths.html new file mode 100644 index 0000000000..62dae11ecc --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/open-paths.html @@ -0,0 +1,82 @@ + + + + + openPaths + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

openPaths

+
+
@get:JvmName(name = "openPaths")
val openPaths: List<Path>

Canonical paths currently opened for reading or writing in the order they were opened. This may contain duplicates if a single path is open by multiple readers.

Note that this may contain paths not present in allPaths. This occurs if a file is deleted while it is still open.

The returned list is ordered by the order that the paths were opened.

+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/open-read-only.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/open-read-only.html new file mode 100644 index 0000000000..f039347103 --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/open-read-only.html @@ -0,0 +1,82 @@ + + + + + openReadOnly + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

openReadOnly

+
+
open override fun openReadOnly(file: Path): FileHandle
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/open-read-write.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/open-read-write.html new file mode 100644 index 0000000000..8da2f4c4d8 --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/open-read-write.html @@ -0,0 +1,82 @@ + + + + + openReadWrite + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

openReadWrite

+
+
open override fun openReadWrite(file: Path, mustCreate: Boolean, mustExist: Boolean): FileHandle
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/set-extra.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/set-extra.html new file mode 100644 index 0000000000..bc5e926a5f --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/set-extra.html @@ -0,0 +1,82 @@ + + + + + setExtra + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

setExtra

+
+
fun <T : Any> setExtra(path: Path, type: KClass<out T>, value: T?)

Sets the metadata of type type on path to value. If value is null this clears that metadata.

Extras are not copied by copy but they are moved with atomicMove.

Throws

IOException

if path does not exist.

+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/sink.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/sink.html new file mode 100644 index 0000000000..0c01ff765f --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/sink.html @@ -0,0 +1,82 @@ + + + + + sink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sink

+
+
open override fun sink(file: Path, mustCreate: Boolean): Sink
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/source.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/source.html new file mode 100644 index 0000000000..56275cf95e --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/source.html @@ -0,0 +1,82 @@ + + + + + source + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

source

+
+
open override fun source(file: Path): Source
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/to-string.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/to-string.html new file mode 100644 index 0000000000..9cc823ef11 --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/to-string.html @@ -0,0 +1,82 @@ + + + + + toString + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toString

+
+
open override fun toString(): String
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/working-directory.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/working-directory.html new file mode 100644 index 0000000000..9f7eb4ca6f --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/working-directory.html @@ -0,0 +1,82 @@ + + + + + workingDirectory + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

workingDirectory

+
+

An absolute path with this file system's current working directory. Relative paths will be resolved against this directory when they are used.

+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/index.html b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/index.html new file mode 100644 index 0000000000..4b5dcf09f3 --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/okio.fakefilesystem/index.html @@ -0,0 +1,105 @@ + + + + + okio.fakefilesystem + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Package-level declarations

+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
class FakeFileSystem(val clock: Clock = Clock.System) : FileSystem

A fully in-memory file system useful for testing. It includes features to support writing better tests.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio-fakefilesystem/okio-fakefilesystem/package-list b/3.x/okio-fakefilesystem/okio-fakefilesystem/package-list new file mode 100644 index 0000000000..a3a16e24f4 --- /dev/null +++ b/3.x/okio-fakefilesystem/okio-fakefilesystem/package-list @@ -0,0 +1,36 @@ +$dokka.format:html-v1 +$dokka.linkExtension:html +$dokka.location:okio.fakefilesystem////PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/index.html +$dokka.location:okio.fakefilesystem/FakeFileSystem///PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/index.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/FakeFileSystem/#kotlinx.datetime.Clock/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/-fake-file-system.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/allPaths/#/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/all-paths.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/allowClobberingEmptyDirectories/#/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-clobbering-empty-directories.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/allowDeletingOpenFiles/#/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-deleting-open-files.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/allowMovingOpenFiles/#/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-moving-open-files.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/allowReadsWhileWriting/#/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-reads-while-writing.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/allowSymlinks/#/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-symlinks.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/allowWritesWhileWriting/#/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/allow-writes-while-writing.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/appendingSink/#okio.Path#kotlin.Boolean/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/appending-sink.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/atomicMove/#okio.Path#okio.Path/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/atomic-move.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/canonicalize/#okio.Path/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/canonicalize.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/checkNoOpenFiles/#/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/check-no-open-files.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/clock/#/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/clock.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/close/#/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/close.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/createDirectory/#okio.Path#kotlin.Boolean/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/create-directory.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/createSymlink/#okio.Path#okio.Path/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/create-symlink.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/delete/#okio.Path#kotlin.Boolean/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/delete.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/emulateUnix/#/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/emulate-unix.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/emulateWindows/#/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/emulate-windows.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/list/#okio.Path/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/list.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/listOrNull/#okio.Path/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/list-or-null.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/metadataOrNull/#okio.Path/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/metadata-or-null.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/openPaths/#/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/open-paths.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/openReadOnly/#okio.Path/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/open-read-only.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/openReadWrite/#okio.Path#kotlin.Boolean#kotlin.Boolean/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/open-read-write.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/setExtra/#okio.Path#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]#TypeParam(bounds=[kotlin.Any])?/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/set-extra.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/sink/#okio.Path#kotlin.Boolean/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/sink.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/source/#okio.Path/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/source.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/toString/#/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/to-string.html +$dokka.location:okio.fakefilesystem/FakeFileSystem/workingDirectory/#/PointingToDeclaration/okio-fakefilesystem/okio.fakefilesystem/-fake-file-system/working-directory.html +okio.fakefilesystem + diff --git a/3.x/okio-fakefilesystem/scripts/clipboard.js b/3.x/okio-fakefilesystem/scripts/clipboard.js new file mode 100644 index 0000000000..7a4f33c598 --- /dev/null +++ b/3.x/okio-fakefilesystem/scripts/clipboard.js @@ -0,0 +1,56 @@ +/* + * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + */ + +window.addEventListener('load', () => { + document.querySelectorAll('span.copy-icon').forEach(element => { + element.addEventListener('click', (el) => copyElementsContentToClipboard(element)); + }) + + document.querySelectorAll('span.anchor-icon').forEach(element => { + element.addEventListener('click', (el) => { + if(element.hasAttribute('pointing-to')){ + const location = hrefWithoutCurrentlyUsedAnchor() + '#' + element.getAttribute('pointing-to') + copyTextToClipboard(element, location) + } + }); + }) +}) + +const copyElementsContentToClipboard = (element) => { + const selection = window.getSelection(); + const range = document.createRange(); + range.selectNodeContents(element.parentNode.parentNode); + selection.removeAllRanges(); + selection.addRange(range); + + copyAndShowPopup(element, () => selection.removeAllRanges()) +} + +const copyTextToClipboard = (element, text) => { + var textarea = document.createElement("textarea"); + textarea.textContent = text; + textarea.style.position = "fixed"; + document.body.appendChild(textarea); + textarea.select(); + + copyAndShowPopup(element, () => document.body.removeChild(textarea)) +} + +const copyAndShowPopup = (element, after) => { + try { + document.execCommand('copy'); + element.nextElementSibling.classList.add('active-popup'); + setTimeout(() => { + element.nextElementSibling.classList.remove('active-popup'); + }, 1200); + } catch (e) { + console.error('Failed to write to clipboard:', e) + } + finally { + if(after) after() + } +} + +const hrefWithoutCurrentlyUsedAnchor = () => window.location.href.split('#')[0] + diff --git a/3.x/okio-fakefilesystem/scripts/main.js b/3.x/okio-fakefilesystem/scripts/main.js new file mode 100644 index 0000000000..ba6c347392 --- /dev/null +++ b/3.x/okio-fakefilesystem/scripts/main.js @@ -0,0 +1,44 @@ +(()=>{var e={8527:e=>{e.exports=''},5570:e=>{e.exports=''},107:e=>{e.exports=''},7224:e=>{e.exports=''},538:e=>{e.exports=''},1924:(e,n,t)=>{"use strict";var r=t(210),o=t(5559),i=o(r("String.prototype.indexOf"));e.exports=function(e,n){var t=r(e,!!n);return"function"==typeof t&&i(e,".prototype.")>-1?o(t):t}},5559:(e,n,t)=>{"use strict";var r=t(8612),o=t(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),l=o("%Reflect.apply%",!0)||r.call(a,i),c=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),s=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var n=l(r,a,arguments);if(c&&u){var t=c(n,"length");t.configurable&&u(n,"length",{value:1+s(0,e.length-(arguments.length-1))})}return n};var f=function(){return l(r,i,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},4184:(e,n)=>{var t; +/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],n=0;n{"use strict";e.exports=function(e,n){var t=this,r=t.constructor;return t.options=Object.assign({storeInstancesGlobally:!0},n||{}),t.callbacks={},t.directMap={},t.sequenceLevels={},t.resetTimer=null,t.ignoreNextKeyup=!1,t.ignoreNextKeypress=!1,t.nextExpectedAction=!1,t.element=e,t.addEvents(),t.options.storeInstancesGlobally&&r.instances.push(t),t},e.exports.prototype.bind=t(2207),e.exports.prototype.bindMultiple=t(3396),e.exports.prototype.unbind=t(9208),e.exports.prototype.trigger=t(9855),e.exports.prototype.reset=t(6214),e.exports.prototype.stopCallback=t(3450),e.exports.prototype.handleKey=t(3067),e.exports.prototype.addEvents=t(718),e.exports.prototype.bindSingle=t(8763),e.exports.prototype.getKeyInfo=t(5825),e.exports.prototype.pickBestAction=t(8608),e.exports.prototype.getReverseMap=t(3956),e.exports.prototype.getMatches=t(3373),e.exports.prototype.resetSequences=t(3346),e.exports.prototype.fireCallback=t(2684),e.exports.prototype.bindSequence=t(7103),e.exports.prototype.resetSequenceTimer=t(7309),e.exports.prototype.detach=t(7554),e.exports.instances=[],e.exports.reset=t(1822),e.exports.REVERSE_MAP=null},718:(e,n,t)=>{"use strict";e.exports=function(){var e=this,n=t(4323),r=e.element;e.eventHandler=t(9646).bind(e),n(r,"keypress",e.eventHandler),n(r,"keydown",e.eventHandler),n(r,"keyup",e.eventHandler)}},2207:e=>{"use strict";e.exports=function(e,n,t){return e=e instanceof Array?e:[e],this.bindMultiple(e,n,t),this}},3396:e=>{"use strict";e.exports=function(e,n,t){for(var r=0;r{"use strict";e.exports=function(e,n,r,o){var i=this;function a(n){return function(){i.nextExpectedAction=n,++i.sequenceLevels[e],i.resetSequenceTimer()}}function l(n){var a;i.fireCallback(r,n,e),"keyup"!==o&&(a=t(6770),i.ignoreNextKeyup=a(n)),setTimeout((function(){i.resetSequences()}),10)}i.sequenceLevels[e]=0;for(var c=0;c{"use strict";e.exports=function(e,n,t,r,o){var i=this;i.directMap[e+":"+t]=n;var a,l=(e=e.replace(/\s+/g," ")).split(" ");l.length>1?i.bindSequence(e,l,n,t):(a=i.getKeyInfo(e,t),i.callbacks[a.key]=i.callbacks[a.key]||[],i.getMatches(a.key,a.modifiers,{type:a.action},r,e,o),i.callbacks[a.key][r?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:r,level:o,combo:e}))}},7554:(e,n,t)=>{var r=t(4323).off;e.exports=function(){var e=this,n=e.element;r(n,"keypress",e.eventHandler),r(n,"keydown",e.eventHandler),r(n,"keyup",e.eventHandler)}},4323:e=>{function n(e,n,t,r){return!e.addEventListener&&(n="on"+n),(e.addEventListener||e.attachEvent).call(e,n,t,r),t}e.exports=n,e.exports.on=n,e.exports.off=function(e,n,t,r){return!e.removeEventListener&&(n="on"+n),(e.removeEventListener||e.detachEvent).call(e,n,t,r),t}},2684:(e,n,t)=>{"use strict";e.exports=function(e,n,r,o){this.stopCallback(n,n.target||n.srcElement,r,o)||!1===e(n,r)&&(t(1350)(n),t(6103)(n))}},5825:(e,n,t)=>{"use strict";e.exports=function(e,n){var r,o,i,a,l,c,u=[];for(r=t(4520)(e),a=t(7549),l=t(5355),c=t(8581),i=0;i{"use strict";e.exports=function(e,n,r,o,i,a){var l,c,u,s,f=this,p=[],d=r.type;"keypress"!==d||r.code&&"Arrow"===r.code.slice(0,5)||(f.callbacks["any-character"]||[]).forEach((function(e){p.push(e)}));if(!f.callbacks[e])return p;for(u=t(8581),"keyup"===d&&u(e)&&(n=[e]),l=0;l{"use strict";e.exports=function(){var e,n=this.constructor;if(!n.REVERSE_MAP)for(var r in n.REVERSE_MAP={},e=t(4766))r>95&&r<112||e.hasOwnProperty(r)&&(n.REVERSE_MAP[e[r]]=r);return n.REVERSE_MAP}},3067:(e,n,t)=>{"use strict";e.exports=function(e,n,r){var o,i,a,l,c=this,u={},s=0,f=!1;for(o=c.getMatches(e,n,r),i=0;i{"use strict";e.exports=function(e){var n,r=this;"number"!=typeof e.which&&(e.which=e.keyCode);var o=t(6770)(e);void 0!==o&&("keyup"!==e.type||r.ignoreNextKeyup!==o?(n=t(4610),r.handleKey(o,n(e),e)):r.ignoreNextKeyup=!1)}},5532:e=>{"use strict";e.exports=function(e,n){return e.sort().join(",")===n.sort().join(",")}},8608:e=>{"use strict";e.exports=function(e,n,t){return t||(t=this.getReverseMap()[e]?"keydown":"keypress"),"keypress"===t&&n.length&&(t="keydown"),t}},6214:e=>{"use strict";e.exports=function(){return this.callbacks={},this.directMap={},this}},7309:e=>{"use strict";e.exports=function(){var e=this;clearTimeout(e.resetTimer),e.resetTimer=setTimeout((function(){e.resetSequences()}),1e3)}},3346:e=>{"use strict";e.exports=function(e){var n=this;e=e||{};var t,r=!1;for(t in n.sequenceLevels)e[t]?r=!0:n.sequenceLevels[t]=0;r||(n.nextExpectedAction=!1)}},3450:e=>{"use strict";e.exports=function(e,n){if((" "+n.className+" ").indexOf(" combokeys ")>-1)return!1;var t=n.tagName.toLowerCase();return"input"===t||"select"===t||"textarea"===t||n.isContentEditable}},9855:e=>{"use strict";e.exports=function(e,n){return this.directMap[e+":"+n]&&this.directMap[e+":"+n]({},e),this}},9208:e=>{"use strict";e.exports=function(e,n){return this.bind(e,(function(){}),n)}},1822:e=>{"use strict";e.exports=function(){this.instances.forEach((function(e){e.reset()}))}},6770:(e,n,t)=>{"use strict";e.exports=function(e){var n,r;if(n=t(4766),r=t(5295),"keypress"===e.type){var o=String.fromCharCode(e.which);return e.shiftKey||(o=o.toLowerCase()),o}return void 0!==n[e.which]?n[e.which]:void 0!==r[e.which]?r[e.which]:String.fromCharCode(e.which).toLowerCase()}},4610:e=>{"use strict";e.exports=function(e){var n=[];return e.shiftKey&&n.push("shift"),e.altKey&&n.push("alt"),e.ctrlKey&&n.push("ctrl"),e.metaKey&&n.push("meta"),n}},8581:e=>{"use strict";e.exports=function(e){return"shift"===e||"ctrl"===e||"alt"===e||"meta"===e}},4520:e=>{"use strict";e.exports=function(e){return"+"===e?["+"]:e.split("+")}},1350:e=>{"use strict";e.exports=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}},5355:e=>{"use strict";e.exports={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"}},7549:e=>{"use strict";e.exports={option:"alt",command:"meta",return:"enter",escape:"esc",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"}},5295:e=>{"use strict";e.exports={106:"*",107:"plus",109:"minus",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}},4766:e=>{"use strict";e.exports={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",173:"minus",187:"plus",189:"minus",224:"meta"};for(var n=1;n<20;++n)e.exports[111+n]="f"+n;for(n=0;n<=9;++n)e.exports[n+96]=n},6103:e=>{"use strict";e.exports=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}},3362:()=>{var e;!function(){var e=Math.PI,n=2*e,t=e/180,r=document.createElement("div");document.head.appendChild(r);var o=self.ConicGradient=function(e){o.all.push(this),e=e||{},this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.repeating=!!e.repeating,this.size=e.size||Math.max(innerWidth,innerHeight),this.canvas.width=this.canvas.height=this.size;var n=e.stops;this.stops=(n||"").split(/\s*,(?![^(]*\))\s*/),this.from=0;for(var t=0;t0){var i=this.stops[0].clone();i.pos=0,this.stops.unshift(i)}if(void 0===this.stops[this.stops.length-1].pos)this.stops[this.stops.length-1].pos=1;else if(!this.repeating&&this.stops[this.stops.length-1].pos<1){var a=this.stops[this.stops.length-1].clone();a.pos=1,this.stops.push(a)}if(this.stops.forEach((function(e,n){if(void 0===e.pos){for(var t=n+1;this[t];t++)if(void 0!==this[t].pos){e.pos=this[n-1].pos+(this[t].pos-this[n-1].pos)/(t-n+1);break}}else n>0&&(e.pos=Math.max(e.pos,this[n-1].pos))}),this.stops),this.repeating){var l=(n=this.stops.slice())[n.length-1].pos-n[0].pos;for(t=0;this.stops[this.stops.length-1].pos<1&&t<1e4;t++)for(var c=0;c'},get png(){return this.canvas.toDataURL()},get r(){return Math.sqrt(2)*this.size/2},paint:function(){var e,n,r,o=this.context,i=this.r,a=this.size/2,l=0,c=this.stops[l];o.translate(this.size/2,this.size/2),o.rotate(-90*t),o.rotate(this.from*t),o.translate(-this.size/2,-this.size/2);for(var u=0;u<360;){if(u/360+1e-5>=c.pos){do{e=c,l++,c=this.stops[l]}while(c&&c!=e&&c.pos===e.pos);if(!c)break;var s=e.color+""==c.color+""&&e!=c;n=e.color.map((function(e,n){return c.color[n]-e}))}r=(u/360-e.pos)/(c.pos-e.pos);var f=s?c.color:n.map((function(n,t){var o=n*r+e.color[t];return t<3?255&o:o}));if(o.fillStyle="rgba("+f.join(",")+")",o.beginPath(),o.moveTo(a,a),s)var p=360*(c.pos-e.pos);else p=.5;var d=u*t,h=(d=Math.min(360*t,d))+p*t;h=Math.min(360*t,h+.02),o.arc(a,a,i,d,h),o.closePath(),o.fill(),u+=p}}},o.ColorStop=function(e,t){if(this.gradient=e,t){var r=t.match(/^(.+?)(?:\s+([\d.]+)(%|deg|turn|grad|rad)?)?(?:\s+([\d.]+)(%|deg|turn|grad|rad)?)?\s*$/);if(this.color=o.ColorStop.colorToRGBA(r[1]),r[2]){var i=r[3];"%"==i||"0"===r[2]&&!i?this.pos=r[2]/100:"turn"==i?this.pos=+r[2]:"deg"==i?this.pos=r[2]/360:"grad"==i?this.pos=r[2]/400:"rad"==i&&(this.pos=r[2]/n)}r[4]&&(this.next=new o.ColorStop(e,r[1]+" "+r[4]+r[5]))}},o.ColorStop.prototype={clone:function(){var e=new o.ColorStop(this.gradient);return e.color=this.color,e.pos=this.pos,e},toString:function(){return"rgba("+this.color.join(", ")+") "+100*this.pos+"%"}},o.ColorStop.colorToRGBA=function(e){if(!Array.isArray(e)&&-1==e.indexOf("from")){r.style.color=e;var n=getComputedStyle(r).color.match(/rgba?\(([\d.]+), ([\d.]+), ([\d.]+)(?:, ([\d.]+))?\)/);return n&&(n.shift(),(n=n.map((function(e){return+e})))[3]=isNaN(n[3])?1:n[3]),n||[0,0,0,0]}return e}}(),self.StyleFix&&((e=document.createElement("p")).style.backgroundImage="conic-gradient(white, black)",e.style.backgroundImage=PrefixFree.prefix+"conic-gradient(white, black)",e.style.backgroundImage||StyleFix.register((function(e,n){return e.indexOf("conic-gradient")>-1&&(e=e.replace(/(?:repeating-)?conic-gradient\(\s*((?:\([^()]+\)|[^;()}])+?)\)/g,(function(e,n){return new ConicGradient({stops:n,repeating:e.indexOf("repeating-")>-1})}))),e})))},9662:(e,n,t)=>{var r=t(7854),o=t(614),i=t(6330),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a function")}},9483:(e,n,t)=>{var r=t(7854),o=t(4411),i=t(6330),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a constructor")}},6077:(e,n,t)=>{var r=t(7854),o=t(614),i=r.String,a=r.TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw a("Can't set "+i(e)+" as a prototype")}},1223:(e,n,t)=>{var r=t(5112),o=t(30),i=t(3070),a=r("unscopables"),l=Array.prototype;null==l[a]&&i.f(l,a,{configurable:!0,value:o(null)}),e.exports=function(e){l[a][e]=!0}},1530:(e,n,t)=>{"use strict";var r=t(8710).charAt;e.exports=function(e,n,t){return n+(t?r(e,n).length:1)}},5787:(e,n,t)=>{var r=t(7854),o=t(7976),i=r.TypeError;e.exports=function(e,n){if(o(n,e))return e;throw i("Incorrect invocation")}},9670:(e,n,t)=>{var r=t(7854),o=t(111),i=r.String,a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not an object")}},7556:(e,n,t)=>{var r=t(7293);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},8533:(e,n,t)=>{"use strict";var r=t(2092).forEach,o=t(9341)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},8457:(e,n,t)=>{"use strict";var r=t(7854),o=t(9974),i=t(6916),a=t(7908),l=t(3411),c=t(7659),u=t(4411),s=t(6244),f=t(6135),p=t(8554),d=t(1246),h=r.Array;e.exports=function(e){var n=a(e),t=u(this),r=arguments.length,g=r>1?arguments[1]:void 0,v=void 0!==g;v&&(g=o(g,r>2?arguments[2]:void 0));var A,b,m,y,E,_,C=d(n),w=0;if(!C||this==h&&c(C))for(A=s(n),b=t?new this(A):h(A);A>w;w++)_=v?g(n[w],w):n[w],f(b,w,_);else for(E=(y=p(n,C)).next,b=t?new this:[];!(m=i(E,y)).done;w++)_=v?l(y,g,[m.value,w],!0):m.value,f(b,w,_);return b.length=w,b}},1318:(e,n,t)=>{var r=t(5656),o=t(1400),i=t(6244),a=function(e){return function(n,t,a){var l,c=r(n),u=i(c),s=o(a,u);if(e&&t!=t){for(;u>s;)if((l=c[s++])!=l)return!0}else for(;u>s;s++)if((e||s in c)&&c[s]===t)return e||s||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2092:(e,n,t)=>{var r=t(9974),o=t(1702),i=t(8361),a=t(7908),l=t(6244),c=t(5417),u=o([].push),s=function(e){var n=1==e,t=2==e,o=3==e,s=4==e,f=6==e,p=7==e,d=5==e||f;return function(h,g,v,A){for(var b,m,y=a(h),E=i(y),_=r(g,v),C=l(E),w=0,x=A||c,k=n?x(h,C):t||p?x(h,0):void 0;C>w;w++)if((d||w in E)&&(m=_(b=E[w],w,y),e))if(n)k[w]=m;else if(m)switch(e){case 3:return!0;case 5:return b;case 6:return w;case 2:u(k,b)}else switch(e){case 4:return!1;case 7:u(k,b)}return f?-1:o||s?s:k}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},1194:(e,n,t)=>{var r=t(7293),o=t(5112),i=t(7392),a=o("species");e.exports=function(e){return i>=51||!r((function(){var n=[];return(n.constructor={})[a]=function(){return{foo:1}},1!==n[e](Boolean).foo}))}},9341:(e,n,t)=>{"use strict";var r=t(7293);e.exports=function(e,n){var t=[][e];return!!t&&r((function(){t.call(null,n||function(){throw 1},1)}))}},3671:(e,n,t)=>{var r=t(7854),o=t(9662),i=t(7908),a=t(8361),l=t(6244),c=r.TypeError,u=function(e){return function(n,t,r,u){o(t);var s=i(n),f=a(s),p=l(s),d=e?p-1:0,h=e?-1:1;if(r<2)for(;;){if(d in f){u=f[d],d+=h;break}if(d+=h,e?d<0:p<=d)throw c("Reduce of empty array with no initial value")}for(;e?d>=0:p>d;d+=h)d in f&&(u=t(u,f[d],d,s));return u}};e.exports={left:u(!1),right:u(!0)}},206:(e,n,t)=>{var r=t(1702);e.exports=r([].slice)},4362:(e,n,t)=>{var r=t(206),o=Math.floor,i=function(e,n){var t=e.length,c=o(t/2);return t<8?a(e,n):l(e,i(r(e,0,c),n),i(r(e,c),n),n)},a=function(e,n){for(var t,r,o=e.length,i=1;i0;)e[r]=e[--r];r!==i++&&(e[r]=t)}return e},l=function(e,n,t,r){for(var o=n.length,i=t.length,a=0,l=0;a{var r=t(7854),o=t(3157),i=t(4411),a=t(111),l=t(5112)("species"),c=r.Array;e.exports=function(e){var n;return o(e)&&(n=e.constructor,(i(n)&&(n===c||o(n.prototype))||a(n)&&null===(n=n[l]))&&(n=void 0)),void 0===n?c:n}},5417:(e,n,t)=>{var r=t(7475);e.exports=function(e,n){return new(r(e))(0===n?0:n)}},3411:(e,n,t)=>{var r=t(9670),o=t(9212);e.exports=function(e,n,t,i){try{return i?n(r(t)[0],t[1]):n(t)}catch(n){o(e,"throw",n)}}},7072:(e,n,t)=>{var r=t(5112)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,n){if(!n&&!o)return!1;var t=!1;try{var i={};i[r]=function(){return{next:function(){return{done:t=!0}}}},e(i)}catch(e){}return t}},4326:(e,n,t)=>{var r=t(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},648:(e,n,t)=>{var r=t(7854),o=t(1694),i=t(614),a=t(4326),l=t(5112)("toStringTag"),c=r.Object,u="Arguments"==a(function(){return arguments}());e.exports=o?a:function(e){var n,t,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,n){try{return e[n]}catch(e){}}(n=c(e),l))?t:u?a(n):"Object"==(r=a(n))&&i(n.callee)?"Arguments":r}},5631:(e,n,t)=>{"use strict";var r=t(3070).f,o=t(30),i=t(2248),a=t(9974),l=t(5787),c=t(408),u=t(654),s=t(6340),f=t(9781),p=t(2423).fastKey,d=t(9909),h=d.set,g=d.getterFor;e.exports={getConstructor:function(e,n,t,u){var s=e((function(e,r){l(e,d),h(e,{type:n,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&c(r,e[u],{that:e,AS_ENTRIES:t})})),d=s.prototype,v=g(n),A=function(e,n,t){var r,o,i=v(e),a=b(e,n);return a?a.value=t:(i.last=a={index:o=p(n,!0),key:n,value:t,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},b=function(e,n){var t,r=v(e),o=p(n);if("F"!==o)return r.index[o];for(t=r.first;t;t=t.next)if(t.key==n)return t};return i(d,{clear:function(){for(var e=v(this),n=e.index,t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),delete n[t.index],t=t.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var n=this,t=v(n),r=b(n,e);if(r){var o=r.next,i=r.previous;delete t.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),t.first==r&&(t.first=o),t.last==r&&(t.last=i),f?t.size--:n.size--}return!!r},forEach:function(e){for(var n,t=v(this),r=a(e,arguments.length>1?arguments[1]:void 0);n=n?n.next:t.first;)for(r(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function(e){return!!b(this,e)}}),i(d,t?{get:function(e){var n=b(this,e);return n&&n.value},set:function(e,n){return A(this,0===e?0:e,n)}}:{add:function(e){return A(this,e=0===e?0:e,e)}}),f&&r(d,"size",{get:function(){return v(this).size}}),s},setStrong:function(e,n,t){var r=n+" Iterator",o=g(n),i=g(r);u(e,n,(function(e,n){h(this,{type:r,target:e,state:o(e),kind:n,last:void 0})}),(function(){for(var e=i(this),n=e.kind,t=e.last;t&&t.removed;)t=t.previous;return e.target&&(e.last=t=t?t.next:e.state.first)?"keys"==n?{value:t.key,done:!1}:"values"==n?{value:t.value,done:!1}:{value:[t.key,t.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),t?"entries":"values",!t,!0),s(n)}}},9320:(e,n,t)=>{"use strict";var r=t(1702),o=t(2248),i=t(2423).getWeakData,a=t(9670),l=t(111),c=t(5787),u=t(408),s=t(2092),f=t(2597),p=t(9909),d=p.set,h=p.getterFor,g=s.find,v=s.findIndex,A=r([].splice),b=0,m=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},E=function(e,n){return g(e.entries,(function(e){return e[0]===n}))};y.prototype={get:function(e){var n=E(this,e);if(n)return n[1]},has:function(e){return!!E(this,e)},set:function(e,n){var t=E(this,e);t?t[1]=n:this.entries.push([e,n])},delete:function(e){var n=v(this.entries,(function(n){return n[0]===e}));return~n&&A(this.entries,n,1),!!~n}},e.exports={getConstructor:function(e,n,t,r){var s=e((function(e,o){c(e,p),d(e,{type:n,id:b++,frozen:void 0}),null!=o&&u(o,e[r],{that:e,AS_ENTRIES:t})})),p=s.prototype,g=h(n),v=function(e,n,t){var r=g(e),o=i(a(n),!0);return!0===o?m(r).set(n,t):o[r.id]=t,e};return o(p,{delete:function(e){var n=g(this);if(!l(e))return!1;var t=i(e);return!0===t?m(n).delete(e):t&&f(t,n.id)&&delete t[n.id]},has:function(e){var n=g(this);if(!l(e))return!1;var t=i(e);return!0===t?m(n).has(e):t&&f(t,n.id)}}),o(p,t?{get:function(e){var n=g(this);if(l(e)){var t=i(e);return!0===t?m(n).get(e):t?t[n.id]:void 0}},set:function(e,n){return v(this,e,n)}}:{add:function(e){return v(this,e,!0)}}),s}}},7710:(e,n,t)=>{"use strict";var r=t(2109),o=t(7854),i=t(1702),a=t(4705),l=t(1320),c=t(2423),u=t(408),s=t(5787),f=t(614),p=t(111),d=t(7293),h=t(7072),g=t(8003),v=t(9587);e.exports=function(e,n,t){var A=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),m=A?"set":"add",y=o[e],E=y&&y.prototype,_=y,C={},w=function(e){var n=i(E[e]);l(E,e,"add"==e?function(e){return n(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!p(e))&&n(this,0===e?0:e)}:"get"==e?function(e){return b&&!p(e)?void 0:n(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!p(e))&&n(this,0===e?0:e)}:function(e,t){return n(this,0===e?0:e,t),this})};if(a(e,!f(y)||!(b||E.forEach&&!d((function(){(new y).entries().next()})))))_=t.getConstructor(n,e,A,m),c.enable();else if(a(e,!0)){var x=new _,k=x[m](b?{}:-0,1)!=x,S=d((function(){x.has(1)})),O=h((function(e){new y(e)})),B=!b&&d((function(){for(var e=new y,n=5;n--;)e[m](n,n);return!e.has(-0)}));O||((_=n((function(e,n){s(e,E);var t=v(new y,e,_);return null!=n&&u(n,t[m],{that:t,AS_ENTRIES:A}),t}))).prototype=E,E.constructor=_),(S||B)&&(w("delete"),w("has"),A&&w("get")),(B||k)&&w(m),b&&E.clear&&delete E.clear}return C[e]=_,r({global:!0,forced:_!=y},C),g(_,e),b||t.setStrong(_,e,A),_}},9920:(e,n,t)=>{var r=t(2597),o=t(3887),i=t(1236),a=t(3070);e.exports=function(e,n){for(var t=o(n),l=a.f,c=i.f,u=0;u{var r=t(5112)("match");e.exports=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[r]=!1,"/./"[e](n)}catch(e){}}return!1}},8544:(e,n,t)=>{var r=t(7293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4230:(e,n,t)=>{var r=t(1702),o=t(4488),i=t(1340),a=/"/g,l=r("".replace);e.exports=function(e,n,t,r){var c=i(o(e)),u="<"+n;return""!==t&&(u+=" "+t+'="'+l(i(r),a,""")+'"'),u+">"+c+""}},4994:(e,n,t)=>{"use strict";var r=t(3383).IteratorPrototype,o=t(30),i=t(9114),a=t(8003),l=t(7497),c=function(){return this};e.exports=function(e,n,t){var u=n+" Iterator";return e.prototype=o(r,{next:i(1,t)}),a(e,u,!1,!0),l[u]=c,e}},8880:(e,n,t)=>{var r=t(9781),o=t(3070),i=t(9114);e.exports=r?function(e,n,t){return o.f(e,n,i(1,t))}:function(e,n,t){return e[n]=t,e}},9114:e=>{e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},6135:(e,n,t)=>{"use strict";var r=t(4948),o=t(3070),i=t(9114);e.exports=function(e,n,t){var a=r(n);a in e?o.f(e,a,i(0,t)):e[a]=t}},8709:(e,n,t)=>{"use strict";var r=t(7854),o=t(9670),i=t(2140),a=r.TypeError;e.exports=function(e){if(o(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw a("Incorrect hint");return i(this,e)}},654:(e,n,t)=>{"use strict";var r=t(2109),o=t(6916),i=t(1913),a=t(6530),l=t(614),c=t(4994),u=t(9518),s=t(7674),f=t(8003),p=t(8880),d=t(1320),h=t(5112),g=t(7497),v=t(3383),A=a.PROPER,b=a.CONFIGURABLE,m=v.IteratorPrototype,y=v.BUGGY_SAFARI_ITERATORS,E=h("iterator"),_="keys",C="values",w="entries",x=function(){return this};e.exports=function(e,n,t,a,h,v,k){c(t,n,a);var S,O,B,I=function(e){if(e===h&&R)return R;if(!y&&e in j)return j[e];switch(e){case _:case C:case w:return function(){return new t(this,e)}}return function(){return new t(this)}},T=n+" Iterator",P=!1,j=e.prototype,z=j[E]||j["@@iterator"]||h&&j[h],R=!y&&z||I(h),M="Array"==n&&j.entries||z;if(M&&(S=u(M.call(new e)))!==Object.prototype&&S.next&&(i||u(S)===m||(s?s(S,m):l(S[E])||d(S,E,x)),f(S,T,!0,!0),i&&(g[T]=x)),A&&h==C&&z&&z.name!==C&&(!i&&b?p(j,"name",C):(P=!0,R=function(){return o(z,this)})),h)if(O={values:I(C),keys:v?R:I(_),entries:I(w)},k)for(B in O)(y||P||!(B in j))&&d(j,B,O[B]);else r({target:n,proto:!0,forced:y||P},O);return i&&!k||j[E]===R||d(j,E,R,{name:h}),g[n]=R,O}},7235:(e,n,t)=>{var r=t(857),o=t(2597),i=t(6061),a=t(3070).f;e.exports=function(e){var n=r.Symbol||(r.Symbol={});o(n,e)||a(n,e,{value:i.f(e)})}},9781:(e,n,t)=>{var r=t(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(e,n,t)=>{var r=t(7854),o=t(111),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},8324:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:(e,n,t)=>{var r=t(317)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},8886:(e,n,t)=>{var r=t(8113).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},256:(e,n,t)=>{var r=t(8113);e.exports=/MSIE|Trident/.test(r)},5268:(e,n,t)=>{var r=t(4326),o=t(7854);e.exports="process"==r(o.process)},8113:(e,n,t)=>{var r=t(5005);e.exports=r("navigator","userAgent")||""},7392:(e,n,t)=>{var r,o,i=t(7854),a=t(8113),l=i.process,c=i.Deno,u=l&&l.versions||c&&c.version,s=u&&u.v8;s&&(o=(r=s.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},8008:(e,n,t)=>{var r=t(8113).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(e,n,t)=>{var r=t(7854),o=t(1236).f,i=t(8880),a=t(1320),l=t(3505),c=t(9920),u=t(4705);e.exports=function(e,n){var t,s,f,p,d,h=e.target,g=e.global,v=e.stat;if(t=g?r:v?r[h]||l(h,{}):(r[h]||{}).prototype)for(s in n){if(p=n[s],f=e.noTargetGet?(d=o(t,s))&&d.value:t[s],!u(g?s:h+(v?".":"#")+s,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;c(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),a(t,s,p,e)}}},7293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},7007:(e,n,t)=>{"use strict";t(4916);var r=t(1702),o=t(1320),i=t(2261),a=t(7293),l=t(5112),c=t(8880),u=l("species"),s=RegExp.prototype;e.exports=function(e,n,t,f){var p=l(e),d=!a((function(){var n={};return n[p]=function(){return 7},7!=""[e](n)})),h=d&&!a((function(){var n=!1,t=/a/;return"split"===e&&((t={}).constructor={},t.constructor[u]=function(){return t},t.flags="",t[p]=/./[p]),t.exec=function(){return n=!0,null},t[p](""),!n}));if(!d||!h||t){var g=r(/./[p]),v=n(p,""[e],(function(e,n,t,o,a){var l=r(e),c=n.exec;return c===i||c===s.exec?d&&!a?{done:!0,value:g(n,t,o)}:{done:!0,value:l(t,n,o)}:{done:!1}}));o(String.prototype,e,v[0]),o(s,p,v[1])}f&&c(s[p],"sham",!0)}},6677:(e,n,t)=>{var r=t(7293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:e=>{var n=Function.prototype,t=n.apply,r=n.bind,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(t):function(){return o.apply(t,arguments)})},9974:(e,n,t)=>{var r=t(1702),o=t(9662),i=r(r.bind);e.exports=function(e,n){return o(e),void 0===n?e:i?i(e,n):function(){return e.apply(n,arguments)}}},7065:(e,n,t)=>{"use strict";var r=t(7854),o=t(1702),i=t(9662),a=t(111),l=t(2597),c=t(206),u=r.Function,s=o([].concat),f=o([].join),p={},d=function(e,n,t){if(!l(p,n)){for(var r=[],o=0;o{var n=Function.prototype.call;e.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},6530:(e,n,t)=>{var r=t(9781),o=t(2597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,l=o(i,"name"),c=l&&"something"===function(){}.name,u=l&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:l,PROPER:c,CONFIGURABLE:u}},1702:e=>{var n=Function.prototype,t=n.bind,r=n.call,o=t&&t.bind(r);e.exports=t?function(e){return e&&o(r,e)}:function(e){return e&&function(){return r.apply(e,arguments)}}},5005:(e,n,t)=>{var r=t(7854),o=t(614),i=function(e){return o(e)?e:void 0};e.exports=function(e,n){return arguments.length<2?i(r[e]):r[e]&&r[e][n]}},1246:(e,n,t)=>{var r=t(648),o=t(8173),i=t(7497),a=t(5112)("iterator");e.exports=function(e){if(null!=e)return o(e,a)||o(e,"@@iterator")||i[r(e)]}},8554:(e,n,t)=>{var r=t(7854),o=t(6916),i=t(9662),a=t(9670),l=t(6330),c=t(1246),u=r.TypeError;e.exports=function(e,n){var t=arguments.length<2?c(e):n;if(i(t))return a(o(t,e));throw u(l(e)+" is not iterable")}},8173:(e,n,t)=>{var r=t(9662);e.exports=function(e,n){var t=e[n];return null==t?void 0:r(t)}},647:(e,n,t)=>{var r=t(1702),o=t(7908),i=Math.floor,a=r("".charAt),l=r("".replace),c=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,n,t,r,f,p){var d=t+e.length,h=r.length,g=s;return void 0!==f&&(f=o(f),g=u),l(p,g,(function(o,l){var u;switch(a(l,0)){case"$":return"$";case"&":return e;case"`":return c(n,0,t);case"'":return c(n,d);case"<":u=f[c(l,1,-1)];break;default:var s=+l;if(0===s)return o;if(s>h){var p=i(s/10);return 0===p?o:p<=h?void 0===r[p-1]?a(l,1):r[p-1]+a(l,1):o}u=r[s-1]}return void 0===u?"":u}))}},7854:(e,n,t)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t.g&&t.g)||function(){return this}()||Function("return this")()},2597:(e,n,t)=>{var r=t(1702),o=t(7908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,n){return i(o(e),n)}},3501:e=>{e.exports={}},490:(e,n,t)=>{var r=t(5005);e.exports=r("document","documentElement")},4664:(e,n,t)=>{var r=t(9781),o=t(7293),i=t(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:(e,n,t)=>{var r=t(7854),o=t(1702),i=t(7293),a=t(4326),l=r.Object,c=o("".split);e.exports=i((function(){return!l("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?c(e,""):l(e)}:l},9587:(e,n,t)=>{var r=t(614),o=t(111),i=t(7674);e.exports=function(e,n,t){var a,l;return i&&r(a=n.constructor)&&a!==t&&o(l=a.prototype)&&l!==t.prototype&&i(e,l),e}},2788:(e,n,t)=>{var r=t(1702),o=t(614),i=t(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},2423:(e,n,t)=>{var r=t(2109),o=t(1702),i=t(3501),a=t(111),l=t(2597),c=t(3070).f,u=t(8006),s=t(1156),f=t(2050),p=t(9711),d=t(6677),h=!1,g=p("meta"),v=0,A=function(e){c(e,g,{value:{objectID:"O"+v++,weakData:{}}})},b=e.exports={enable:function(){b.enable=function(){},h=!0;var e=u.f,n=o([].splice),t={};t[g]=1,e(t).length&&(u.f=function(t){for(var r=e(t),o=0,i=r.length;o{var r,o,i,a=t(8536),l=t(7854),c=t(1702),u=t(111),s=t(8880),f=t(2597),p=t(5465),d=t(6200),h=t(3501),g="Object already initialized",v=l.TypeError,A=l.WeakMap;if(a||p.state){var b=p.state||(p.state=new A),m=c(b.get),y=c(b.has),E=c(b.set);r=function(e,n){if(y(b,e))throw new v(g);return n.facade=e,E(b,e,n),n},o=function(e){return m(b,e)||{}},i=function(e){return y(b,e)}}else{var _=d("state");h[_]=!0,r=function(e,n){if(f(e,_))throw new v(g);return n.facade=e,s(e,_,n),n},o=function(e){return f(e,_)?e[_]:{}},i=function(e){return f(e,_)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(n){var t;if(!u(n)||(t=o(n)).type!==e)throw v("Incompatible receiver, "+e+" required");return t}}}},7659:(e,n,t)=>{var r=t(5112),o=t(7497),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},3157:(e,n,t)=>{var r=t(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:e=>{e.exports=function(e){return"function"==typeof e}},4411:(e,n,t)=>{var r=t(1702),o=t(7293),i=t(614),a=t(648),l=t(5005),c=t(2788),u=function(){},s=[],f=l("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=r(p.exec),h=!p.exec(u),g=function(e){if(!i(e))return!1;try{return f(u,s,e),!0}catch(e){return!1}};e.exports=!f||o((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return h||!!d(p,c(e))}:g},4705:(e,n,t)=>{var r=t(7293),o=t(614),i=/#|\.prototype\./,a=function(e,n){var t=c[l(e)];return t==s||t!=u&&(o(n)?r(n):!!n)},l=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",s=a.POLYFILL="P";e.exports=a},111:(e,n,t)=>{var r=t(614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},1913:e=>{e.exports=!1},7850:(e,n,t)=>{var r=t(111),o=t(4326),i=t(5112)("match");e.exports=function(e){var n;return r(e)&&(void 0!==(n=e[i])?!!n:"RegExp"==o(e))}},2190:(e,n,t)=>{var r=t(7854),o=t(5005),i=t(614),a=t(7976),l=t(3307),c=r.Object;e.exports=l?function(e){return"symbol"==typeof e}:function(e){var n=o("Symbol");return i(n)&&a(n.prototype,c(e))}},408:(e,n,t)=>{var r=t(7854),o=t(9974),i=t(6916),a=t(9670),l=t(6330),c=t(7659),u=t(6244),s=t(7976),f=t(8554),p=t(1246),d=t(9212),h=r.TypeError,g=function(e,n){this.stopped=e,this.result=n},v=g.prototype;e.exports=function(e,n,t){var r,A,b,m,y,E,_,C=t&&t.that,w=!(!t||!t.AS_ENTRIES),x=!(!t||!t.IS_ITERATOR),k=!(!t||!t.INTERRUPTED),S=o(n,C),O=function(e){return r&&d(r,"normal",e),new g(!0,e)},B=function(e){return w?(a(e),k?S(e[0],e[1],O):S(e[0],e[1])):k?S(e,O):S(e)};if(x)r=e;else{if(!(A=p(e)))throw h(l(e)+" is not iterable");if(c(A)){for(b=0,m=u(e);m>b;b++)if((y=B(e[b]))&&s(v,y))return y;return new g(!1)}r=f(e,A)}for(E=r.next;!(_=i(E,r)).done;){try{y=B(_.value)}catch(e){d(r,"throw",e)}if("object"==typeof y&&y&&s(v,y))return y}return new g(!1)}},9212:(e,n,t)=>{var r=t(6916),o=t(9670),i=t(8173);e.exports=function(e,n,t){var a,l;o(e);try{if(!(a=i(e,"return"))){if("throw"===n)throw t;return t}a=r(a,e)}catch(e){l=!0,a=e}if("throw"===n)throw t;if(l)throw a;return o(a),t}},3383:(e,n,t)=>{"use strict";var r,o,i,a=t(7293),l=t(614),c=t(30),u=t(9518),s=t(1320),f=t(5112),p=t(1913),d=f("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):h=!0),null==r||a((function(){var e={};return r[d].call(e)!==e}))?r={}:p&&(r=c(r)),l(r[d])||s(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},7497:e=>{e.exports={}},6244:(e,n,t)=>{var r=t(7466);e.exports=function(e){return r(e.length)}},133:(e,n,t)=>{var r=t(7392),o=t(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:(e,n,t)=>{var r=t(7854),o=t(614),i=t(2788),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},3929:(e,n,t)=>{var r=t(7854),o=t(7850),i=r.TypeError;e.exports=function(e){if(o(e))throw i("The method doesn't accept regular expressions");return e}},1574:(e,n,t)=>{"use strict";var r=t(9781),o=t(1702),i=t(6916),a=t(7293),l=t(1956),c=t(5181),u=t(5296),s=t(7908),f=t(8361),p=Object.assign,d=Object.defineProperty,h=o([].concat);e.exports=!p||a((function(){if(r&&1!==p({b:1},p(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},t=Symbol(),o="abcdefghijklmnopqrst";return e[t]=7,o.split("").forEach((function(e){n[e]=e})),7!=p({},e)[t]||l(p({},n)).join("")!=o}))?function(e,n){for(var t=s(e),o=arguments.length,a=1,p=c.f,d=u.f;o>a;)for(var g,v=f(arguments[a++]),A=p?h(l(v),p(v)):l(v),b=A.length,m=0;b>m;)g=A[m++],r&&!i(d,v,g)||(t[g]=v[g]);return t}:p},30:(e,n,t)=>{var r,o=t(9670),i=t(6048),a=t(748),l=t(3501),c=t(490),u=t(317),s=t(6200),f=s("IE_PROTO"),p=function(){},d=function(e){return" + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

okio

+
+

Packages

+
+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
apple
+
common
+
js
+ +
native
+
nonApple
+
nonJvm
+
systemFileSystem
+ +
zlib
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/navigation.html b/3.x/okio/navigation.html new file mode 100644 index 0000000000..da7b7fcb53 --- /dev/null +++ b/3.x/okio/navigation.html @@ -0,0 +1,211 @@ + + diff --git a/3.x/okio/okio/okio/-array-index-out-of-bounds-exception/-array-index-out-of-bounds-exception.html b/3.x/okio/okio/okio/-array-index-out-of-bounds-exception/-array-index-out-of-bounds-exception.html new file mode 100644 index 0000000000..f0a0253730 --- /dev/null +++ b/3.x/okio/okio/okio/-array-index-out-of-bounds-exception/-array-index-out-of-bounds-exception.html @@ -0,0 +1,85 @@ + + + + + ArrayIndexOutOfBoundsException + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

ArrayIndexOutOfBoundsException

+
+
+
+
expect constructor(message: String?)
actual constructor(message: String?)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-array-index-out-of-bounds-exception/index.html b/3.x/okio/okio/okio/-array-index-out-of-bounds-exception/index.html new file mode 100644 index 0000000000..6c58fea509 --- /dev/null +++ b/3.x/okio/okio/okio/-array-index-out-of-bounds-exception/index.html @@ -0,0 +1,150 @@ + + + + + ArrayIndexOutOfBoundsException + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

ArrayIndexOutOfBoundsException

+ +
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect constructor(message: String?)
actual constructor(message: String?)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+
cause
+ +
Link copied to clipboard
+
+
+
+
+
+
open val cause: Throwable?
open val cause: Throwable?
+
+
+
+
+ +
+
+
+
message
+ +
Link copied to clipboard
+
+
+
+
+
+
open val message: String?
open val message: String?
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-async-timeout/-async-timeout.html b/3.x/okio/okio/okio/-async-timeout/-async-timeout.html new file mode 100644 index 0000000000..293db222e6 --- /dev/null +++ b/3.x/okio/okio/okio/-async-timeout/-async-timeout.html @@ -0,0 +1,84 @@ + + + + + AsyncTimeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

AsyncTimeout

+
+
+
+
constructor()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-async-timeout/cancel.html b/3.x/okio/okio/okio/-async-timeout/cancel.html new file mode 100644 index 0000000000..8000b720c7 --- /dev/null +++ b/3.x/okio/okio/okio/-async-timeout/cancel.html @@ -0,0 +1,84 @@ + + + + + cancel + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

cancel

+
+
+
+
open override fun cancel()

Prevent all current applications of this timeout from firing. Use this when a time-limited operation should no longer be time-limited because the nature of the operation has changed.

This function does not mutate the deadlineNanoTime or timeoutNanos properties of this timeout. It only applies to active operations that are limited by this timeout, and applies by allowing those operations to run indefinitely.

Subclasses that override this method must call super.cancel().

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-async-timeout/enter.html b/3.x/okio/okio/okio/-async-timeout/enter.html new file mode 100644 index 0000000000..5b7e80b14e --- /dev/null +++ b/3.x/okio/okio/okio/-async-timeout/enter.html @@ -0,0 +1,84 @@ + + + + + enter + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

enter

+
+
+
+
fun enter()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-async-timeout/exit.html b/3.x/okio/okio/okio/-async-timeout/exit.html new file mode 100644 index 0000000000..66c940dca7 --- /dev/null +++ b/3.x/okio/okio/okio/-async-timeout/exit.html @@ -0,0 +1,84 @@ + + + + + exit + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

exit

+
+
+
+
fun exit(): Boolean

Returns true if the timeout occurred.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-async-timeout/index.html b/3.x/okio/okio/okio/-async-timeout/index.html new file mode 100644 index 0000000000..c67dd85d2f --- /dev/null +++ b/3.x/okio/okio/okio/-async-timeout/index.html @@ -0,0 +1,420 @@ + + + + + AsyncTimeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

AsyncTimeout

+
+
+
open class AsyncTimeout : Timeout

This timeout uses a background thread to take action exactly when the timeout occurs. Use this to implement timeouts where they aren't supported natively, such as to sockets that are blocked on writing.

Subclasses should override timedOut to take action when a timeout occurs. This method will be invoked by the shared watchdog thread so it should not do any long-running operations. Otherwise, we risk starving other timeouts from being triggered.

Use sink and source to apply this timeout to a stream. The returned value will apply the timeout to each operation on the wrapped stream.

Callers should call enter before doing work that is subject to timeouts, and exit afterward. The return value of exit indicates whether a timeout was triggered. Note that the call to timedOut is asynchronous, and may be called after exit.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
constructor()
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open fun awaitSignal(condition: Condition)

Waits on monitor until it is signaled. Throws InterruptedIOException if either the thread is interrupted or if this timeout elapses before monitor is signaled. The caller must hold the lock that monitor is bound to.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun cancel()

Prevent all current applications of this timeout from firing. Use this when a time-limited operation should no longer be time-limited because the nature of the operation has changed.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Clears the deadline.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open fun clearTimeout(): Timeout

Clears the timeout. Operating system timeouts may still apply.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun deadline(duration: Long, unit: TimeUnit): Timeout

Set a deadline of now plus duration time.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns the nano time when the deadline will be reached.

open fun deadlineNanoTime(deadlineNanoTime: Long): Timeout

Sets the nano time when the deadline will be reached. All operations must complete before this time. Use a deadline to set a maximum bound on the time spent on a sequence of operations.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun enter()
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun exit(): Boolean

Returns true if the timeout occurred.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open fun hasDeadline(): Boolean

Returns true if a deadline is enabled.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun <T> intersectWith(other: Timeout, block: () -> T): T

Applies the minimum intersection between this timeout and other, run block, then finally rollback this timeout's values.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun sink(sink: Sink): Sink

Returns a new sink that delegates to sink, using this to implement timeouts. This works best if timedOut is overridden to interrupt sink's current operation.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun source(source: Source): Source

Returns a new source that delegates to source, using this to implement timeouts. This works best if timedOut is overridden to interrupt source's current operation.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open fun throwIfReached()

Throws an InterruptedIOException if the deadline has been reached or if the current thread has been interrupted. This method doesn't detect timeouts; that should be implemented to asynchronously abort an in-progress operation.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open fun timeout(timeout: Long, unit: TimeUnit): Timeout

Wait at most timeout time before aborting an operation. Using a per-operation timeout means that as long as forward progress is being made, no sequence of operations will fail.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun Timeout.timeout(timeout: Long, unit: DurationUnit): Timeout
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open fun timeoutNanos(): Long

Returns the timeout in nanoseconds, or 0 for no timeout.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open fun waitUntilNotified(monitor: Any)

Waits on monitor until it is notified. Throws InterruptedIOException if either the thread is interrupted or if this timeout elapses before monitor is notified. The caller must be synchronized on monitor.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun <T> withTimeout(block: () -> T): T

Surrounds block with calls to enter and exit, throwing an exception from newTimeoutException if a timeout occurred.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-async-timeout/sink.html b/3.x/okio/okio/okio/-async-timeout/sink.html new file mode 100644 index 0000000000..d8bc32d065 --- /dev/null +++ b/3.x/okio/okio/okio/-async-timeout/sink.html @@ -0,0 +1,84 @@ + + + + + sink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sink

+
+
+
+
fun sink(sink: Sink): Sink

Returns a new sink that delegates to sink, using this to implement timeouts. This works best if timedOut is overridden to interrupt sink's current operation.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-async-timeout/source.html b/3.x/okio/okio/okio/-async-timeout/source.html new file mode 100644 index 0000000000..7ae631dc2b --- /dev/null +++ b/3.x/okio/okio/okio/-async-timeout/source.html @@ -0,0 +1,84 @@ + + + + + source + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

source

+
+
+
+
fun source(source: Source): Source

Returns a new source that delegates to source, using this to implement timeouts. This works best if timedOut is overridden to interrupt source's current operation.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-async-timeout/with-timeout.html b/3.x/okio/okio/okio/-async-timeout/with-timeout.html new file mode 100644 index 0000000000..ea05b60ac3 --- /dev/null +++ b/3.x/okio/okio/okio/-async-timeout/with-timeout.html @@ -0,0 +1,84 @@ + + + + + withTimeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

withTimeout

+
+
+
+
inline fun <T> withTimeout(block: () -> T): T

Surrounds block with calls to enter and exit, throwing an exception from newTimeoutException if a timeout occurred.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/-buffer.html b/3.x/okio/okio/okio/-buffer/-buffer.html new file mode 100644 index 0000000000..7e1b9c7dae --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/-buffer.html @@ -0,0 +1,86 @@ + + + + + Buffer + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Buffer

+
+
+
+
expect constructor()
constructor()
constructor()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/-unsafe-cursor/-unsafe-cursor.html b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/-unsafe-cursor.html new file mode 100644 index 0000000000..4fc3c75132 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/-unsafe-cursor.html @@ -0,0 +1,86 @@ + + + + + UnsafeCursor + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

UnsafeCursor

+
+
+
+
expect constructor()
constructor()
constructor()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/-unsafe-cursor/buffer.html b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/buffer.html new file mode 100644 index 0000000000..816e852543 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/buffer.html @@ -0,0 +1,86 @@ + + + + + buffer + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

buffer

+
+
+
+
expect var buffer: Buffer?
actual var buffer: Buffer?
actual var buffer: Buffer?
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/-unsafe-cursor/close.html b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/close.html new file mode 100644 index 0000000000..b759a0db8f --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/close.html @@ -0,0 +1,86 @@ + + + + + close + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

close

+
+
+
+
expect open override fun close()

Closes this object and releases the resources it holds. It is an error to use an object after it has been closed. It is safe to close an object more than once.

actual open override fun close()
actual open override fun close()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/-unsafe-cursor/data.html b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/data.html new file mode 100644 index 0000000000..d4cc597089 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/data.html @@ -0,0 +1,86 @@ + + + + + data + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

data

+
+
+
+
expect var data: ByteArray?
actual var data: ByteArray?
actual var data: ByteArray?
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/-unsafe-cursor/end.html b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/end.html new file mode 100644 index 0000000000..1047d19761 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/end.html @@ -0,0 +1,86 @@ + + + + + end + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

end

+
+
+
+
expect var end: Int
actual var end: Int
actual var end: Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/-unsafe-cursor/expand-buffer.html b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/expand-buffer.html new file mode 100644 index 0000000000..704ad6562e --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/expand-buffer.html @@ -0,0 +1,86 @@ + + + + + expandBuffer + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

expandBuffer

+
+
+
+
expect fun expandBuffer(minByteCount: Int): Long

Grow the buffer by adding a contiguous range of capacity in a single segment. This adds at least minByteCount bytes but may add up to a full segment of additional capacity.

As a side-effect this cursor will seek. It will move offset to the first byte of newly-added capacity. This is the size of the buffer prior to the expandBuffer() call.

If minByteCount bytes are available in the buffer's current tail segment that will be used; otherwise another segment will be allocated and appended. In either case this returns the number of bytes of capacity added to this buffer.

Warning: it is the caller’s responsibility to either write new data to every byte of the newly-allocated capacity, or to shrink the buffer to the data written. Failure to do so may cause serious security problems as the data in the returned buffers is not zero filled. Buffers may contain dirty pooled segments that hold very sensitive data from other parts of the current process.

Return

the number of bytes expanded by. Not less than minByteCount.

Parameters

minByteCount

the size of the contiguous capacity. Must be positive and not greater than the capacity size of a single segment (8 KiB).

actual fun expandBuffer(minByteCount: Int): Long
actual fun expandBuffer(minByteCount: Int): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/-unsafe-cursor/index.html b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/index.html new file mode 100644 index 0000000000..36ca1ce744 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/index.html @@ -0,0 +1,307 @@ + + + + + UnsafeCursor + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

UnsafeCursor

+
+
+
expect class UnsafeCursor : Closeable

A handle to the underlying data in a buffer. This handle is unsafe because it does not enforce its own invariants. Instead, it assumes a careful user who has studied Okio's implementation details and their consequences.

Buffer Internals

----------------

Most code should use Buffer as a black box: a class that holds 0 or more bytes of data with efficient APIs to append data to the end and to consume data from the front. Usually this is also the most efficient way to use buffers because it allows Okio to employ several optimizations, including:

  • Fast Allocation: Buffers use a shared pool of memory that is not zero-filled before use.

  • Fast Resize: A buffer's capacity can change without copying its contents.

  • Fast Move: Memory ownership can be reassigned from one buffer to another.

  • Fast Copy: Multiple buffers can share the same underlying memory.

  • Fast Encoding and Decoding: Common operations like UTF-8 encoding and decimal decoding do not require intermediate objects to be allocated.

These optimizations all leverage the way Okio stores data internally. Okio Buffers are implemented using a doubly-linked list of segments. Each segment is a contiguous range within a 8 KiB ByteArray. Each segment has two indexes, start, the offset of the first byte of the array containing application data, and end, the offset of the first byte beyond start whose data is undefined.

New buffers are empty and have no segments:

val buffer = Buffer()

We append 7 bytes of data to the end of our empty buffer. Internally, the buffer allocates a segment and writes its new data there. The lone segment has an 8 KiB byte array but only 7 bytes of data:

buffer.writeUtf8("sealion")

// [ 's', 'e', 'a', 'l', 'i', 'o', 'n', '?', '?', '?', ...]
// ^ ^
// start = 0 end = 7

When we read 4 bytes of data from the buffer, it finds its first segment and returns that data to us. As bytes are read the data is consumed. The segment tracks this by adjusting its internal indices.

buffer.readUtf8(4) // "seal"

// [ 's', 'e', 'a', 'l', 'i', 'o', 'n', '?', '?', '?', ...]
// ^ ^
// start = 4 end = 7

As we write data into a buffer we fill up its internal segments. When a write doesn't fit into a buffer's last segment, additional segments are allocated and appended to the linked list of segments. Each segment has its own start and end indexes tracking where the user's data begins and ends.

val xoxo = new Buffer()
xoxo.writeUtf8("xo".repeat(5_000))

// [ 'x', 'o', 'x', 'o', 'x', 'o', 'x', 'o', ..., 'x', 'o', 'x', 'o']
// ^ ^
// start = 0 end = 8192
//
// [ 'x', 'o', 'x', 'o', ..., 'x', 'o', 'x', 'o', '?', '?', '?', ...]
// ^ ^
// start = 0 end = 1808

The start index is always inclusive and the end index is always exclusive. The data preceding the start index is undefined, and the data at and following the end index is undefined.

After the last byte of a segment has been read, that segment may be returned to an internal segment pool. In addition to reducing the need to do garbage collection, segment pooling also saves the JVM from needing to zero-fill byte arrays. Okio doesn't need to zero-fill its arrays because it always writes memory before it reads it. But if you look at a segment in a debugger you may see its effects. In this example, one of the "xoxo" segments above is reused in an unrelated buffer:

val abc = new Buffer()
abc.writeUtf8("abc")

// [ 'a', 'b', 'c', 'o', 'x', 'o', 'x', 'o', ...]
// ^ ^
// start = 0 end = 3

There is an optimization in Buffer.copy() and other methods that allows two segments to share the same underlying byte array. Clones can't write to the shared byte array; instead they allocate a new (private) segment early.

val nana = new Buffer()
nana.writeUtf8("na".repeat(2_500))
nana.readUtf8(2) // "na"

// [ 'n', 'a', 'n', 'a', ..., 'n', 'a', 'n', 'a', '?', '?', '?', ...]
// ^ ^
// start = 2 end = 5000

nana2 = nana.copy()
nana2.writeUtf8("batman")

// [ 'n', 'a', 'n', 'a', ..., 'n', 'a', 'n', 'a', '?', '?', '?', ...]
// ^ ^
// start = 2 end = 5000
//
// [ 'b', 'a', 't', 'm', 'a', 'n', '?', '?', '?', ...]
// ^ ^
// start = 0 end = 6

Segments are not shared when the shared region is small (ie. less than 1 KiB). This is intended to prevent fragmentation in sharing-heavy use cases.

Unsafe Cursor API

-----------------

This class exposes privileged access to the internal byte arrays of a buffer. A cursor either references the data of a single segment, it is before the first segment (offset == -1), or it is after the last segment (offset == buffer.size).

Call UnsafeCursor.seek to move the cursor to the segment that contains a specified offset. After seeking, UnsafeCursor.data references the segment's internal byte array, UnsafeCursor.start is the segment's start and UnsafeCursor.end is its end.

Call UnsafeCursor.next to advance the cursor to the next segment. This returns -1 if there are no further segments in the buffer.

Use Buffer.readUnsafe to create a cursor to read buffer data and Buffer.readAndWriteUnsafe to create a cursor to read and write buffer data. In either case, always call UnsafeCursor.close when done with a cursor. This is convenient with Kotlin's use extension function. In this example we read all of the bytes in a buffer into a byte array:

val bufferBytes = ByteArray(buffer.size.toInt())

buffer.readUnsafe().use { cursor ->
while (cursor.next() != -1) {
System.arraycopy(cursor.data, cursor.start,
bufferBytes, cursor.offset.toInt(), cursor.end - cursor.start);
}
}

Change the capacity of a buffer with resizeBuffer. This is only permitted for read+write cursors. The buffer's size always changes from the end: shrinking it removes bytes from the end; growing it adds capacity to the end.

Warnings

--------

Most application developers should avoid this API. Those that must use this API should respect these warnings.

Don't mutate a cursor. This class has public, non-final fields because that is convenient for low-level I/O frameworks. Never assign values to these fields; instead use the cursor API to adjust these.

Never mutate data unless you have read+write access. You are on the honor system to never write the buffer in read-only mode. Read-only mode may be more efficient than read+write mode because it does not need to make private copies of shared segments.

Only access data in [start..end). Other data in the byte array is undefined! It may contain private or sensitive data from other parts of your process.

Always fill the new capacity when you grow a buffer. New capacity is not zero-filled and may contain data from other parts of your process. Avoid leaking this information by always writing something to the newly-allocated capacity. Do not assume that new capacity will be filled with 0; it will not be.

Do not access a buffer while is being accessed by a cursor. Even simple read-only operations like Buffer.clone are unsafe because they mark segments as shared.

Do not hard-code the segment size in your application. It is possible that segment sizes will change with advances in hardware. Future versions of Okio may even have heterogeneous segment sizes.

These warnings are intended to help you to use this API safely. It's here for developers that need absolutely the most throughput. Since that's you, here's one final performance tip. You can reuse instances of this class if you like. Use the overloads of Buffer.readUnsafe and Buffer.readAndWriteUnsafe that take a cursor and close it after use.

actual class UnsafeCursor : Closeable
actual class UnsafeCursor : Closeable
+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect constructor()
constructor()
constructor()
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect var buffer: Buffer?
actual var buffer: Buffer?
actual var buffer: Buffer?
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect var data: ByteArray?
actual var data: ByteArray?
actual var data: ByteArray?
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect var end: Int
actual var end: Int
actual var end: Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect var offset: Long
actual var offset: Long
actual var offset: Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect var readWrite: Boolean
actual var readWrite: Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect var start: Int
actual var start: Int
actual var start: Int
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun close()

Closes this object and releases the resources it holds. It is an error to use an object after it has been closed. It is safe to close an object more than once.

actual open override fun close()
actual open override fun close()
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun expandBuffer(minByteCount: Int): Long

Grow the buffer by adding a contiguous range of capacity in a single segment. This adds at least minByteCount bytes but may add up to a full segment of additional capacity.

actual fun expandBuffer(minByteCount: Int): Long
actual fun expandBuffer(minByteCount: Int): Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun next(): Int

Seeks to the next range of bytes, advancing the offset by end - start. Returns the size of the readable range (at least 1), or -1 if we have reached the end of the buffer and there are no more bytes to read.

actual fun next(): Int
actual fun next(): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun resizeBuffer(newSize: Long): Long

Change the size of the buffer so that it equals newSize by either adding new capacity at the end or truncating the buffer at the end. Newly added capacity may span multiple segments.

actual fun resizeBuffer(newSize: Long): Long
actual fun resizeBuffer(newSize: Long): Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun seek(offset: Long): Int

Reposition the cursor so that the data at offset is readable at data[start]. Returns the number of bytes readable in data (at least 1), or -1 if there are no data to read.

actual fun seek(offset: Long): Int
actual fun seek(offset: Long): Int
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/-unsafe-cursor/next.html b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/next.html new file mode 100644 index 0000000000..e99b53fb12 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/next.html @@ -0,0 +1,86 @@ + + + + + next + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

next

+
+
+
+
expect fun next(): Int

Seeks to the next range of bytes, advancing the offset by end - start. Returns the size of the readable range (at least 1), or -1 if we have reached the end of the buffer and there are no more bytes to read.

actual fun next(): Int
actual fun next(): Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/-unsafe-cursor/offset.html b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/offset.html new file mode 100644 index 0000000000..6f71145962 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/offset.html @@ -0,0 +1,86 @@ + + + + + offset + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

offset

+
+
+
+
expect var offset: Long
actual var offset: Long
actual var offset: Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/-unsafe-cursor/read-write.html b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/read-write.html new file mode 100644 index 0000000000..8502a02c38 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/read-write.html @@ -0,0 +1,86 @@ + + + + + readWrite + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readWrite

+
+
+
+
expect var readWrite: Boolean
actual var readWrite: Boolean
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/-unsafe-cursor/resize-buffer.html b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/resize-buffer.html new file mode 100644 index 0000000000..bb8dfa5935 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/resize-buffer.html @@ -0,0 +1,86 @@ + + + + + resizeBuffer + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

resizeBuffer

+
+
+
+
expect fun resizeBuffer(newSize: Long): Long

Change the size of the buffer so that it equals newSize by either adding new capacity at the end or truncating the buffer at the end. Newly added capacity may span multiple segments.

As a side-effect this cursor will seek. If the buffer is being enlarged it will move UnsafeCursor.offset to the first byte of newly-added capacity. This is the size of the buffer prior to the resizeBuffer() call. If the buffer is being shrunk it will move UnsafeCursor.offset to the end of the buffer.

Warning: it is the caller’s responsibility to write new data to every byte of the newly-allocated capacity. Failure to do so may cause serious security problems as the data in the returned buffers is not zero filled. Buffers may contain dirty pooled segments that hold very sensitive data from other parts of the current process.

Return

the previous size of the buffer.

actual fun resizeBuffer(newSize: Long): Long
actual fun resizeBuffer(newSize: Long): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/-unsafe-cursor/seek.html b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/seek.html new file mode 100644 index 0000000000..5480c107c5 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/seek.html @@ -0,0 +1,86 @@ + + + + + seek + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

seek

+
+
+
+
expect fun seek(offset: Long): Int

Reposition the cursor so that the data at offset is readable at data[start]. Returns the number of bytes readable in data (at least 1), or -1 if there are no data to read.

actual fun seek(offset: Long): Int
actual fun seek(offset: Long): Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/-unsafe-cursor/start.html b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/start.html new file mode 100644 index 0000000000..0ab58f1c5f --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/-unsafe-cursor/start.html @@ -0,0 +1,86 @@ + + + + + start + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

start

+
+
+
+
expect var start: Int
actual var start: Int
actual var start: Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/[jvm]equals.html b/3.x/okio/okio/okio/-buffer/[jvm]equals.html new file mode 100644 index 0000000000..98bcc7a6ff --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/[jvm]equals.html @@ -0,0 +1,84 @@ + + + + + [jvm]equals + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

equals

+
+
+
+
open operator override fun equals(other: Any?): Boolean
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/[jvm]hash-code.html b/3.x/okio/okio/okio/-buffer/[jvm]hash-code.html new file mode 100644 index 0000000000..ae7f881eab --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/[jvm]hash-code.html @@ -0,0 +1,84 @@ + + + + + [jvm]hashCode + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hashCode

+
+
+
+
open override fun hashCode(): Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/[jvm]to-string.html b/3.x/okio/okio/okio/-buffer/[jvm]to-string.html new file mode 100644 index 0000000000..70ed46dd4b --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/[jvm]to-string.html @@ -0,0 +1,84 @@ + + + + + [jvm]toString + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toString

+
+
+
+
open override fun toString(): String

Returns a human-readable string that describes the contents of this buffer. Typically this is a string like [text=Hello] or [hex=0000ffff].

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/[non-jvm]equals.html b/3.x/okio/okio/okio/-buffer/[non-jvm]equals.html new file mode 100644 index 0000000000..050e3ff658 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/[non-jvm]equals.html @@ -0,0 +1,84 @@ + + + + + [nonJvm]equals + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

equals

+
+
+
+
open operator override fun equals(other: Any?): Boolean
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/[non-jvm]hash-code.html b/3.x/okio/okio/okio/-buffer/[non-jvm]hash-code.html new file mode 100644 index 0000000000..76b0a1d68b --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/[non-jvm]hash-code.html @@ -0,0 +1,84 @@ + + + + + [nonJvm]hashCode + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hashCode

+
+
+
+
open override fun hashCode(): Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/[non-jvm]to-string.html b/3.x/okio/okio/okio/-buffer/[non-jvm]to-string.html new file mode 100644 index 0000000000..2ee1e40b38 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/[non-jvm]to-string.html @@ -0,0 +1,84 @@ + + + + + [nonJvm]toString + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toString

+
+
+
+
open override fun toString(): String

Returns a human-readable string that describes the contents of this buffer. Typically this is a string like [text=Hello] or [hex=0000ffff].

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/buffer.html b/3.x/okio/okio/okio/-buffer/buffer.html new file mode 100644 index 0000000000..00e9eaa9b3 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/buffer.html @@ -0,0 +1,86 @@ + + + + + buffer + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

buffer

+
+
+
+
expect open override val buffer: Buffer

This source's internal buffer.

open override fun buffer(): Buffer

Returns this source's internal buffer.


actual open override val buffer: Buffer
actual open override val buffer: Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/clear.html b/3.x/okio/okio/okio/-buffer/clear.html new file mode 100644 index 0000000000..8d21b05469 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/clear.html @@ -0,0 +1,86 @@ + + + + + clear + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

clear

+
+
+
+
expect fun clear()

Discards all bytes in this buffer. Calling this method when you're done with a buffer will return its segments to the pool.

actual fun clear()
actual fun clear()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/clone.html b/3.x/okio/okio/okio/-buffer/clone.html new file mode 100644 index 0000000000..d01eea3147 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/clone.html @@ -0,0 +1,84 @@ + + + + + clone + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

clone

+
+
+
+
open override fun clone(): Buffer

Returns a deep copy of this buffer. This is the same as copy but allows Buffer to implement the Cloneable interface on the JVM.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/close.html b/3.x/okio/okio/okio/-buffer/close.html new file mode 100644 index 0000000000..33c1014f13 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/close.html @@ -0,0 +1,86 @@ + + + + + close + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

close

+
+
+
+
expect open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

actual open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

actual open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/complete-segment-byte-count.html b/3.x/okio/okio/okio/-buffer/complete-segment-byte-count.html new file mode 100644 index 0000000000..02b92b1780 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/complete-segment-byte-count.html @@ -0,0 +1,86 @@ + + + + + completeSegmentByteCount + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

completeSegmentByteCount

+
+
+
+

Returns the number of bytes in segments that are not writable. This is the number of bytes that can be flushed immediately to an underlying sink without harming throughput.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/copy-to.html b/3.x/okio/okio/okio/-buffer/copy-to.html new file mode 100644 index 0000000000..8e059d33e0 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/copy-to.html @@ -0,0 +1,86 @@ + + + + + copyTo + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

copyTo

+
+
+
+
expect fun copyTo(out: Buffer, offset: Long = 0, byteCount: Long): Buffer

Copy byteCount bytes from this, starting at offset, to out.


expect fun copyTo(out: Buffer, offset: Long = 0): Buffer

Overload of copyTo with byteCount = size - offset, work around for https://youtrack.jetbrains.com/issue/KT-30847

fun copyTo(out: OutputStream, offset: Long = 0, byteCount: Long = size - offset): Buffer

Copy byteCount bytes from this, starting at offset, to out.


actual fun copyTo(out: Buffer, offset: Long, byteCount: Long): Buffer
actual fun copyTo(out: Buffer, offset: Long): Buffer
actual fun copyTo(out: Buffer, offset: Long, byteCount: Long): Buffer
actual fun copyTo(out: Buffer, offset: Long): Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/copy.html b/3.x/okio/okio/okio/-buffer/copy.html new file mode 100644 index 0000000000..d5fef71dca --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/copy.html @@ -0,0 +1,86 @@ + + + + + copy + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

copy

+
+
+
+
expect fun copy(): Buffer

Returns a deep copy of this buffer. The returned Buffer initially shares the underlying ByteArrays. See UnsafeCursor for more details.

actual fun copy(): Buffer
actual fun copy(): Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/emit-complete-segments.html b/3.x/okio/okio/okio/-buffer/emit-complete-segments.html new file mode 100644 index 0000000000..ed98017cde --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/emit-complete-segments.html @@ -0,0 +1,86 @@ + + + + + emitCompleteSegments + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

emitCompleteSegments

+
+
+
+
expect open override fun emitCompleteSegments(): Buffer

Writes complete segments to the underlying sink, if one exists. Like flush, but weaker. Use this to limit the memory held in the buffer to a single segment. Typically application code will not need to call this: it is only necessary when application code writes directly to this sink's buffer.

BufferedSink b0 = new Buffer();
BufferedSink b1 = Okio.buffer(b0);
BufferedSink b2 = Okio.buffer(b1);

b2.buffer().write(new byte[20_000]);
assertEquals(20_000, b2.buffer().size());
assertEquals( 0, b1.buffer().size());
assertEquals( 0, b0.buffer().size());

b2.emitCompleteSegments();
assertEquals( 3_616, b2.buffer().size());
assertEquals( 0, b1.buffer().size());
assertEquals(16_384, b0.buffer().size()); // This example assumes 8192 byte segments.
actual open override fun emitCompleteSegments(): Buffer
actual open override fun emitCompleteSegments(): Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/emit.html b/3.x/okio/okio/okio/-buffer/emit.html new file mode 100644 index 0000000000..bea1944531 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/emit.html @@ -0,0 +1,86 @@ + + + + + emit + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

emit

+
+
+
+
expect open override fun emit(): Buffer

Writes all buffered data to the underlying sink, if one exists. Like flush, but weaker. Call this before this buffered sink goes out of scope so that its data can reach its destination.

BufferedSink b0 = new Buffer();
BufferedSink b1 = Okio.buffer(b0);
BufferedSink b2 = Okio.buffer(b1);

b2.writeUtf8("hello");
assertEquals(5, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(0, b0.buffer().size());

b2.emit();
assertEquals(0, b2.buffer().size());
assertEquals(5, b1.buffer().size());
assertEquals(0, b0.buffer().size());

b1.emit();
assertEquals(0, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(5, b0.buffer().size());
actual open override fun emit(): Buffer
actual open override fun emit(): Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/exhausted.html b/3.x/okio/okio/okio/-buffer/exhausted.html new file mode 100644 index 0000000000..8c768cc739 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/exhausted.html @@ -0,0 +1,86 @@ + + + + + exhausted + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

exhausted

+
+
+
+
expect open override fun exhausted(): Boolean

Returns true if there are no more bytes in this source. This will block until there are bytes to read or the source is definitely exhausted.

actual open override fun exhausted(): Boolean
actual open override fun exhausted(): Boolean
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/flush.html b/3.x/okio/okio/okio/-buffer/flush.html new file mode 100644 index 0000000000..6f2cfcb30e --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/flush.html @@ -0,0 +1,86 @@ + + + + + flush + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

flush

+
+
+
+
expect open override fun flush()

Writes all buffered data to the underlying sink, if one exists. Then that sink is recursively flushed which pushes data as far as possible towards its ultimate destination. Typically that destination is a network socket or file.

BufferedSink b0 = new Buffer();
BufferedSink b1 = Okio.buffer(b0);
BufferedSink b2 = Okio.buffer(b1);

b2.writeUtf8("hello");
assertEquals(5, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(0, b0.buffer().size());

b2.flush();
assertEquals(0, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(5, b0.buffer().size());
actual open override fun flush()
actual open override fun flush()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/get.html b/3.x/okio/okio/okio/-buffer/get.html new file mode 100644 index 0000000000..809d3bf3d2 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/get.html @@ -0,0 +1,86 @@ + + + + + get + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

get

+
+
+
+
expect operator fun get(pos: Long): Byte

Returns the byte at pos.

@JvmName(name = "getByte")
actual operator fun get(pos: Long): Byte
actual operator fun get(pos: Long): Byte
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/hmac-sha1.html b/3.x/okio/okio/okio/-buffer/hmac-sha1.html new file mode 100644 index 0000000000..eca2738093 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/hmac-sha1.html @@ -0,0 +1,86 @@ + + + + + hmacSha1 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hmacSha1

+
+
+
+
expect fun hmacSha1(key: ByteString): ByteString

Returns the 160-bit SHA-1 HMAC of this buffer.

actual fun hmacSha1(key: ByteString): ByteString

Returns the 160-bit SHA-1 HMAC of this buffer.

actual fun hmacSha1(key: ByteString): ByteString

Returns the 160-bit SHA-1 HMAC of this buffer.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/hmac-sha256.html b/3.x/okio/okio/okio/-buffer/hmac-sha256.html new file mode 100644 index 0000000000..4459b16aee --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/hmac-sha256.html @@ -0,0 +1,86 @@ + + + + + hmacSha256 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hmacSha256

+
+
+
+
expect fun hmacSha256(key: ByteString): ByteString

Returns the 256-bit SHA-256 HMAC of this buffer.

actual fun hmacSha256(key: ByteString): ByteString

Returns the 256-bit SHA-256 HMAC of this buffer.

actual fun hmacSha256(key: ByteString): ByteString

Returns the 256-bit SHA-256 HMAC of this buffer.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/hmac-sha512.html b/3.x/okio/okio/okio/-buffer/hmac-sha512.html new file mode 100644 index 0000000000..9869aa8632 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/hmac-sha512.html @@ -0,0 +1,86 @@ + + + + + hmacSha512 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hmacSha512

+
+
+
+
expect fun hmacSha512(key: ByteString): ByteString

Returns the 512-bit SHA-512 HMAC of this buffer.

actual fun hmacSha512(key: ByteString): ByteString

Returns the 512-bit SHA-512 HMAC of this buffer.

actual fun hmacSha512(key: ByteString): ByteString

Returns the 512-bit SHA-512 HMAC of this buffer.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/index-of-element.html b/3.x/okio/okio/okio/-buffer/index-of-element.html new file mode 100644 index 0000000000..fcbf2f97b1 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/index-of-element.html @@ -0,0 +1,86 @@ + + + + + indexOfElement + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

indexOfElement

+
+
+
+
expect open override fun indexOfElement(targetBytes: ByteString): Long

Equivalent to indexOfElement(targetBytes, 0).


expect open override fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long

Returns the first index in this buffer that is at or after fromIndex and that contains any of the bytes in targetBytes. This expands the buffer as necessary until a target byte is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the requested byte is found.

ByteString ANY_VOWEL = ByteString.encodeUtf8("AEOIUaeoiu");

Buffer buffer = new Buffer();
buffer.writeUtf8("Dr. Alan Grant");

assertEquals(4, buffer.indexOfElement(ANY_VOWEL)); // 'A' in 'Alan'.
assertEquals(11, buffer.indexOfElement(ANY_VOWEL, 9)); // 'a' in 'Grant'.
actual open override fun indexOfElement(targetBytes: ByteString): Long
actual open override fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long
actual open override fun indexOfElement(targetBytes: ByteString): Long
actual open override fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/index-of.html b/3.x/okio/okio/okio/-buffer/index-of.html new file mode 100644 index 0000000000..2370c580e5 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/index-of.html @@ -0,0 +1,86 @@ + + + + + indexOf + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

indexOf

+
+
+
+
expect open override fun indexOf(b: Byte): Long

Equivalent to indexOf(b, 0).


expect open override fun indexOf(b: Byte, fromIndex: Long): Long

Returns the index of the first b in the buffer at or after fromIndex. This expands the buffer as necessary until b is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the requested byte is found.

Buffer buffer = new Buffer();
buffer.writeUtf8("Don't move! He can't see us if we don't move.");

byte m = 'm';
assertEquals(6, buffer.indexOf(m));
assertEquals(40, buffer.indexOf(m, 12));

expect open override fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long

Returns the index of b if it is found in the range of fromIndex inclusive to toIndex exclusive. If b isn't found, or if fromIndex == toIndex, then -1 is returned.

The scan terminates at either toIndex or the end of the buffer, whichever comes first. The maximum number of bytes scanned is toIndex-fromIndex.


expect open override fun indexOf(bytes: ByteString): Long

Equivalent to indexOf(bytes, 0).


expect open override fun indexOf(bytes: ByteString, fromIndex: Long): Long

Returns the index of the first match for bytes in the buffer at or after fromIndex. This expands the buffer as necessary until bytes is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the requested bytes are found.

ByteString MOVE = ByteString.encodeUtf8("move");

Buffer buffer = new Buffer();
buffer.writeUtf8("Don't move! He can't see us if we don't move.");

assertEquals(6, buffer.indexOf(MOVE));
assertEquals(40, buffer.indexOf(MOVE, 12));
actual open override fun indexOf(b: Byte): Long
actual open override fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long
actual open override fun indexOf(bytes: ByteString): Long
actual open override fun indexOf(bytes: ByteString, fromIndex: Long): Long

actual open override fun indexOf(b: Byte, fromIndex: Long): Long

Returns the index of b in this at or beyond fromIndex, or -1 if this buffer does not contain b in that range.

actual open override fun indexOf(b: Byte): Long
actual open override fun indexOf(b: Byte, fromIndex: Long): Long
actual open override fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long
actual open override fun indexOf(bytes: ByteString): Long
actual open override fun indexOf(bytes: ByteString, fromIndex: Long): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/index.html b/3.x/okio/okio/okio/-buffer/index.html new file mode 100644 index 0000000000..8f29e52aa7 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/index.html @@ -0,0 +1,1536 @@ + + + + + Buffer + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Buffer

+
+
+

A collection of bytes in memory.

Moving data from one buffer to another is fast. Instead of copying bytes from one place in memory to another, this class just changes ownership of the underlying byte arrays.

This buffer grows with your data. Just like ArrayList, each buffer starts small. It consumes only the memory it needs to.

This buffer pools its byte arrays. When you allocate a byte array in Java, the runtime must zero-fill the requested array before returning it to you. Even if you're going to write over that space anyway. This class avoids zero-fill and GC churn by pooling byte arrays.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect constructor()
constructor()
constructor()
+
+
+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect class UnsafeCursor : Closeable

A handle to the underlying data in a buffer. This handle is unsafe because it does not enforce its own invariants. Instead, it assumes a careful user who has studied Okio's implementation details and their consequences.

actual class UnsafeCursor : Closeable
actual class UnsafeCursor : Closeable
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override val buffer: Buffer

This source's internal buffer.

actual open override val buffer: Buffer
actual open override val buffer: Buffer
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect var size: Long
@get:JvmName(name = "size")
actual var size: Long
actual var size: Long
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun buffer(): Buffer

Returns this source's internal buffer.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a new sink that buffers writes to sink. The returned sink will batch writes to sink. Use this wherever you write to a sink to get an ergonomic and efficient access to data.

Returns a new source that buffers reads from source. The returned source will perform bulk reads into its in-memory buffer. Use this wherever you read a source to get an ergonomic and efficient access to data.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that uses cipher to encrypt or decrypt this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a source that uses cipher to encrypt or decrypt this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun clear()

Discards all bytes in this buffer. Calling this method when you're done with a buffer will return its segments to the pool.

actual fun clear()
actual fun clear()
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun clone(): Buffer

Returns a deep copy of this buffer. This is the same as copy but allows Buffer to implement the Cloneable interface on the JVM.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

actual open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

actual open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns the number of bytes in segments that are not writable. This is the number of bytes that can be flushed immediately to an underlying sink without harming throughput.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun copy(): Buffer

Returns a deep copy of this buffer. The returned Buffer initially shares the underlying ByteArrays. See UnsafeCursor for more details.

actual fun copy(): Buffer
actual fun copy(): Buffer
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun copyTo(out: Buffer, offset: Long = 0): Buffer

Overload of copyTo with byteCount = size - offset, work around for https://youtrack.jetbrains.com/issue/KT-30847

expect fun copyTo(out: Buffer, offset: Long = 0, byteCount: Long): Buffer

Copy byteCount bytes from this, starting at offset, to out.

actual fun copyTo(out: Buffer, offset: Long): Buffer
actual fun copyTo(out: Buffer, offset: Long, byteCount: Long): Buffer
fun copyTo(out: OutputStream, offset: Long = 0, byteCount: Long = size - offset): Buffer

Copy byteCount bytes from this, starting at offset, to out.

actual fun copyTo(out: Buffer, offset: Long): Buffer
actual fun copyTo(out: Buffer, offset: Long, byteCount: Long): Buffer
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Sink.deflate(deflater: Deflater = Deflater()): DeflaterSink

Returns an DeflaterSink that DEFLATE-compresses data to this Sink while writing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun emit(): Buffer

Writes all buffered data to the underlying sink, if one exists. Like flush, but weaker. Call this before this buffered sink goes out of scope so that its data can reach its destination.

actual open override fun emit(): Buffer
actual open override fun emit(): Buffer
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun emitCompleteSegments(): Buffer

Writes complete segments to the underlying sink, if one exists. Like flush, but weaker. Use this to limit the memory held in the buffer to a single segment. Typically application code will not need to call this: it is only necessary when application code writes directly to this sink's buffer.

actual open override fun emitCompleteSegments(): Buffer
actual open override fun emitCompleteSegments(): Buffer
+
+
+
+
+ +
+
+
+
equals
+ +
Link copied to clipboard
+
+
+
+
+
+
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun exhausted(): Boolean

Returns true if there are no more bytes in this source. This will block until there are bytes to read or the source is definitely exhausted.

actual open override fun exhausted(): Boolean
actual open override fun exhausted(): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun flush()

Writes all buffered data to the underlying sink, if one exists. Then that sink is recursively flushed which pushes data as far as possible towards its ultimate destination. Typically that destination is a network socket or file.

actual open override fun flush()
actual open override fun flush()
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect operator fun get(pos: Long): Byte

Returns the byte at pos.

@JvmName(name = "getByte")
actual operator fun get(pos: Long): Byte
actual operator fun get(pos: Long): Byte
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Sink.gzip(): GzipSink

Returns a GzipSink that gzip-compresses to this Sink while writing.

inline fun Source.gzip(): GzipSource

Returns a GzipSource that gzip-decompresses this Source while reading.

+
+
+
+
+ +
+
+
+
hashCode
+ +
Link copied to clipboard
+
+
+
+
+
+
open override fun hashCode(): Int
open override fun hashCode(): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that uses digest to hash this.

Returns a sink that uses mac to hash this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a source that uses digest to hash this.

Returns a source that uses mac to hash this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun hmacSha1(key: ByteString): ByteString

Returns the 160-bit SHA-1 HMAC of this buffer.

actual fun hmacSha1(key: ByteString): ByteString

Returns the 160-bit SHA-1 HMAC of this buffer.

actual fun hmacSha1(key: ByteString): ByteString

Returns the 160-bit SHA-1 HMAC of this buffer.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun hmacSha256(key: ByteString): ByteString

Returns the 256-bit SHA-256 HMAC of this buffer.

actual fun hmacSha256(key: ByteString): ByteString

Returns the 256-bit SHA-256 HMAC of this buffer.

actual fun hmacSha256(key: ByteString): ByteString

Returns the 256-bit SHA-256 HMAC of this buffer.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun hmacSha512(key: ByteString): ByteString

Returns the 512-bit SHA-512 HMAC of this buffer.

actual fun hmacSha512(key: ByteString): ByteString

Returns the 512-bit SHA-512 HMAC of this buffer.

actual fun hmacSha512(key: ByteString): ByteString

Returns the 512-bit SHA-512 HMAC of this buffer.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun indexOf(b: Byte): Long

Equivalent to indexOf(b, 0).

expect open override fun indexOf(bytes: ByteString): Long

Equivalent to indexOf(bytes, 0).

expect open override fun indexOf(b: Byte, fromIndex: Long): Long

Returns the index of the first b in the buffer at or after fromIndex. This expands the buffer as necessary until b is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the requested byte is found.

expect open override fun indexOf(bytes: ByteString, fromIndex: Long): Long

Returns the index of the first match for bytes in the buffer at or after fromIndex. This expands the buffer as necessary until bytes is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the requested bytes are found.

expect open override fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long

Returns the index of b if it is found in the range of fromIndex inclusive to toIndex exclusive. If b isn't found, or if fromIndex == toIndex, then -1 is returned.

actual open override fun indexOf(b: Byte): Long
actual open override fun indexOf(bytes: ByteString): Long
actual open override fun indexOf(bytes: ByteString, fromIndex: Long): Long
actual open override fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long
actual open override fun indexOf(b: Byte, fromIndex: Long): Long

Returns the index of b in this at or beyond fromIndex, or -1 if this buffer does not contain b in that range.

actual open override fun indexOf(b: Byte): Long
actual open override fun indexOf(bytes: ByteString): Long
actual open override fun indexOf(b: Byte, fromIndex: Long): Long
actual open override fun indexOf(bytes: ByteString, fromIndex: Long): Long
actual open override fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun indexOfElement(targetBytes: ByteString): Long
expect open override fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long

Returns the first index in this buffer that is at or after fromIndex and that contains any of the bytes in targetBytes. This expands the buffer as necessary until a target byte is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the requested byte is found.

actual open override fun indexOfElement(targetBytes: ByteString): Long
actual open override fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long
actual open override fun indexOfElement(targetBytes: ByteString): Long
actual open override fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Source.inflate(inflater: Inflater = Inflater()): InflaterSource

Returns an InflaterSource that DEFLATE-decompresses this Source while reading.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun inputStream(): InputStream

Returns an input stream that reads from this source.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun isOpen(): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun md5(): ByteString
actual fun md5(): ByteString

Returns the 128-bit MD5 hash of this buffer.

actual fun md5(): ByteString
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun outputStream(): OutputStream

Returns an output stream that writes to this sink.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun peek(): BufferedSource

Returns a new BufferedSource that can read data from this BufferedSource without consuming it. The returned source becomes invalid once this source is next read or closed.

actual open override fun peek(): BufferedSource
actual open override fun peek(): BufferedSource
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun rangeEquals(offset: Long, bytes: ByteString): Boolean

Returns true if the bytes at offset in this source equal bytes. This expands the buffer as necessary until a byte does not match, all bytes are matched, or if the stream is exhausted before enough bytes could determine a match.

expect open override fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean

Returns true if byteCount bytes at offset in this source equal bytes at bytesOffset. This expands the buffer as necessary until a byte does not match, all bytes are matched, or if the stream is exhausted before enough bytes could determine a match.

actual open override fun rangeEquals(offset: Long, bytes: ByteString): Boolean
actual open override fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean
actual open override fun rangeEquals(offset: Long, bytes: ByteString): Boolean
actual open override fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun read(sink: ByteArray): Int

Removes up to sink.length bytes from this and copies them into sink. Returns the number of bytes read, or -1 if this source is exhausted.

expect open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

expect open override fun read(sink: ByteArray, offset: Int, byteCount: Int): Int

Removes up to byteCount bytes from this and copies them into sink at offset. Returns the number of bytes read, or -1 if this source is exhausted.

open override fun read(sink: ByteBuffer): Int
actual open override fun read(sink: ByteArray): Int
actual open override fun read(sink: ByteArray, offset: Int, byteCount: Int): Int

actual open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

actual open override fun read(sink: ByteArray): Int
actual open override fun read(sink: ByteArray, offset: Int, byteCount: Int): Int
actual open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun readAll(sink: Sink): Long

Removes all bytes from this and appends them to sink. Returns the total number of bytes written to sink which will be 0 if this is exhausted.

actual open override fun readAll(sink: Sink): Long
actual open override fun readAll(sink: Sink): Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun readAndWriteUnsafe(unsafeCursor: Buffer.UnsafeCursor = DEFAULT__new_UnsafeCursor): Buffer.UnsafeCursor
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun readByte(): Byte

Removes a byte from this source and returns it.

actual open override fun readByte(): Byte
actual open override fun readByte(): Byte
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun readByteArray(): ByteArray

Removes all bytes from this and returns them as a byte array.

expect open override fun readByteArray(byteCount: Long): ByteArray

Removes byteCount bytes from this and returns them as a byte array.

actual open override fun readByteArray(): ByteArray
actual open override fun readByteArray(byteCount: Long): ByteArray
actual open override fun readByteArray(): ByteArray
actual open override fun readByteArray(byteCount: Long): ByteArray
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun readByteString(): ByteString

Removes all bytes from this and returns them as a byte string.

expect open override fun readByteString(byteCount: Long): ByteString

Removes byteCount bytes from this and returns them as a byte string.

actual open override fun readByteString(): ByteString
actual open override fun readByteString(byteCount: Long): ByteString
actual open override fun readByteString(): ByteString
actual open override fun readByteString(byteCount: Long): ByteString
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun readDecimalLong(): Long

Reads a long from this source in signed decimal form (i.e., as a string in base 10 with optional leading '-'). This will iterate until a non-digit character is found.

actual open override fun readDecimalLong(): Long
actual open override fun readDecimalLong(): Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Read and exhaust bytes from input into this.

fun readFrom(input: InputStream, byteCount: Long): Buffer

Read byteCount bytes from input into this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun readFully(sink: ByteArray)

Removes exactly sink.length bytes from this and copies them into sink. Throws an java.io.EOFException if the requested number of bytes cannot be read.

expect open override fun readFully(sink: Buffer, byteCount: Long)

Removes exactly byteCount bytes from this and appends them to sink. Throws an java.io.EOFException if the requested number of bytes cannot be read.

actual open override fun readFully(sink: ByteArray)
actual open override fun readFully(sink: Buffer, byteCount: Long)
actual open override fun readFully(sink: ByteArray)
actual open override fun readFully(sink: Buffer, byteCount: Long)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun readHexadecimalUnsignedLong(): Long

Reads a long form this source in hexadecimal form (i.e., as a string in base 16). This will iterate until a non-hexadecimal character is found.

actual open override fun readHexadecimalUnsignedLong(): Long
actual open override fun readHexadecimalUnsignedLong(): Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun readInt(): Int

Removes four bytes from this source and returns a big-endian int.

actual open override fun readInt(): Int
actual open override fun readInt(): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun readIntLe(): Int

Removes four bytes from this source and returns a little-endian int.

actual open override fun readIntLe(): Int
actual open override fun readIntLe(): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun readLong(): Long

Removes eight bytes from this source and returns a big-endian long.

actual open override fun readLong(): Long
actual open override fun readLong(): Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun readLongLe(): Long

Removes eight bytes from this source and returns a little-endian long.

actual open override fun readLongLe(): Long
actual open override fun readLongLe(): Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun readShort(): Short

Removes two bytes from this source and returns a big-endian short.

actual open override fun readShort(): Short
actual open override fun readShort(): Short
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun readShortLe(): Short

Removes two bytes from this source and returns a little-endian short.

actual open override fun readShortLe(): Short
actual open override fun readShortLe(): Short
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun readString(charset: Charset): String

Removes all bytes from this, decodes them as charset, and returns the string.

open override fun readString(byteCount: Long, charset: Charset): String

Removes byteCount bytes from this, decodes them as charset, and returns the string.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun readUnsafe(unsafeCursor: Buffer.UnsafeCursor = DEFAULT__new_UnsafeCursor): Buffer.UnsafeCursor
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun readUtf8(): String

Removes all bytes from this, decodes them as UTF-8, and returns the string. Returns the empty string if this source is empty.

expect open override fun readUtf8(byteCount: Long): String

Removes byteCount bytes from this, decodes them as UTF-8, and returns the string.

actual open override fun readUtf8(): String
actual open override fun readUtf8(byteCount: Long): String
actual open override fun readUtf8(): String
actual open override fun readUtf8(byteCount: Long): String
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun readUtf8CodePoint(): Int

Removes and returns a single UTF-8 code point, reading between 1 and 4 bytes as necessary.

actual open override fun readUtf8CodePoint(): Int
actual open override fun readUtf8CodePoint(): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun readUtf8Line(): String?

Removes and returns characters up to but not including the next line break. A line break is either "\n" or "\r\n"; these characters are not included in the result.

actual open override fun readUtf8Line(): String?
actual open override fun readUtf8Line(): String?
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun readUtf8LineStrict(): String

Removes and returns characters up to but not including the next line break. A line break is either "\n" or "\r\n"; these characters are not included in the result.

expect open override fun readUtf8LineStrict(limit: Long): String

Like readUtf8LineStrict, except this allows the caller to specify the longest allowed match. Use this to protect against streams that may not include "\n" or "\r\n".

actual open override fun readUtf8LineStrict(): String
actual open override fun readUtf8LineStrict(limit: Long): String
actual open override fun readUtf8LineStrict(): String
actual open override fun readUtf8LineStrict(limit: Long): String
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun request(byteCount: Long): Boolean

Returns true when the buffer contains at least byteCount bytes, expanding it as necessary. Returns false if the source is exhausted before the requested bytes can be read.

actual open override fun request(byteCount: Long): Boolean
actual open override fun request(byteCount: Long): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun require(byteCount: Long)

Returns when the buffer contains at least byteCount bytes. Throws an java.io.EOFException if the source is exhausted before the required bytes can be read.

actual open override fun require(byteCount: Long)
actual open override fun require(byteCount: Long)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun select(options: Options): Int

Finds the first byte string in options that is a prefix of this buffer, consumes it from this source, and returns its index. If no byte string in options is a prefix of this buffer this returns -1 and no bytes are consumed.

expect open override fun <T : Any> select(options: TypedOptions<T>): T?

Finds the first item in options whose encoding is a prefix of this buffer, consumes it from this buffer, and returns it. If no item in options is a prefix of this source, this function returns null and no bytes are consumed.

actual open override fun select(options: Options): Int
actual open override fun <T : Any> select(options: TypedOptions<T>): T?
actual open override fun select(options: Options): Int
actual open override fun <T : Any> select(options: TypedOptions<T>): T?
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun sha1(): ByteString
actual fun sha1(): ByteString

Returns the 160-bit SHA-1 hash of this buffer.

actual fun sha1(): ByteString
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun sha256(): ByteString
actual fun sha256(): ByteString

Returns the 256-bit SHA-256 hash of this buffer.

actual fun sha256(): ByteString
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun sha512(): ByteString
actual fun sha512(): ByteString

Returns the 512-bit SHA-512 hash of this buffer.

actual fun sha512(): ByteString
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun skip(byteCount: Long)

Discards byteCount bytes from the head of this buffer.

actual open override fun skip(byteCount: Long)
actual open override fun skip(byteCount: Long)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun snapshot(): ByteString

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

expect fun snapshot(byteCount: Int): ByteString

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

actual fun snapshot(): ByteString
actual fun snapshot(byteCount: Int): ByteString
actual fun snapshot(): ByteString
actual fun snapshot(byteCount: Int): ByteString
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun timeout(): Timeout

Returns the timeout for this source.

actual open override fun timeout(): Timeout

Returns the timeout for this source.

actual open override fun timeout(): Timeout

Returns the timeout for this source.

+
+
+
+
+ +
+
+
+
toString
+ +
Link copied to clipboard
+
+
+
+
+
+
open override fun toString(): String

Returns a human-readable string that describes the contents of this buffer. Typically this is a string like [text=Hello] or [hex=0000ffff].

open override fun toString(): String

Returns a human-readable string that describes the contents of this buffer. Typically this is a string like [text=Hello] or [hex=0000ffff].

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun write(source: ByteArray): Buffer

Like OutputStream.write, this writes a complete byte array to this sink.

expect open override fun write(byteString: ByteString): Buffer
expect open override fun write(byteString: ByteString, offset: Int, byteCount: Int): Buffer

expect open override fun write(source: Buffer, byteCount: Long)

Removes byteCount bytes from source and appends them to this.

expect open override fun write(source: Source, byteCount: Long): Buffer

Removes byteCount bytes from source and appends them to this sink.

expect open override fun write(source: ByteArray, offset: Int, byteCount: Int): Buffer

Like OutputStream.write, this writes byteCount bytes of source, starting at offset.

open override fun write(source: ByteBuffer): Int
actual open override fun write(source: ByteArray): Buffer
actual open override fun write(byteString: ByteString): Buffer
actual open override fun write(source: Buffer, byteCount: Long)
actual open override fun write(source: Source, byteCount: Long): Buffer
actual open override fun write(source: ByteArray, offset: Int, byteCount: Int): Buffer
actual open override fun write(byteString: ByteString, offset: Int, byteCount: Int): Buffer
actual open override fun write(source: ByteArray): Buffer
actual open override fun write(byteString: ByteString): Buffer
actual open override fun write(source: Buffer, byteCount: Long)
actual open override fun write(source: Source, byteCount: Long): Buffer
actual open override fun write(source: ByteArray, offset: Int, byteCount: Int): Buffer
actual open override fun write(byteString: ByteString, offset: Int, byteCount: Int): Buffer
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun writeAll(source: Source): Long

Removes all bytes from source and appends them to this sink. Returns the number of bytes read which will be 0 if source is exhausted.

actual open override fun writeAll(source: Source): Long
actual open override fun writeAll(source: Source): Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun writeByte(b: Int): Buffer

Writes a byte to this sink.

actual open override fun writeByte(b: Int): Buffer
actual open override fun writeByte(b: Int): Buffer
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun writeDecimalLong(v: Long): Buffer

Writes a long to this sink in signed decimal form (i.e., as a string in base 10).

actual open override fun writeDecimalLong(v: Long): Buffer
actual open override fun writeDecimalLong(v: Long): Buffer
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun writeHexadecimalUnsignedLong(v: Long): Buffer

Writes a long to this sink in hexadecimal form (i.e., as a string in base 16).

actual open override fun writeHexadecimalUnsignedLong(v: Long): Buffer
actual open override fun writeHexadecimalUnsignedLong(v: Long): Buffer
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun writeInt(i: Int): Buffer

Writes a big-endian int to this sink using four bytes.

actual open override fun writeInt(i: Int): Buffer
actual open override fun writeInt(i: Int): Buffer
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun writeIntLe(i: Int): Buffer

Writes a little-endian int to this sink using four bytes.

actual open override fun writeIntLe(i: Int): Buffer
actual open override fun writeIntLe(i: Int): Buffer
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun writeLong(v: Long): Buffer

Writes a big-endian long to this sink using eight bytes.

actual open override fun writeLong(v: Long): Buffer
actual open override fun writeLong(v: Long): Buffer
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun writeLongLe(v: Long): Buffer

Writes a little-endian long to this sink using eight bytes.

actual open override fun writeLongLe(v: Long): Buffer
actual open override fun writeLongLe(v: Long): Buffer
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun writeShort(s: Int): Buffer

Writes a big-endian short to this sink using two bytes.

actual open override fun writeShort(s: Int): Buffer
actual open override fun writeShort(s: Int): Buffer
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun writeShortLe(s: Int): Buffer

Writes a little-endian short to this sink using two bytes.

actual open override fun writeShortLe(s: Int): Buffer
actual open override fun writeShortLe(s: Int): Buffer
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun writeString(string: String, charset: Charset): Buffer
open override fun writeString(string: String, beginIndex: Int, endIndex: Int, charset: Charset): Buffer
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun writeTo(out: OutputStream, byteCount: Long = size): Buffer

Write byteCount bytes from this to out.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun writeUtf8(string: String): Buffer

Encodes string in UTF-8 and writes it to this sink.

expect open override fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): Buffer

Encodes the characters at beginIndex up to endIndex from string in UTF-8 and writes it to this sink.

actual open override fun writeUtf8(string: String): Buffer
actual open override fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): Buffer
actual open override fun writeUtf8(string: String): Buffer
actual open override fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): Buffer
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun writeUtf8CodePoint(codePoint: Int): Buffer

Encodes codePoint in UTF-8 and writes it to this sink.

actual open override fun writeUtf8CodePoint(codePoint: Int): Buffer
actual open override fun writeUtf8CodePoint(codePoint: Int): Buffer
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/input-stream.html b/3.x/okio/okio/okio/-buffer/input-stream.html new file mode 100644 index 0000000000..899083a096 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/input-stream.html @@ -0,0 +1,84 @@ + + + + + inputStream + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

inputStream

+
+
+
+
open override fun inputStream(): InputStream

Returns an input stream that reads from this source.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/is-open.html b/3.x/okio/okio/okio/-buffer/is-open.html new file mode 100644 index 0000000000..bb9c98d67a --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/is-open.html @@ -0,0 +1,84 @@ + + + + + isOpen + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

isOpen

+
+
+
+
open override fun isOpen(): Boolean
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/md5.html b/3.x/okio/okio/okio/-buffer/md5.html new file mode 100644 index 0000000000..82f090a1cd --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/md5.html @@ -0,0 +1,86 @@ + + + + + md5 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

md5

+
+
+
+
expect fun md5(): ByteString
actual fun md5(): ByteString

Returns the 128-bit MD5 hash of this buffer.

MD5 has been vulnerable to collisions since 2004. It should not be used in new code.

actual fun md5(): ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/output-stream.html b/3.x/okio/okio/okio/-buffer/output-stream.html new file mode 100644 index 0000000000..7f823ac736 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/output-stream.html @@ -0,0 +1,84 @@ + + + + + outputStream + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

outputStream

+
+
+
+
open override fun outputStream(): OutputStream

Returns an output stream that writes to this sink.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/peek.html b/3.x/okio/okio/okio/-buffer/peek.html new file mode 100644 index 0000000000..959f272526 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/peek.html @@ -0,0 +1,86 @@ + + + + + peek + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

peek

+
+
+
+
expect open override fun peek(): BufferedSource

Returns a new BufferedSource that can read data from this BufferedSource without consuming it. The returned source becomes invalid once this source is next read or closed.

For example, we can use peek() to lookahead and read the same data multiple times.

val buffer = Buffer()
buffer.writeUtf8("abcdefghi")

buffer.readUtf8(3) // returns "abc", buffer contains "defghi"

val peek = buffer.peek()
peek.readUtf8(3) // returns "def", buffer contains "defghi"
peek.readUtf8(3) // returns "ghi", buffer contains "defghi"

buffer.readUtf8(3) // returns "def", buffer contains "ghi"
actual open override fun peek(): BufferedSource
actual open override fun peek(): BufferedSource
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/range-equals.html b/3.x/okio/okio/okio/-buffer/range-equals.html new file mode 100644 index 0000000000..cb205af8d9 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/range-equals.html @@ -0,0 +1,86 @@ + + + + + rangeEquals + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rangeEquals

+
+
+
+
expect open override fun rangeEquals(offset: Long, bytes: ByteString): Boolean

Returns true if the bytes at offset in this source equal bytes. This expands the buffer as necessary until a byte does not match, all bytes are matched, or if the stream is exhausted before enough bytes could determine a match.

ByteString simonSays = ByteString.encodeUtf8("Simon says:");

Buffer standOnOneLeg = new Buffer().writeUtf8("Simon says: Stand on one leg.");
assertTrue(standOnOneLeg.rangeEquals(0, simonSays));

Buffer payMeMoney = new Buffer().writeUtf8("Pay me $1,000,000.");
assertFalse(payMeMoney.rangeEquals(0, simonSays));

expect open override fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean

Returns true if byteCount bytes at offset in this source equal bytes at bytesOffset. This expands the buffer as necessary until a byte does not match, all bytes are matched, or if the stream is exhausted before enough bytes could determine a match.

actual open override fun rangeEquals(offset: Long, bytes: ByteString): Boolean
actual open override fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean
actual open override fun rangeEquals(offset: Long, bytes: ByteString): Boolean
actual open override fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-all.html b/3.x/okio/okio/okio/-buffer/read-all.html new file mode 100644 index 0000000000..4d40baf50e --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-all.html @@ -0,0 +1,86 @@ + + + + + readAll + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readAll

+
+
+
+
expect open override fun readAll(sink: Sink): Long

Removes all bytes from this and appends them to sink. Returns the total number of bytes written to sink which will be 0 if this is exhausted.

actual open override fun readAll(sink: Sink): Long
actual open override fun readAll(sink: Sink): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-and-write-unsafe.html b/3.x/okio/okio/okio/-buffer/read-and-write-unsafe.html new file mode 100644 index 0000000000..96f8616af5 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-and-write-unsafe.html @@ -0,0 +1,86 @@ + + + + + readAndWriteUnsafe + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readAndWriteUnsafe

+
+
+
+
expect fun readAndWriteUnsafe(unsafeCursor: Buffer.UnsafeCursor = DEFAULT__new_UnsafeCursor): Buffer.UnsafeCursor
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-byte-array.html b/3.x/okio/okio/okio/-buffer/read-byte-array.html new file mode 100644 index 0000000000..6dcb634ac5 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-byte-array.html @@ -0,0 +1,86 @@ + + + + + readByteArray + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readByteArray

+
+
+
+
expect open override fun readByteArray(): ByteArray

Removes all bytes from this and returns them as a byte array.


expect open override fun readByteArray(byteCount: Long): ByteArray

Removes byteCount bytes from this and returns them as a byte array.

actual open override fun readByteArray(): ByteArray
actual open override fun readByteArray(byteCount: Long): ByteArray
actual open override fun readByteArray(): ByteArray
actual open override fun readByteArray(byteCount: Long): ByteArray
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-byte-string.html b/3.x/okio/okio/okio/-buffer/read-byte-string.html new file mode 100644 index 0000000000..e27ed335ea --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-byte-string.html @@ -0,0 +1,86 @@ + + + + + readByteString + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readByteString

+
+
+
+
expect open override fun readByteString(): ByteString

Removes all bytes from this and returns them as a byte string.


expect open override fun readByteString(byteCount: Long): ByteString

Removes byteCount bytes from this and returns them as a byte string.

actual open override fun readByteString(): ByteString
actual open override fun readByteString(byteCount: Long): ByteString
actual open override fun readByteString(): ByteString
actual open override fun readByteString(byteCount: Long): ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-byte.html b/3.x/okio/okio/okio/-buffer/read-byte.html new file mode 100644 index 0000000000..2d0330e4a8 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-byte.html @@ -0,0 +1,86 @@ + + + + + readByte + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readByte

+
+
+
+
expect open override fun readByte(): Byte

Removes a byte from this source and returns it.

actual open override fun readByte(): Byte
actual open override fun readByte(): Byte
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-decimal-long.html b/3.x/okio/okio/okio/-buffer/read-decimal-long.html new file mode 100644 index 0000000000..181b3302cc --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-decimal-long.html @@ -0,0 +1,86 @@ + + + + + readDecimalLong + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readDecimalLong

+
+
+
+
expect open override fun readDecimalLong(): Long

Reads a long from this source in signed decimal form (i.e., as a string in base 10 with optional leading '-'). This will iterate until a non-digit character is found.

Buffer buffer = new Buffer()
.writeUtf8("8675309 -123 00001");

assertEquals(8675309L, buffer.readDecimalLong());
assertEquals(' ', buffer.readByte());
assertEquals(-123L, buffer.readDecimalLong());
assertEquals(' ', buffer.readByte());
assertEquals(1L, buffer.readDecimalLong());

Throws

if the found digits do not fit into a long or a decimal number was not present.

actual open override fun readDecimalLong(): Long
actual open override fun readDecimalLong(): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-from.html b/3.x/okio/okio/okio/-buffer/read-from.html new file mode 100644 index 0000000000..0af6ca5df8 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-from.html @@ -0,0 +1,84 @@ + + + + + readFrom + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readFrom

+
+
+
+

Read and exhaust bytes from input into this.


fun readFrom(input: InputStream, byteCount: Long): Buffer

Read byteCount bytes from input into this.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-fully.html b/3.x/okio/okio/okio/-buffer/read-fully.html new file mode 100644 index 0000000000..d9ba980044 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-fully.html @@ -0,0 +1,86 @@ + + + + + readFully + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readFully

+
+
+
+
expect open override fun readFully(sink: Buffer, byteCount: Long)

Removes exactly byteCount bytes from this and appends them to sink. Throws an java.io.EOFException if the requested number of bytes cannot be read.


expect open override fun readFully(sink: ByteArray)

Removes exactly sink.length bytes from this and copies them into sink. Throws an java.io.EOFException if the requested number of bytes cannot be read.

actual open override fun readFully(sink: Buffer, byteCount: Long)
actual open override fun readFully(sink: ByteArray)
actual open override fun readFully(sink: Buffer, byteCount: Long)
actual open override fun readFully(sink: ByteArray)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-hexadecimal-unsigned-long.html b/3.x/okio/okio/okio/-buffer/read-hexadecimal-unsigned-long.html new file mode 100644 index 0000000000..777bdcdf6d --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-hexadecimal-unsigned-long.html @@ -0,0 +1,86 @@ + + + + + readHexadecimalUnsignedLong + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readHexadecimalUnsignedLong

+
+
+
+
expect open override fun readHexadecimalUnsignedLong(): Long

Reads a long form this source in hexadecimal form (i.e., as a string in base 16). This will iterate until a non-hexadecimal character is found.

Buffer buffer = new Buffer()
.writeUtf8("ffff CAFEBABE 10");

assertEquals(65535L, buffer.readHexadecimalUnsignedLong());
assertEquals(' ', buffer.readByte());
assertEquals(0xcafebabeL, buffer.readHexadecimalUnsignedLong());
assertEquals(' ', buffer.readByte());
assertEquals(0x10L, buffer.readHexadecimalUnsignedLong());

Throws

if the found hexadecimal does not fit into a long or hexadecimal was not found.

actual open override fun readHexadecimalUnsignedLong(): Long
actual open override fun readHexadecimalUnsignedLong(): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-int-le.html b/3.x/okio/okio/okio/-buffer/read-int-le.html new file mode 100644 index 0000000000..2c34ddeecc --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-int-le.html @@ -0,0 +1,86 @@ + + + + + readIntLe + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readIntLe

+
+
+
+
expect open override fun readIntLe(): Int

Removes four bytes from this source and returns a little-endian int.

Buffer buffer = new Buffer()
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0x7f)
.writeByte(0x0f)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00);
assertEquals(8, buffer.size());

assertEquals(2147483647, buffer.readIntLe());
assertEquals(4, buffer.size());

assertEquals(15, buffer.readIntLe());
assertEquals(0, buffer.size());
actual open override fun readIntLe(): Int
actual open override fun readIntLe(): Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-int.html b/3.x/okio/okio/okio/-buffer/read-int.html new file mode 100644 index 0000000000..27bae85ef5 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-int.html @@ -0,0 +1,86 @@ + + + + + readInt + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readInt

+
+
+
+
expect open override fun readInt(): Int

Removes four bytes from this source and returns a big-endian int.

Buffer buffer = new Buffer()
.writeByte(0x7f)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x0f);
assertEquals(8, buffer.size());

assertEquals(2147483647, buffer.readInt());
assertEquals(4, buffer.size());

assertEquals(15, buffer.readInt());
assertEquals(0, buffer.size());
actual open override fun readInt(): Int
actual open override fun readInt(): Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-long-le.html b/3.x/okio/okio/okio/-buffer/read-long-le.html new file mode 100644 index 0000000000..cb52d21450 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-long-le.html @@ -0,0 +1,86 @@ + + + + + readLongLe + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readLongLe

+
+
+
+
expect open override fun readLongLe(): Long

Removes eight bytes from this source and returns a little-endian long.

Buffer buffer = new Buffer()
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0x7f)
.writeByte(0x0f)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00);
assertEquals(16, buffer.size());

assertEquals(9223372036854775807L, buffer.readLongLe());
assertEquals(8, buffer.size());

assertEquals(15, buffer.readLongLe());
assertEquals(0, buffer.size());
actual open override fun readLongLe(): Long
actual open override fun readLongLe(): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-long.html b/3.x/okio/okio/okio/-buffer/read-long.html new file mode 100644 index 0000000000..a71aec9244 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-long.html @@ -0,0 +1,86 @@ + + + + + readLong + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readLong

+
+
+
+
expect open override fun readLong(): Long

Removes eight bytes from this source and returns a big-endian long.

Buffer buffer = new Buffer()
.writeByte(0x7f)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x0f);
assertEquals(16, buffer.size());

assertEquals(9223372036854775807L, buffer.readLong());
assertEquals(8, buffer.size());

assertEquals(15, buffer.readLong());
assertEquals(0, buffer.size());
actual open override fun readLong(): Long
actual open override fun readLong(): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-short-le.html b/3.x/okio/okio/okio/-buffer/read-short-le.html new file mode 100644 index 0000000000..9a474cc2b2 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-short-le.html @@ -0,0 +1,86 @@ + + + + + readShortLe + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readShortLe

+
+
+
+
expect open override fun readShortLe(): Short

Removes two bytes from this source and returns a little-endian short.

Buffer buffer = new Buffer()
.writeByte(0xff)
.writeByte(0x7f)
.writeByte(0x0f)
.writeByte(0x00);
assertEquals(4, buffer.size());

assertEquals(32767, buffer.readShortLe());
assertEquals(2, buffer.size());

assertEquals(15, buffer.readShortLe());
assertEquals(0, buffer.size());
actual open override fun readShortLe(): Short
actual open override fun readShortLe(): Short
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-short.html b/3.x/okio/okio/okio/-buffer/read-short.html new file mode 100644 index 0000000000..175a2153e8 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-short.html @@ -0,0 +1,86 @@ + + + + + readShort + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readShort

+
+
+
+
expect open override fun readShort(): Short

Removes two bytes from this source and returns a big-endian short.

Buffer buffer = new Buffer()
.writeByte(0x7f)
.writeByte(0xff)
.writeByte(0x00)
.writeByte(0x0f);
assertEquals(4, buffer.size());

assertEquals(32767, buffer.readShort());
assertEquals(2, buffer.size());

assertEquals(15, buffer.readShort());
assertEquals(0, buffer.size());
actual open override fun readShort(): Short
actual open override fun readShort(): Short
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-string.html b/3.x/okio/okio/okio/-buffer/read-string.html new file mode 100644 index 0000000000..8baa7ef25c --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-string.html @@ -0,0 +1,84 @@ + + + + + readString + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readString

+
+
+
+
open override fun readString(charset: Charset): String

Removes all bytes from this, decodes them as charset, and returns the string.


open override fun readString(byteCount: Long, charset: Charset): String

Removes byteCount bytes from this, decodes them as charset, and returns the string.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-unsafe.html b/3.x/okio/okio/okio/-buffer/read-unsafe.html new file mode 100644 index 0000000000..7020b74a76 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-unsafe.html @@ -0,0 +1,86 @@ + + + + + readUnsafe + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readUnsafe

+
+
+
+
expect fun readUnsafe(unsafeCursor: Buffer.UnsafeCursor = DEFAULT__new_UnsafeCursor): Buffer.UnsafeCursor
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-utf8-code-point.html b/3.x/okio/okio/okio/-buffer/read-utf8-code-point.html new file mode 100644 index 0000000000..e47e1297b3 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-utf8-code-point.html @@ -0,0 +1,86 @@ + + + + + readUtf8CodePoint + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readUtf8CodePoint

+
+
+
+
expect open override fun readUtf8CodePoint(): Int

Removes and returns a single UTF-8 code point, reading between 1 and 4 bytes as necessary.

If this source is exhausted before a complete code point can be read, this throws an java.io.EOFException and consumes no input.

If this source doesn't start with a properly-encoded UTF-8 code point, this method will remove 1 or more non-UTF-8 bytes and return the replacement character (U+FFFD). This covers encoding problems (the input is not properly-encoded UTF-8), characters out of range (beyond the 0x10ffff limit of Unicode), code points for UTF-16 surrogates (U+d800..U+dfff) and overlong encodings (such as 0xc080 for the NUL character in modified UTF-8).

actual open override fun readUtf8CodePoint(): Int
actual open override fun readUtf8CodePoint(): Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-utf8-line-strict.html b/3.x/okio/okio/okio/-buffer/read-utf8-line-strict.html new file mode 100644 index 0000000000..b4c7110193 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-utf8-line-strict.html @@ -0,0 +1,86 @@ + + + + + readUtf8LineStrict + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readUtf8LineStrict

+
+
+
+
expect open override fun readUtf8LineStrict(): String

Removes and returns characters up to but not including the next line break. A line break is either "\n" or "\r\n"; these characters are not included in the result.

On the end of the stream this method throws. Every call must consume either '\r\n' or '\n'. If these characters are absent in the stream, an java.io.EOFException is thrown. Use this for machine-generated data where a missing line break implies truncated input.


expect open override fun readUtf8LineStrict(limit: Long): String

Like readUtf8LineStrict, except this allows the caller to specify the longest allowed match. Use this to protect against streams that may not include "\n" or "\r\n".

The returned string will have at most limit UTF-8 bytes, and the maximum number of bytes scanned is limit + 2. If limit == 0 this will always throw an EOFException because no bytes will be scanned.

This method is safe. No bytes are discarded if the match fails, and the caller is free to try another match:

Buffer buffer = new Buffer();
buffer.writeUtf8("12345\r\n");

// This will throw! There must be \r\n or \n at the limit or before it.
buffer.readUtf8LineStrict(4);

// No bytes have been consumed so the caller can retry.
assertEquals("12345", buffer.readUtf8LineStrict(5));
actual open override fun readUtf8LineStrict(): String
actual open override fun readUtf8LineStrict(limit: Long): String
actual open override fun readUtf8LineStrict(): String
actual open override fun readUtf8LineStrict(limit: Long): String
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-utf8-line.html b/3.x/okio/okio/okio/-buffer/read-utf8-line.html new file mode 100644 index 0000000000..d133cea843 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-utf8-line.html @@ -0,0 +1,86 @@ + + + + + readUtf8Line + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readUtf8Line

+
+
+
+
expect open override fun readUtf8Line(): String?

Removes and returns characters up to but not including the next line break. A line break is either "\n" or "\r\n"; these characters are not included in the result.

Buffer buffer = new Buffer()
.writeUtf8("I'm a hacker!\n")
.writeUtf8("That's what I said: you're a nerd.\n")
.writeUtf8("I prefer to be called a hacker!\n");
assertEquals(81, buffer.size());

assertEquals("I'm a hacker!", buffer.readUtf8Line());
assertEquals(67, buffer.size());

assertEquals("That's what I said: you're a nerd.", buffer.readUtf8Line());
assertEquals(32, buffer.size());

assertEquals("I prefer to be called a hacker!", buffer.readUtf8Line());
assertEquals(0, buffer.size());

assertEquals(null, buffer.readUtf8Line());
assertEquals(0, buffer.size());

On the end of the stream this method returns null, just like java.io.BufferedReader. If the source doesn't end with a line break then an implicit line break is assumed. Null is returned once the source is exhausted. Use this for human-generated data, where a trailing line break is optional.

actual open override fun readUtf8Line(): String?
actual open override fun readUtf8Line(): String?
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read-utf8.html b/3.x/okio/okio/okio/-buffer/read-utf8.html new file mode 100644 index 0000000000..3bdda16ca6 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read-utf8.html @@ -0,0 +1,86 @@ + + + + + readUtf8 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readUtf8

+
+
+
+
expect open override fun readUtf8(): String

Removes all bytes from this, decodes them as UTF-8, and returns the string. Returns the empty string if this source is empty.

Buffer buffer = new Buffer()
.writeUtf8("Uh uh uh!")
.writeByte(' ')
.writeUtf8("You didn't say the magic word!");

assertEquals("Uh uh uh! You didn't say the magic word!", buffer.readUtf8());
assertEquals(0, buffer.size());

assertEquals("", buffer.readUtf8());
assertEquals(0, buffer.size());

expect open override fun readUtf8(byteCount: Long): String

Removes byteCount bytes from this, decodes them as UTF-8, and returns the string.

Buffer buffer = new Buffer()
.writeUtf8("Uh uh uh!")
.writeByte(' ')
.writeUtf8("You didn't say the magic word!");
assertEquals(40, buffer.size());

assertEquals("Uh uh uh! You ", buffer.readUtf8(14));
assertEquals(26, buffer.size());

assertEquals("didn't say the", buffer.readUtf8(14));
assertEquals(12, buffer.size());

assertEquals(" magic word!", buffer.readUtf8(12));
assertEquals(0, buffer.size());
actual open override fun readUtf8(): String
actual open override fun readUtf8(byteCount: Long): String
actual open override fun readUtf8(): String
actual open override fun readUtf8(byteCount: Long): String
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/read.html b/3.x/okio/okio/okio/-buffer/read.html new file mode 100644 index 0000000000..b0da7a7fc8 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/read.html @@ -0,0 +1,86 @@ + + + + + read + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

read

+
+
+
+
expect open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.


expect open override fun read(sink: ByteArray): Int

Removes up to sink.length bytes from this and copies them into sink. Returns the number of bytes read, or -1 if this source is exhausted.


expect open override fun read(sink: ByteArray, offset: Int, byteCount: Int): Int

Removes up to byteCount bytes from this and copies them into sink at offset. Returns the number of bytes read, or -1 if this source is exhausted.

open override fun read(sink: ByteBuffer): Int
actual open override fun read(sink: ByteArray): Int
actual open override fun read(sink: ByteArray, offset: Int, byteCount: Int): Int


actual open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

actual open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.


actual open override fun read(sink: ByteArray): Int
actual open override fun read(sink: ByteArray, offset: Int, byteCount: Int): Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/request.html b/3.x/okio/okio/okio/-buffer/request.html new file mode 100644 index 0000000000..f70b6bfe22 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/request.html @@ -0,0 +1,86 @@ + + + + + request + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

request

+
+
+
+
expect open override fun request(byteCount: Long): Boolean

Returns true when the buffer contains at least byteCount bytes, expanding it as necessary. Returns false if the source is exhausted before the requested bytes can be read.

actual open override fun request(byteCount: Long): Boolean
actual open override fun request(byteCount: Long): Boolean
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/require.html b/3.x/okio/okio/okio/-buffer/require.html new file mode 100644 index 0000000000..79ea1373d9 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/require.html @@ -0,0 +1,86 @@ + + + + + require + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

require

+
+
+
+
expect open override fun require(byteCount: Long)

Returns when the buffer contains at least byteCount bytes. Throws an java.io.EOFException if the source is exhausted before the required bytes can be read.

actual open override fun require(byteCount: Long)
actual open override fun require(byteCount: Long)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/select.html b/3.x/okio/okio/okio/-buffer/select.html new file mode 100644 index 0000000000..2fdbb70ca2 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/select.html @@ -0,0 +1,86 @@ + + + + + select + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

select

+
+
+
+
expect open override fun select(options: Options): Int

Finds the first byte string in options that is a prefix of this buffer, consumes it from this source, and returns its index. If no byte string in options is a prefix of this buffer this returns -1 and no bytes are consumed.

This can be used as an alternative to readByteString or even readUtf8 if the set of expected values is known in advance.

Options FIELDS = Options.of(
ByteString.encodeUtf8("depth="),
ByteString.encodeUtf8("height="),
ByteString.encodeUtf8("width="));

Buffer buffer = new Buffer()
.writeUtf8("width=640\n")
.writeUtf8("height=480\n");

assertEquals(2, buffer.select(FIELDS));
assertEquals(640, buffer.readDecimalLong());
assertEquals('\n', buffer.readByte());
assertEquals(1, buffer.select(FIELDS));
assertEquals(480, buffer.readDecimalLong());
assertEquals('\n', buffer.readByte());

expect open override fun <T : Any> select(options: TypedOptions<T>): T?

Finds the first item in options whose encoding is a prefix of this buffer, consumes it from this buffer, and returns it. If no item in options is a prefix of this source, this function returns null and no bytes are consumed.

This can be used as an alternative to readByteString or even readUtf8 if the set of expected values is known in advance.

TypedOptions<Direction> options = TypedOptions.of(
Arrays.asList(Direction.values()),
(direction) -> ByteString.encodeUtf8(direction.name().toLowerCase(Locale.ROOT))
);

Buffer buffer = new Buffer()
.writeUtf8("north:100\n")
.writeUtf8("east:50\n");

assertEquals(Direction.NORTH, buffer.select(options));
assertEquals(':', buffer.readByte());
assertEquals(100L, buffer.readDecimalLong());
assertEquals('\n', buffer.readByte());

assertEquals(Direction.EAST, buffer.select(options));
assertEquals(':', buffer.readByte());
assertEquals(50L, buffer.readDecimalLong());
assertEquals('\n', buffer.readByte());
actual open override fun select(options: Options): Int
actual open override fun <T : Any> select(options: TypedOptions<T>): T?
actual open override fun select(options: Options): Int
actual open override fun <T : Any> select(options: TypedOptions<T>): T?
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/sha1.html b/3.x/okio/okio/okio/-buffer/sha1.html new file mode 100644 index 0000000000..9dacc9cfc6 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/sha1.html @@ -0,0 +1,86 @@ + + + + + sha1 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sha1

+
+
+
+
expect fun sha1(): ByteString
actual fun sha1(): ByteString

Returns the 160-bit SHA-1 hash of this buffer.

SHA-1 has been vulnerable to collisions since 2017. It should not be used in new code.

actual fun sha1(): ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/sha256.html b/3.x/okio/okio/okio/-buffer/sha256.html new file mode 100644 index 0000000000..f98ed62f64 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/sha256.html @@ -0,0 +1,86 @@ + + + + + sha256 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sha256

+
+
+
+
expect fun sha256(): ByteString
actual fun sha256(): ByteString

Returns the 256-bit SHA-256 hash of this buffer.

actual fun sha256(): ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/sha512.html b/3.x/okio/okio/okio/-buffer/sha512.html new file mode 100644 index 0000000000..241fcb8cb9 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/sha512.html @@ -0,0 +1,86 @@ + + + + + sha512 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sha512

+
+
+
+
expect fun sha512(): ByteString
actual fun sha512(): ByteString

Returns the 512-bit SHA-512 hash of this buffer.

actual fun sha512(): ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/size.html b/3.x/okio/okio/okio/-buffer/size.html new file mode 100644 index 0000000000..81c068930b --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/size.html @@ -0,0 +1,86 @@ + + + + + size + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

size

+
+
+
+
expect var size: Long
@get:JvmName(name = "size")
actual var size: Long
actual var size: Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/skip.html b/3.x/okio/okio/okio/-buffer/skip.html new file mode 100644 index 0000000000..99affb4a34 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/skip.html @@ -0,0 +1,86 @@ + + + + + skip + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

skip

+
+
+
+
expect open override fun skip(byteCount: Long)

Discards byteCount bytes from the head of this buffer.

actual open override fun skip(byteCount: Long)
actual open override fun skip(byteCount: Long)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/snapshot.html b/3.x/okio/okio/okio/-buffer/snapshot.html new file mode 100644 index 0000000000..60aa476664 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/snapshot.html @@ -0,0 +1,86 @@ + + + + + snapshot + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

snapshot

+
+
+
+
expect fun snapshot(): ByteString

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


expect fun snapshot(byteCount: Int): ByteString

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

actual fun snapshot(): ByteString
actual fun snapshot(byteCount: Int): ByteString
actual fun snapshot(): ByteString
actual fun snapshot(byteCount: Int): ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/timeout.html b/3.x/okio/okio/okio/-buffer/timeout.html new file mode 100644 index 0000000000..357d7d4687 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/timeout.html @@ -0,0 +1,86 @@ + + + + + timeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

timeout

+
+
+
+
expect open override fun timeout(): Timeout

Returns the timeout for this source.

actual open override fun timeout(): Timeout

Returns the timeout for this source.

actual open override fun timeout(): Timeout

Returns the timeout for this source.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/write-all.html b/3.x/okio/okio/okio/-buffer/write-all.html new file mode 100644 index 0000000000..ff4c003394 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/write-all.html @@ -0,0 +1,86 @@ + + + + + writeAll + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeAll

+
+
+
+
expect open override fun writeAll(source: Source): Long

Removes all bytes from source and appends them to this sink. Returns the number of bytes read which will be 0 if source is exhausted.

actual open override fun writeAll(source: Source): Long
actual open override fun writeAll(source: Source): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/write-byte.html b/3.x/okio/okio/okio/-buffer/write-byte.html new file mode 100644 index 0000000000..59fc17a696 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/write-byte.html @@ -0,0 +1,86 @@ + + + + + writeByte + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeByte

+
+
+
+
expect open override fun writeByte(b: Int): Buffer

Writes a byte to this sink.

actual open override fun writeByte(b: Int): Buffer
actual open override fun writeByte(b: Int): Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/write-decimal-long.html b/3.x/okio/okio/okio/-buffer/write-decimal-long.html new file mode 100644 index 0000000000..5106ed310b --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/write-decimal-long.html @@ -0,0 +1,86 @@ + + + + + writeDecimalLong + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeDecimalLong

+
+
+
+
expect open override fun writeDecimalLong(v: Long): Buffer

Writes a long to this sink in signed decimal form (i.e., as a string in base 10).

Buffer buffer = new Buffer();
buffer.writeDecimalLong(8675309L);
buffer.writeByte(' ');
buffer.writeDecimalLong(-123L);
buffer.writeByte(' ');
buffer.writeDecimalLong(1L);

assertEquals("8675309 -123 1", buffer.readUtf8());
actual open override fun writeDecimalLong(v: Long): Buffer
actual open override fun writeDecimalLong(v: Long): Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/write-hexadecimal-unsigned-long.html b/3.x/okio/okio/okio/-buffer/write-hexadecimal-unsigned-long.html new file mode 100644 index 0000000000..235251c130 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/write-hexadecimal-unsigned-long.html @@ -0,0 +1,86 @@ + + + + + writeHexadecimalUnsignedLong + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeHexadecimalUnsignedLong

+
+
+
+
expect open override fun writeHexadecimalUnsignedLong(v: Long): Buffer

Writes a long to this sink in hexadecimal form (i.e., as a string in base 16).

Buffer buffer = new Buffer();
buffer.writeHexadecimalUnsignedLong(65535L);
buffer.writeByte(' ');
buffer.writeHexadecimalUnsignedLong(0xcafebabeL);
buffer.writeByte(' ');
buffer.writeHexadecimalUnsignedLong(0x10L);

assertEquals("ffff cafebabe 10", buffer.readUtf8());
actual open override fun writeHexadecimalUnsignedLong(v: Long): Buffer
actual open override fun writeHexadecimalUnsignedLong(v: Long): Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/write-int-le.html b/3.x/okio/okio/okio/-buffer/write-int-le.html new file mode 100644 index 0000000000..b1eb9ddbb9 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/write-int-le.html @@ -0,0 +1,86 @@ + + + + + writeIntLe + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeIntLe

+
+
+
+
expect open override fun writeIntLe(i: Int): Buffer

Writes a little-endian int to this sink using four bytes.

Buffer buffer = new Buffer();
buffer.writeIntLe(2147483647);
buffer.writeIntLe(15);

assertEquals(8, buffer.size());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals(0, buffer.size());
actual open override fun writeIntLe(i: Int): Buffer
actual open override fun writeIntLe(i: Int): Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/write-int.html b/3.x/okio/okio/okio/-buffer/write-int.html new file mode 100644 index 0000000000..f16d338fda --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/write-int.html @@ -0,0 +1,86 @@ + + + + + writeInt + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeInt

+
+
+
+
expect open override fun writeInt(i: Int): Buffer

Writes a big-endian int to this sink using four bytes.

Buffer buffer = new Buffer();
buffer.writeInt(2147483647);
buffer.writeInt(15);

assertEquals(8, buffer.size());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals(0, buffer.size());
actual open override fun writeInt(i: Int): Buffer
actual open override fun writeInt(i: Int): Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/write-long-le.html b/3.x/okio/okio/okio/-buffer/write-long-le.html new file mode 100644 index 0000000000..e94ef712a9 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/write-long-le.html @@ -0,0 +1,86 @@ + + + + + writeLongLe + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeLongLe

+
+
+
+
expect open override fun writeLongLe(v: Long): Buffer

Writes a little-endian long to this sink using eight bytes.

Buffer buffer = new Buffer();
buffer.writeLongLe(9223372036854775807L);
buffer.writeLongLe(15);

assertEquals(16, buffer.size());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals(0, buffer.size());
actual open override fun writeLongLe(v: Long): Buffer
actual open override fun writeLongLe(v: Long): Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/write-long.html b/3.x/okio/okio/okio/-buffer/write-long.html new file mode 100644 index 0000000000..244150932a --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/write-long.html @@ -0,0 +1,86 @@ + + + + + writeLong + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeLong

+
+
+
+
expect open override fun writeLong(v: Long): Buffer

Writes a big-endian long to this sink using eight bytes.

Buffer buffer = new Buffer();
buffer.writeLong(9223372036854775807L);
buffer.writeLong(15);

assertEquals(16, buffer.size());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals(0, buffer.size());
actual open override fun writeLong(v: Long): Buffer
actual open override fun writeLong(v: Long): Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/write-short-le.html b/3.x/okio/okio/okio/-buffer/write-short-le.html new file mode 100644 index 0000000000..1c604936d7 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/write-short-le.html @@ -0,0 +1,86 @@ + + + + + writeShortLe + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeShortLe

+
+
+
+
expect open override fun writeShortLe(s: Int): Buffer

Writes a little-endian short to this sink using two bytes.

Buffer buffer = new Buffer();
buffer.writeShortLe(32767);
buffer.writeShortLe(15);

assertEquals(4, buffer.size());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals(0, buffer.size());
actual open override fun writeShortLe(s: Int): Buffer
actual open override fun writeShortLe(s: Int): Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/write-short.html b/3.x/okio/okio/okio/-buffer/write-short.html new file mode 100644 index 0000000000..0bf190abed --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/write-short.html @@ -0,0 +1,86 @@ + + + + + writeShort + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeShort

+
+
+
+
expect open override fun writeShort(s: Int): Buffer

Writes a big-endian short to this sink using two bytes.

Buffer buffer = new Buffer();
buffer.writeShort(32767);
buffer.writeShort(15);

assertEquals(4, buffer.size());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals(0, buffer.size());
actual open override fun writeShort(s: Int): Buffer
actual open override fun writeShort(s: Int): Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/write-string.html b/3.x/okio/okio/okio/-buffer/write-string.html new file mode 100644 index 0000000000..4cc251ca1a --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/write-string.html @@ -0,0 +1,84 @@ + + + + + writeString + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeString

+
+
+
+
open override fun writeString(string: String, charset: Charset): Buffer
open override fun writeString(string: String, beginIndex: Int, endIndex: Int, charset: Charset): Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/write-to.html b/3.x/okio/okio/okio/-buffer/write-to.html new file mode 100644 index 0000000000..54d7e93a96 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/write-to.html @@ -0,0 +1,84 @@ + + + + + writeTo + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeTo

+
+
+
+
fun writeTo(out: OutputStream, byteCount: Long = size): Buffer

Write byteCount bytes from this to out.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/write-utf8-code-point.html b/3.x/okio/okio/okio/-buffer/write-utf8-code-point.html new file mode 100644 index 0000000000..6a362cc205 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/write-utf8-code-point.html @@ -0,0 +1,86 @@ + + + + + writeUtf8CodePoint + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeUtf8CodePoint

+
+
+
+
expect open override fun writeUtf8CodePoint(codePoint: Int): Buffer

Encodes codePoint in UTF-8 and writes it to this sink.

actual open override fun writeUtf8CodePoint(codePoint: Int): Buffer
actual open override fun writeUtf8CodePoint(codePoint: Int): Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/write-utf8.html b/3.x/okio/okio/okio/-buffer/write-utf8.html new file mode 100644 index 0000000000..bbe34d0a87 --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/write-utf8.html @@ -0,0 +1,86 @@ + + + + + writeUtf8 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeUtf8

+
+
+
+
expect open override fun writeUtf8(string: String): Buffer

Encodes string in UTF-8 and writes it to this sink.

Buffer buffer = new Buffer();
buffer.writeUtf8("Uh uh uh!");
buffer.writeByte(' ');
buffer.writeUtf8("You didn't say the magic word!");

assertEquals("Uh uh uh! You didn't say the magic word!", buffer.readUtf8());

expect open override fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): Buffer

Encodes the characters at beginIndex up to endIndex from string in UTF-8 and writes it to this sink.

Buffer buffer = new Buffer();
buffer.writeUtf8("I'm a hacker!\n", 6, 12);
buffer.writeByte(' ');
buffer.writeUtf8("That's what I said: you're a nerd.\n", 29, 33);
buffer.writeByte(' ');
buffer.writeUtf8("I prefer to be called a hacker!\n", 24, 31);

assertEquals("hacker nerd hacker!", buffer.readUtf8());
actual open override fun writeUtf8(string: String): Buffer
actual open override fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): Buffer
actual open override fun writeUtf8(string: String): Buffer
actual open override fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffer/write.html b/3.x/okio/okio/okio/-buffer/write.html new file mode 100644 index 0000000000..c758ee712a --- /dev/null +++ b/3.x/okio/okio/okio/-buffer/write.html @@ -0,0 +1,86 @@ + + + + + write + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

write

+
+
+
+
expect open override fun write(byteString: ByteString): Buffer
expect open override fun write(byteString: ByteString, offset: Int, byteCount: Int): Buffer


expect open override fun write(source: Buffer, byteCount: Long)

Removes byteCount bytes from source and appends them to this.


expect open override fun write(source: ByteArray): Buffer

Like OutputStream.write, this writes a complete byte array to this sink.


expect open override fun write(source: ByteArray, offset: Int, byteCount: Int): Buffer

Like OutputStream.write, this writes byteCount bytes of source, starting at offset.


expect open override fun write(source: Source, byteCount: Long): Buffer

Removes byteCount bytes from source and appends them to this sink.

open override fun write(source: ByteBuffer): Int
actual open override fun write(byteString: ByteString): Buffer
actual open override fun write(byteString: ByteString, offset: Int, byteCount: Int): Buffer
actual open override fun write(source: Buffer, byteCount: Long)
actual open override fun write(source: ByteArray): Buffer
actual open override fun write(source: ByteArray, offset: Int, byteCount: Int): Buffer
actual open override fun write(source: Source, byteCount: Long): Buffer
actual open override fun write(byteString: ByteString): Buffer
actual open override fun write(byteString: ByteString, offset: Int, byteCount: Int): Buffer
actual open override fun write(source: Buffer, byteCount: Long)
actual open override fun write(source: ByteArray): Buffer
actual open override fun write(source: ByteArray, offset: Int, byteCount: Int): Buffer
actual open override fun write(source: Source, byteCount: Long): Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/buffer.html b/3.x/okio/okio/okio/-buffered-sink/buffer.html new file mode 100644 index 0000000000..f8483d6ae6 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/buffer.html @@ -0,0 +1,86 @@ + + + + + buffer + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

buffer

+
+
+
+
expect abstract val buffer: Buffer

This sink's internal buffer.

actual abstract val buffer: Buffer
actual abstract val buffer: Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/emit-complete-segments.html b/3.x/okio/okio/okio/-buffered-sink/emit-complete-segments.html new file mode 100644 index 0000000000..4ffcf33b75 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/emit-complete-segments.html @@ -0,0 +1,86 @@ + + + + + emitCompleteSegments + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

emitCompleteSegments

+
+
+
+
expect abstract fun emitCompleteSegments(): BufferedSink

Writes complete segments to the underlying sink, if one exists. Like flush, but weaker. Use this to limit the memory held in the buffer to a single segment. Typically application code will not need to call this: it is only necessary when application code writes directly to this sink's buffer.

BufferedSink b0 = new Buffer();
BufferedSink b1 = Okio.buffer(b0);
BufferedSink b2 = Okio.buffer(b1);

b2.buffer().write(new byte[20_000]);
assertEquals(20_000, b2.buffer().size());
assertEquals( 0, b1.buffer().size());
assertEquals( 0, b0.buffer().size());

b2.emitCompleteSegments();
assertEquals( 3_616, b2.buffer().size());
assertEquals( 0, b1.buffer().size());
assertEquals(16_384, b0.buffer().size()); // This example assumes 8192 byte segments.
actual abstract fun emitCompleteSegments(): BufferedSink
actual abstract fun emitCompleteSegments(): BufferedSink
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/emit.html b/3.x/okio/okio/okio/-buffered-sink/emit.html new file mode 100644 index 0000000000..2bb7f8ecfd --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/emit.html @@ -0,0 +1,86 @@ + + + + + emit + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

emit

+
+
+
+
expect abstract fun emit(): BufferedSink

Writes all buffered data to the underlying sink, if one exists. Like flush, but weaker. Call this before this buffered sink goes out of scope so that its data can reach its destination.

BufferedSink b0 = new Buffer();
BufferedSink b1 = Okio.buffer(b0);
BufferedSink b2 = Okio.buffer(b1);

b2.writeUtf8("hello");
assertEquals(5, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(0, b0.buffer().size());

b2.emit();
assertEquals(0, b2.buffer().size());
assertEquals(5, b1.buffer().size());
assertEquals(0, b0.buffer().size());

b1.emit();
assertEquals(0, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(5, b0.buffer().size());
actual abstract fun emit(): BufferedSink
actual abstract fun emit(): BufferedSink
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/flush.html b/3.x/okio/okio/okio/-buffered-sink/flush.html new file mode 100644 index 0000000000..6c223435eb --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/flush.html @@ -0,0 +1,85 @@ + + + + + flush + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

flush

+
+
+
+
expect abstract override fun flush()

Writes all buffered data to the underlying sink, if one exists. Then that sink is recursively flushed which pushes data as far as possible towards its ultimate destination. Typically that destination is a network socket or file.

BufferedSink b0 = new Buffer();
BufferedSink b1 = Okio.buffer(b0);
BufferedSink b2 = Okio.buffer(b1);

b2.writeUtf8("hello");
assertEquals(5, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(0, b0.buffer().size());

b2.flush();
assertEquals(0, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(5, b0.buffer().size());
actual abstract override fun flush()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/index.html b/3.x/okio/okio/okio/-buffered-sink/index.html new file mode 100644 index 0000000000..e3c422d9d4 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/index.html @@ -0,0 +1,559 @@ + + + + + BufferedSink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

BufferedSink

+
+
+
expect sealed interface BufferedSink : Sink

A sink that keeps a buffer internally so that callers can do small writes without a performance penalty.

Inheritors

Inheritors

actual interface BufferedSink : Sink

Inheritors

+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract val buffer: Buffer

This sink's internal buffer.

actual abstract val buffer: Buffer
actual abstract val buffer: Buffer
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a new sink that buffers writes to sink. The returned sink will batch writes to sink. Use this wherever you write to a sink to get an ergonomic and efficient access to data.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that uses cipher to encrypt or decrypt this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract override fun close()

Pushes all buffered bytes to their final destination and releases the resources held by this sink. It is an error to write a closed sink. It is safe to close a sink more than once.

actual abstract override fun close()
actual abstract override fun close()
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Sink.deflate(deflater: Deflater = Deflater()): DeflaterSink

Returns an DeflaterSink that DEFLATE-compresses data to this Sink while writing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun emit(): BufferedSink

Writes all buffered data to the underlying sink, if one exists. Like flush, but weaker. Call this before this buffered sink goes out of scope so that its data can reach its destination.

actual abstract fun emit(): BufferedSink
actual abstract fun emit(): BufferedSink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun emitCompleteSegments(): BufferedSink

Writes complete segments to the underlying sink, if one exists. Like flush, but weaker. Use this to limit the memory held in the buffer to a single segment. Typically application code will not need to call this: it is only necessary when application code writes directly to this sink's buffer.

actual abstract fun emitCompleteSegments(): BufferedSink
actual abstract fun emitCompleteSegments(): BufferedSink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract override fun flush()

Writes all buffered data to the underlying sink, if one exists. Then that sink is recursively flushed which pushes data as far as possible towards its ultimate destination. Typically that destination is a network socket or file.

actual abstract override fun flush()
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Sink.gzip(): GzipSink

Returns a GzipSink that gzip-compresses to this Sink while writing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that uses digest to hash this.

Returns a sink that uses mac to hash this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
abstract fun isOpen(): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
abstract fun outputStream(): OutputStream

Returns an output stream that writes to this sink.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun timeout(): Timeout

Returns the timeout for this sink.

actual abstract fun timeout(): Timeout
actual abstract fun timeout(): Timeout
+
+
+
+
+ +
+
+
+
write
+ +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun write(source: ByteArray): BufferedSink

Like OutputStream.write, this writes a complete byte array to this sink.

expect abstract fun write(byteString: ByteString): BufferedSink
expect abstract fun write(byteString: ByteString, offset: Int, byteCount: Int): BufferedSink

expect abstract fun write(source: Source, byteCount: Long): BufferedSink

Removes byteCount bytes from source and appends them to this sink.

expect abstract fun write(source: ByteArray, offset: Int, byteCount: Int): BufferedSink

Like OutputStream.write, this writes byteCount bytes of source, starting at offset.

expect abstract fun write(source: Buffer, byteCount: Long)

Removes byteCount bytes from source and appends them to this.

abstract fun write(p0: ByteBuffer): Int
actual abstract fun write(source: ByteArray): BufferedSink
actual abstract fun write(byteString: ByteString): BufferedSink
actual abstract fun write(source: Source, byteCount: Long): BufferedSink
actual abstract fun write(source: ByteArray, offset: Int, byteCount: Int): BufferedSink
actual abstract fun write(byteString: ByteString, offset: Int, byteCount: Int): BufferedSink
actual abstract fun write(source: Buffer, byteCount: Long)
actual abstract fun write(source: ByteArray): BufferedSink
actual abstract fun write(byteString: ByteString): BufferedSink
actual abstract fun write(source: Source, byteCount: Long): BufferedSink
actual abstract fun write(source: ByteArray, offset: Int, byteCount: Int): BufferedSink
actual abstract fun write(byteString: ByteString, offset: Int, byteCount: Int): BufferedSink
actual abstract fun write(source: Buffer, byteCount: Long)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun writeAll(source: Source): Long

Removes all bytes from source and appends them to this sink. Returns the number of bytes read which will be 0 if source is exhausted.

actual abstract fun writeAll(source: Source): Long
actual abstract fun writeAll(source: Source): Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun writeByte(b: Int): BufferedSink

Writes a byte to this sink.

actual abstract fun writeByte(b: Int): BufferedSink
actual abstract fun writeByte(b: Int): BufferedSink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun writeDecimalLong(v: Long): BufferedSink

Writes a long to this sink in signed decimal form (i.e., as a string in base 10).

actual abstract fun writeDecimalLong(v: Long): BufferedSink
actual abstract fun writeDecimalLong(v: Long): BufferedSink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Writes a long to this sink in hexadecimal form (i.e., as a string in base 16).

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun writeInt(i: Int): BufferedSink

Writes a big-endian int to this sink using four bytes.

actual abstract fun writeInt(i: Int): BufferedSink
actual abstract fun writeInt(i: Int): BufferedSink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun writeIntLe(i: Int): BufferedSink

Writes a little-endian int to this sink using four bytes.

actual abstract fun writeIntLe(i: Int): BufferedSink
actual abstract fun writeIntLe(i: Int): BufferedSink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun writeLong(v: Long): BufferedSink

Writes a big-endian long to this sink using eight bytes.

actual abstract fun writeLong(v: Long): BufferedSink
actual abstract fun writeLong(v: Long): BufferedSink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun writeLongLe(v: Long): BufferedSink

Writes a little-endian long to this sink using eight bytes.

actual abstract fun writeLongLe(v: Long): BufferedSink
actual abstract fun writeLongLe(v: Long): BufferedSink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun writeShort(s: Int): BufferedSink

Writes a big-endian short to this sink using two bytes.

actual abstract fun writeShort(s: Int): BufferedSink
actual abstract fun writeShort(s: Int): BufferedSink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun writeShortLe(s: Int): BufferedSink

Writes a little-endian short to this sink using two bytes.

actual abstract fun writeShortLe(s: Int): BufferedSink
actual abstract fun writeShortLe(s: Int): BufferedSink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
abstract fun writeString(string: String, charset: Charset): BufferedSink
abstract fun writeString(string: String, beginIndex: Int, endIndex: Int, charset: Charset): BufferedSink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun writeUtf8(string: String): BufferedSink

Encodes string in UTF-8 and writes it to this sink.

expect abstract fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): BufferedSink

Encodes the characters at beginIndex up to endIndex from string in UTF-8 and writes it to this sink.

actual abstract fun writeUtf8(string: String): BufferedSink
actual abstract fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): BufferedSink
actual abstract fun writeUtf8(string: String): BufferedSink
actual abstract fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): BufferedSink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun writeUtf8CodePoint(codePoint: Int): BufferedSink

Encodes codePoint in UTF-8 and writes it to this sink.

actual abstract fun writeUtf8CodePoint(codePoint: Int): BufferedSink
actual abstract fun writeUtf8CodePoint(codePoint: Int): BufferedSink
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/output-stream.html b/3.x/okio/okio/okio/-buffered-sink/output-stream.html new file mode 100644 index 0000000000..1daa5f1395 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/output-stream.html @@ -0,0 +1,84 @@ + + + + + outputStream + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

outputStream

+
+
+
+
abstract fun outputStream(): OutputStream

Returns an output stream that writes to this sink.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/write-all.html b/3.x/okio/okio/okio/-buffered-sink/write-all.html new file mode 100644 index 0000000000..72c397ab7f --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/write-all.html @@ -0,0 +1,86 @@ + + + + + writeAll + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeAll

+
+
+
+
expect abstract fun writeAll(source: Source): Long

Removes all bytes from source and appends them to this sink. Returns the number of bytes read which will be 0 if source is exhausted.

actual abstract fun writeAll(source: Source): Long
actual abstract fun writeAll(source: Source): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/write-byte.html b/3.x/okio/okio/okio/-buffered-sink/write-byte.html new file mode 100644 index 0000000000..ee313296d6 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/write-byte.html @@ -0,0 +1,86 @@ + + + + + writeByte + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeByte

+
+
+
+
expect abstract fun writeByte(b: Int): BufferedSink

Writes a byte to this sink.

actual abstract fun writeByte(b: Int): BufferedSink
actual abstract fun writeByte(b: Int): BufferedSink
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/write-decimal-long.html b/3.x/okio/okio/okio/-buffered-sink/write-decimal-long.html new file mode 100644 index 0000000000..ed28491479 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/write-decimal-long.html @@ -0,0 +1,86 @@ + + + + + writeDecimalLong + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeDecimalLong

+
+
+
+
expect abstract fun writeDecimalLong(v: Long): BufferedSink

Writes a long to this sink in signed decimal form (i.e., as a string in base 10).

Buffer buffer = new Buffer();
buffer.writeDecimalLong(8675309L);
buffer.writeByte(' ');
buffer.writeDecimalLong(-123L);
buffer.writeByte(' ');
buffer.writeDecimalLong(1L);

assertEquals("8675309 -123 1", buffer.readUtf8());
actual abstract fun writeDecimalLong(v: Long): BufferedSink
actual abstract fun writeDecimalLong(v: Long): BufferedSink
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/write-hexadecimal-unsigned-long.html b/3.x/okio/okio/okio/-buffered-sink/write-hexadecimal-unsigned-long.html new file mode 100644 index 0000000000..200fd3067a --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/write-hexadecimal-unsigned-long.html @@ -0,0 +1,86 @@ + + + + + writeHexadecimalUnsignedLong + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeHexadecimalUnsignedLong

+
+
+
+

Writes a long to this sink in hexadecimal form (i.e., as a string in base 16).

Buffer buffer = new Buffer();
buffer.writeHexadecimalUnsignedLong(65535L);
buffer.writeByte(' ');
buffer.writeHexadecimalUnsignedLong(0xcafebabeL);
buffer.writeByte(' ');
buffer.writeHexadecimalUnsignedLong(0x10L);

assertEquals("ffff cafebabe 10", buffer.readUtf8());
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/write-int-le.html b/3.x/okio/okio/okio/-buffered-sink/write-int-le.html new file mode 100644 index 0000000000..9ec1106606 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/write-int-le.html @@ -0,0 +1,86 @@ + + + + + writeIntLe + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeIntLe

+
+
+
+
expect abstract fun writeIntLe(i: Int): BufferedSink

Writes a little-endian int to this sink using four bytes.

Buffer buffer = new Buffer();
buffer.writeIntLe(2147483647);
buffer.writeIntLe(15);

assertEquals(8, buffer.size());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals(0, buffer.size());
actual abstract fun writeIntLe(i: Int): BufferedSink
actual abstract fun writeIntLe(i: Int): BufferedSink
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/write-int.html b/3.x/okio/okio/okio/-buffered-sink/write-int.html new file mode 100644 index 0000000000..c908ea70d5 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/write-int.html @@ -0,0 +1,86 @@ + + + + + writeInt + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeInt

+
+
+
+
expect abstract fun writeInt(i: Int): BufferedSink

Writes a big-endian int to this sink using four bytes.

Buffer buffer = new Buffer();
buffer.writeInt(2147483647);
buffer.writeInt(15);

assertEquals(8, buffer.size());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals(0, buffer.size());
actual abstract fun writeInt(i: Int): BufferedSink
actual abstract fun writeInt(i: Int): BufferedSink
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/write-long-le.html b/3.x/okio/okio/okio/-buffered-sink/write-long-le.html new file mode 100644 index 0000000000..88ce1797cd --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/write-long-le.html @@ -0,0 +1,86 @@ + + + + + writeLongLe + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeLongLe

+
+
+
+
expect abstract fun writeLongLe(v: Long): BufferedSink

Writes a little-endian long to this sink using eight bytes.

Buffer buffer = new Buffer();
buffer.writeLongLe(9223372036854775807L);
buffer.writeLongLe(15);

assertEquals(16, buffer.size());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals(0, buffer.size());
actual abstract fun writeLongLe(v: Long): BufferedSink
actual abstract fun writeLongLe(v: Long): BufferedSink
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/write-long.html b/3.x/okio/okio/okio/-buffered-sink/write-long.html new file mode 100644 index 0000000000..f1a3a66ab0 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/write-long.html @@ -0,0 +1,86 @@ + + + + + writeLong + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeLong

+
+
+
+
expect abstract fun writeLong(v: Long): BufferedSink

Writes a big-endian long to this sink using eight bytes.

Buffer buffer = new Buffer();
buffer.writeLong(9223372036854775807L);
buffer.writeLong(15);

assertEquals(16, buffer.size());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals(0, buffer.size());
actual abstract fun writeLong(v: Long): BufferedSink
actual abstract fun writeLong(v: Long): BufferedSink
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/write-short-le.html b/3.x/okio/okio/okio/-buffered-sink/write-short-le.html new file mode 100644 index 0000000000..3992fe7c2f --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/write-short-le.html @@ -0,0 +1,86 @@ + + + + + writeShortLe + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeShortLe

+
+
+
+
expect abstract fun writeShortLe(s: Int): BufferedSink

Writes a little-endian short to this sink using two bytes.

Buffer buffer = new Buffer();
buffer.writeShortLe(32767);
buffer.writeShortLe(15);

assertEquals(4, buffer.size());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals(0, buffer.size());
actual abstract fun writeShortLe(s: Int): BufferedSink
actual abstract fun writeShortLe(s: Int): BufferedSink
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/write-short.html b/3.x/okio/okio/okio/-buffered-sink/write-short.html new file mode 100644 index 0000000000..849ff336e3 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/write-short.html @@ -0,0 +1,86 @@ + + + + + writeShort + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeShort

+
+
+
+
expect abstract fun writeShort(s: Int): BufferedSink

Writes a big-endian short to this sink using two bytes.

Buffer buffer = new Buffer();
buffer.writeShort(32767);
buffer.writeShort(15);

assertEquals(4, buffer.size());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals(0, buffer.size());
actual abstract fun writeShort(s: Int): BufferedSink
actual abstract fun writeShort(s: Int): BufferedSink
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/write-string.html b/3.x/okio/okio/okio/-buffered-sink/write-string.html new file mode 100644 index 0000000000..a7adeb995f --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/write-string.html @@ -0,0 +1,84 @@ + + + + + writeString + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeString

+
+
+
+
abstract fun writeString(string: String, charset: Charset): BufferedSink
abstract fun writeString(string: String, beginIndex: Int, endIndex: Int, charset: Charset): BufferedSink
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/write-utf8-code-point.html b/3.x/okio/okio/okio/-buffered-sink/write-utf8-code-point.html new file mode 100644 index 0000000000..0e0be00ab9 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/write-utf8-code-point.html @@ -0,0 +1,86 @@ + + + + + writeUtf8CodePoint + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeUtf8CodePoint

+
+
+
+
expect abstract fun writeUtf8CodePoint(codePoint: Int): BufferedSink

Encodes codePoint in UTF-8 and writes it to this sink.

actual abstract fun writeUtf8CodePoint(codePoint: Int): BufferedSink
actual abstract fun writeUtf8CodePoint(codePoint: Int): BufferedSink
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/write-utf8.html b/3.x/okio/okio/okio/-buffered-sink/write-utf8.html new file mode 100644 index 0000000000..e6098dfe95 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/write-utf8.html @@ -0,0 +1,86 @@ + + + + + writeUtf8 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

writeUtf8

+
+
+
+
expect abstract fun writeUtf8(string: String): BufferedSink

Encodes string in UTF-8 and writes it to this sink.

Buffer buffer = new Buffer();
buffer.writeUtf8("Uh uh uh!");
buffer.writeByte(' ');
buffer.writeUtf8("You didn't say the magic word!");

assertEquals("Uh uh uh! You didn't say the magic word!", buffer.readUtf8());

expect abstract fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): BufferedSink

Encodes the characters at beginIndex up to endIndex from string in UTF-8 and writes it to this sink.

Buffer buffer = new Buffer();
buffer.writeUtf8("I'm a hacker!\n", 6, 12);
buffer.writeByte(' ');
buffer.writeUtf8("That's what I said: you're a nerd.\n", 29, 33);
buffer.writeByte(' ');
buffer.writeUtf8("I prefer to be called a hacker!\n", 24, 31);

assertEquals("hacker nerd hacker!", buffer.readUtf8());
actual abstract fun writeUtf8(string: String): BufferedSink
actual abstract fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): BufferedSink
actual abstract fun writeUtf8(string: String): BufferedSink
actual abstract fun writeUtf8(string: String, beginIndex: Int, endIndex: Int): BufferedSink
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-sink/write.html b/3.x/okio/okio/okio/-buffered-sink/write.html new file mode 100644 index 0000000000..2f4a7bec71 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-sink/write.html @@ -0,0 +1,86 @@ + + + + + write + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

write

+
+
+
+
expect abstract fun write(byteString: ByteString): BufferedSink
expect abstract fun write(byteString: ByteString, offset: Int, byteCount: Int): BufferedSink


expect abstract fun write(source: ByteArray): BufferedSink

Like OutputStream.write, this writes a complete byte array to this sink.


expect abstract fun write(source: ByteArray, offset: Int, byteCount: Int): BufferedSink

Like OutputStream.write, this writes byteCount bytes of source, starting at offset.


expect abstract fun write(source: Source, byteCount: Long): BufferedSink

Removes byteCount bytes from source and appends them to this sink.

actual abstract fun write(byteString: ByteString): BufferedSink
actual abstract fun write(byteString: ByteString, offset: Int, byteCount: Int): BufferedSink
actual abstract fun write(source: ByteArray): BufferedSink
actual abstract fun write(source: ByteArray, offset: Int, byteCount: Int): BufferedSink
actual abstract fun write(source: Source, byteCount: Long): BufferedSink
actual abstract fun write(byteString: ByteString): BufferedSink
actual abstract fun write(byteString: ByteString, offset: Int, byteCount: Int): BufferedSink
actual abstract fun write(source: ByteArray): BufferedSink
actual abstract fun write(source: ByteArray, offset: Int, byteCount: Int): BufferedSink
actual abstract fun write(source: Source, byteCount: Long): BufferedSink
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/buffer.html b/3.x/okio/okio/okio/-buffered-source/buffer.html new file mode 100644 index 0000000000..2d6375c023 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/buffer.html @@ -0,0 +1,86 @@ + + + + + buffer + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

buffer

+
+
+
+
expect abstract val buffer: Buffer

This source's internal buffer.

actual abstract val buffer: Buffer
actual abstract val buffer: Buffer
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/exhausted.html b/3.x/okio/okio/okio/-buffered-source/exhausted.html new file mode 100644 index 0000000000..176ac08d26 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/exhausted.html @@ -0,0 +1,86 @@ + + + + + exhausted + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

exhausted

+
+
+
+
expect abstract fun exhausted(): Boolean

Returns true if there are no more bytes in this source. This will block until there are bytes to read or the source is definitely exhausted.

actual abstract fun exhausted(): Boolean
actual abstract fun exhausted(): Boolean
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/index-of-element.html b/3.x/okio/okio/okio/-buffered-source/index-of-element.html new file mode 100644 index 0000000000..7f57ddf78c --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/index-of-element.html @@ -0,0 +1,86 @@ + + + + + indexOfElement + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

indexOfElement

+
+
+
+
expect abstract fun indexOfElement(targetBytes: ByteString): Long

Equivalent to indexOfElement(targetBytes, 0).


expect abstract fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long

Returns the first index in this buffer that is at or after fromIndex and that contains any of the bytes in targetBytes. This expands the buffer as necessary until a target byte is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the requested byte is found.

ByteString ANY_VOWEL = ByteString.encodeUtf8("AEOIUaeoiu");

Buffer buffer = new Buffer();
buffer.writeUtf8("Dr. Alan Grant");

assertEquals(4, buffer.indexOfElement(ANY_VOWEL)); // 'A' in 'Alan'.
assertEquals(11, buffer.indexOfElement(ANY_VOWEL, 9)); // 'a' in 'Grant'.
actual abstract fun indexOfElement(targetBytes: ByteString): Long
actual abstract fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long
actual abstract fun indexOfElement(targetBytes: ByteString): Long
actual abstract fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/index-of.html b/3.x/okio/okio/okio/-buffered-source/index-of.html new file mode 100644 index 0000000000..8726d185ce --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/index-of.html @@ -0,0 +1,86 @@ + + + + + indexOf + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

indexOf

+
+
+
+
expect abstract fun indexOf(b: Byte): Long

Equivalent to indexOf(b, 0).


expect abstract fun indexOf(b: Byte, fromIndex: Long): Long

Returns the index of the first b in the buffer at or after fromIndex. This expands the buffer as necessary until b is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the requested byte is found.

Buffer buffer = new Buffer();
buffer.writeUtf8("Don't move! He can't see us if we don't move.");

byte m = 'm';
assertEquals(6, buffer.indexOf(m));
assertEquals(40, buffer.indexOf(m, 12));

expect abstract fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long

Returns the index of b if it is found in the range of fromIndex inclusive to toIndex exclusive. If b isn't found, or if fromIndex == toIndex, then -1 is returned.

The scan terminates at either toIndex or the end of the buffer, whichever comes first. The maximum number of bytes scanned is toIndex-fromIndex.


expect abstract fun indexOf(bytes: ByteString): Long

Equivalent to indexOf(bytes, 0).


expect abstract fun indexOf(bytes: ByteString, fromIndex: Long): Long

Returns the index of the first match for bytes in the buffer at or after fromIndex. This expands the buffer as necessary until bytes is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the requested bytes are found.

ByteString MOVE = ByteString.encodeUtf8("move");

Buffer buffer = new Buffer();
buffer.writeUtf8("Don't move! He can't see us if we don't move.");

assertEquals(6, buffer.indexOf(MOVE));
assertEquals(40, buffer.indexOf(MOVE, 12));
actual abstract fun indexOf(b: Byte): Long
actual abstract fun indexOf(b: Byte, fromIndex: Long): Long
actual abstract fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long
actual abstract fun indexOf(bytes: ByteString): Long
actual abstract fun indexOf(bytes: ByteString, fromIndex: Long): Long
actual abstract fun indexOf(b: Byte): Long
actual abstract fun indexOf(b: Byte, fromIndex: Long): Long
actual abstract fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long
actual abstract fun indexOf(bytes: ByteString): Long
actual abstract fun indexOf(bytes: ByteString, fromIndex: Long): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/index.html b/3.x/okio/okio/okio/-buffered-source/index.html new file mode 100644 index 0000000000..e86ebe1073 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/index.html @@ -0,0 +1,746 @@ + + + + + BufferedSource + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

BufferedSource

+
+
+
expect sealed interface BufferedSource : Source

A source that keeps a buffer internally so that callers can do small reads without a performance penalty. It also allows clients to read ahead, buffering as much as necessary before consuming input.

Inheritors

Inheritors

actual interface BufferedSource : Source

Inheritors

+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract val buffer: Buffer

This source's internal buffer.

actual abstract val buffer: Buffer
actual abstract val buffer: Buffer
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a new source that buffers reads from source. The returned source will perform bulk reads into its in-memory buffer. Use this wherever you read a source to get an ergonomic and efficient access to data.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a source that uses cipher to encrypt or decrypt this.

+
+
+
+
+ +
+
+
+
close
+ +
Link copied to clipboard
+
+
+
+
+
+
abstract override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

abstract override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

abstract override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun exhausted(): Boolean

Returns true if there are no more bytes in this source. This will block until there are bytes to read or the source is definitely exhausted.

actual abstract fun exhausted(): Boolean
actual abstract fun exhausted(): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Source.gzip(): GzipSource

Returns a GzipSource that gzip-decompresses this Source while reading.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a source that uses digest to hash this.

Returns a source that uses mac to hash this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun indexOf(b: Byte): Long

Equivalent to indexOf(b, 0).

expect abstract fun indexOf(bytes: ByteString): Long

Equivalent to indexOf(bytes, 0).

expect abstract fun indexOf(b: Byte, fromIndex: Long): Long

Returns the index of the first b in the buffer at or after fromIndex. This expands the buffer as necessary until b is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the requested byte is found.

expect abstract fun indexOf(bytes: ByteString, fromIndex: Long): Long

Returns the index of the first match for bytes in the buffer at or after fromIndex. This expands the buffer as necessary until bytes is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the requested bytes are found.

expect abstract fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long

Returns the index of b if it is found in the range of fromIndex inclusive to toIndex exclusive. If b isn't found, or if fromIndex == toIndex, then -1 is returned.

actual abstract fun indexOf(b: Byte): Long
actual abstract fun indexOf(bytes: ByteString): Long
actual abstract fun indexOf(b: Byte, fromIndex: Long): Long
actual abstract fun indexOf(bytes: ByteString, fromIndex: Long): Long
actual abstract fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long
actual abstract fun indexOf(b: Byte): Long
actual abstract fun indexOf(bytes: ByteString): Long
actual abstract fun indexOf(b: Byte, fromIndex: Long): Long
actual abstract fun indexOf(bytes: ByteString, fromIndex: Long): Long
actual abstract fun indexOf(b: Byte, fromIndex: Long, toIndex: Long): Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun indexOfElement(targetBytes: ByteString): Long
expect abstract fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long

Returns the first index in this buffer that is at or after fromIndex and that contains any of the bytes in targetBytes. This expands the buffer as necessary until a target byte is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the requested byte is found.

actual abstract fun indexOfElement(targetBytes: ByteString): Long
actual abstract fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long
actual abstract fun indexOfElement(targetBytes: ByteString): Long
actual abstract fun indexOfElement(targetBytes: ByteString, fromIndex: Long): Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Source.inflate(inflater: Inflater = Inflater()): InflaterSource

Returns an InflaterSource that DEFLATE-decompresses this Source while reading.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
abstract fun inputStream(): InputStream

Returns an input stream that reads from this source.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
abstract fun isOpen(): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun peek(): BufferedSource

Returns a new BufferedSource that can read data from this BufferedSource without consuming it. The returned source becomes invalid once this source is next read or closed.

actual abstract fun peek(): BufferedSource
actual abstract fun peek(): BufferedSource
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun rangeEquals(offset: Long, bytes: ByteString): Boolean

Returns true if the bytes at offset in this source equal bytes. This expands the buffer as necessary until a byte does not match, all bytes are matched, or if the stream is exhausted before enough bytes could determine a match.

expect abstract fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean

Returns true if byteCount bytes at offset in this source equal bytes at bytesOffset. This expands the buffer as necessary until a byte does not match, all bytes are matched, or if the stream is exhausted before enough bytes could determine a match.

actual abstract fun rangeEquals(offset: Long, bytes: ByteString): Boolean
actual abstract fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean
actual abstract fun rangeEquals(offset: Long, bytes: ByteString): Boolean
actual abstract fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean
+
+
+
+
+ +
+
+
+
read
+ +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun read(sink: ByteArray): Int

Removes up to sink.length bytes from this and copies them into sink. Returns the number of bytes read, or -1 if this source is exhausted.

expect abstract fun read(sink: ByteArray, offset: Int, byteCount: Int): Int

Removes up to byteCount bytes from this and copies them into sink at offset. Returns the number of bytes read, or -1 if this source is exhausted.

abstract fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

abstract fun read(p0: ByteBuffer): Int
actual abstract fun read(sink: ByteArray): Int
actual abstract fun read(sink: ByteArray, offset: Int, byteCount: Int): Int

abstract fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

actual abstract fun read(sink: ByteArray): Int
actual abstract fun read(sink: ByteArray, offset: Int, byteCount: Int): Int
abstract fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun readAll(sink: Sink): Long

Removes all bytes from this and appends them to sink. Returns the total number of bytes written to sink which will be 0 if this is exhausted.

actual abstract fun readAll(sink: Sink): Long
actual abstract fun readAll(sink: Sink): Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun readByte(): Byte

Removes a byte from this source and returns it.

actual abstract fun readByte(): Byte
actual abstract fun readByte(): Byte
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun readByteArray(): ByteArray

Removes all bytes from this and returns them as a byte array.

expect abstract fun readByteArray(byteCount: Long): ByteArray

Removes byteCount bytes from this and returns them as a byte array.

actual abstract fun readByteArray(): ByteArray
actual abstract fun readByteArray(byteCount: Long): ByteArray
actual abstract fun readByteArray(): ByteArray
actual abstract fun readByteArray(byteCount: Long): ByteArray
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun readByteString(): ByteString

Removes all bytes from this and returns them as a byte string.

expect abstract fun readByteString(byteCount: Long): ByteString

Removes byteCount bytes from this and returns them as a byte string.

actual abstract fun readByteString(): ByteString
actual abstract fun readByteString(byteCount: Long): ByteString
actual abstract fun readByteString(): ByteString
actual abstract fun readByteString(byteCount: Long): ByteString
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun readDecimalLong(): Long

Reads a long from this source in signed decimal form (i.e., as a string in base 10 with optional leading '-'). This will iterate until a non-digit character is found.

actual abstract fun readDecimalLong(): Long
actual abstract fun readDecimalLong(): Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun readFully(sink: ByteArray)

Removes exactly sink.length bytes from this and copies them into sink. Throws an java.io.EOFException if the requested number of bytes cannot be read.

expect abstract fun readFully(sink: Buffer, byteCount: Long)

Removes exactly byteCount bytes from this and appends them to sink. Throws an java.io.EOFException if the requested number of bytes cannot be read.

actual abstract fun readFully(sink: ByteArray)
actual abstract fun readFully(sink: Buffer, byteCount: Long)
actual abstract fun readFully(sink: ByteArray)
actual abstract fun readFully(sink: Buffer, byteCount: Long)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun readHexadecimalUnsignedLong(): Long

Reads a long form this source in hexadecimal form (i.e., as a string in base 16). This will iterate until a non-hexadecimal character is found.

actual abstract fun readHexadecimalUnsignedLong(): Long
actual abstract fun readHexadecimalUnsignedLong(): Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun readInt(): Int

Removes four bytes from this source and returns a big-endian int.

actual abstract fun readInt(): Int
actual abstract fun readInt(): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun readIntLe(): Int

Removes four bytes from this source and returns a little-endian int.

actual abstract fun readIntLe(): Int
actual abstract fun readIntLe(): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun readLong(): Long

Removes eight bytes from this source and returns a big-endian long.

actual abstract fun readLong(): Long
actual abstract fun readLong(): Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun readLongLe(): Long

Removes eight bytes from this source and returns a little-endian long.

actual abstract fun readLongLe(): Long
actual abstract fun readLongLe(): Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun readShort(): Short

Removes two bytes from this source and returns a big-endian short.

actual abstract fun readShort(): Short
actual abstract fun readShort(): Short
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun readShortLe(): Short

Removes two bytes from this source and returns a little-endian short.

actual abstract fun readShortLe(): Short
actual abstract fun readShortLe(): Short
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
abstract fun readString(charset: Charset): String

Removes all bytes from this, decodes them as charset, and returns the string.

abstract fun readString(byteCount: Long, charset: Charset): String

Removes byteCount bytes from this, decodes them as charset, and returns the string.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun readUtf8(): String

Removes all bytes from this, decodes them as UTF-8, and returns the string. Returns the empty string if this source is empty.

expect abstract fun readUtf8(byteCount: Long): String

Removes byteCount bytes from this, decodes them as UTF-8, and returns the string.

actual abstract fun readUtf8(): String
actual abstract fun readUtf8(byteCount: Long): String
actual abstract fun readUtf8(): String
actual abstract fun readUtf8(byteCount: Long): String
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun readUtf8CodePoint(): Int

Removes and returns a single UTF-8 code point, reading between 1 and 4 bytes as necessary.

actual abstract fun readUtf8CodePoint(): Int
actual abstract fun readUtf8CodePoint(): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun readUtf8Line(): String?

Removes and returns characters up to but not including the next line break. A line break is either "\n" or "\r\n"; these characters are not included in the result.

actual abstract fun readUtf8Line(): String?
actual abstract fun readUtf8Line(): String?
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun readUtf8LineStrict(): String

Removes and returns characters up to but not including the next line break. A line break is either "\n" or "\r\n"; these characters are not included in the result.

expect abstract fun readUtf8LineStrict(limit: Long): String

Like readUtf8LineStrict, except this allows the caller to specify the longest allowed match. Use this to protect against streams that may not include "\n" or "\r\n".

actual abstract fun readUtf8LineStrict(): String
actual abstract fun readUtf8LineStrict(limit: Long): String
actual abstract fun readUtf8LineStrict(): String
actual abstract fun readUtf8LineStrict(limit: Long): String
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun request(byteCount: Long): Boolean

Returns true when the buffer contains at least byteCount bytes, expanding it as necessary. Returns false if the source is exhausted before the requested bytes can be read.

actual abstract fun request(byteCount: Long): Boolean
actual abstract fun request(byteCount: Long): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun require(byteCount: Long)

Returns when the buffer contains at least byteCount bytes. Throws an java.io.EOFException if the source is exhausted before the required bytes can be read.

actual abstract fun require(byteCount: Long)
actual abstract fun require(byteCount: Long)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun select(options: Options): Int

Finds the first byte string in options that is a prefix of this buffer, consumes it from this source, and returns its index. If no byte string in options is a prefix of this buffer this returns -1 and no bytes are consumed.

expect abstract fun <T : Any> select(options: TypedOptions<T>): T?

Finds the first item in options whose encoding is a prefix of this buffer, consumes it from this buffer, and returns it. If no item in options is a prefix of this source, this function returns null and no bytes are consumed.

actual abstract fun select(options: Options): Int
actual abstract fun <T : Any> select(options: TypedOptions<T>): T?
actual abstract fun select(options: Options): Int
actual abstract fun <T : Any> select(options: TypedOptions<T>): T?
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun skip(byteCount: Long)

Reads and discards byteCount bytes from this source. Throws an java.io.EOFException if the source is exhausted before the requested bytes can be skipped.

actual abstract fun skip(byteCount: Long)
actual abstract fun skip(byteCount: Long)
+
+
+
+
+ +
+
+
+
timeout
+ +
Link copied to clipboard
+
+
+
+
+
+
abstract fun timeout(): Timeout

Returns the timeout for this source.

abstract fun timeout(): Timeout

Returns the timeout for this source.

abstract fun timeout(): Timeout

Returns the timeout for this source.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/input-stream.html b/3.x/okio/okio/okio/-buffered-source/input-stream.html new file mode 100644 index 0000000000..0190ee8115 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/input-stream.html @@ -0,0 +1,84 @@ + + + + + inputStream + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

inputStream

+
+
+
+
abstract fun inputStream(): InputStream

Returns an input stream that reads from this source.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/peek.html b/3.x/okio/okio/okio/-buffered-source/peek.html new file mode 100644 index 0000000000..a45623241d --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/peek.html @@ -0,0 +1,86 @@ + + + + + peek + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

peek

+
+
+
+
expect abstract fun peek(): BufferedSource

Returns a new BufferedSource that can read data from this BufferedSource without consuming it. The returned source becomes invalid once this source is next read or closed.

For example, we can use peek() to lookahead and read the same data multiple times.

val buffer = Buffer()
buffer.writeUtf8("abcdefghi")

buffer.readUtf8(3) // returns "abc", buffer contains "defghi"

val peek = buffer.peek()
peek.readUtf8(3) // returns "def", buffer contains "defghi"
peek.readUtf8(3) // returns "ghi", buffer contains "defghi"

buffer.readUtf8(3) // returns "def", buffer contains "ghi"
actual abstract fun peek(): BufferedSource
actual abstract fun peek(): BufferedSource
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/range-equals.html b/3.x/okio/okio/okio/-buffered-source/range-equals.html new file mode 100644 index 0000000000..82074ec866 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/range-equals.html @@ -0,0 +1,86 @@ + + + + + rangeEquals + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rangeEquals

+
+
+
+
expect abstract fun rangeEquals(offset: Long, bytes: ByteString): Boolean

Returns true if the bytes at offset in this source equal bytes. This expands the buffer as necessary until a byte does not match, all bytes are matched, or if the stream is exhausted before enough bytes could determine a match.

ByteString simonSays = ByteString.encodeUtf8("Simon says:");

Buffer standOnOneLeg = new Buffer().writeUtf8("Simon says: Stand on one leg.");
assertTrue(standOnOneLeg.rangeEquals(0, simonSays));

Buffer payMeMoney = new Buffer().writeUtf8("Pay me $1,000,000.");
assertFalse(payMeMoney.rangeEquals(0, simonSays));

expect abstract fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean

Returns true if byteCount bytes at offset in this source equal bytes at bytesOffset. This expands the buffer as necessary until a byte does not match, all bytes are matched, or if the stream is exhausted before enough bytes could determine a match.

actual abstract fun rangeEquals(offset: Long, bytes: ByteString): Boolean
actual abstract fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean
actual abstract fun rangeEquals(offset: Long, bytes: ByteString): Boolean
actual abstract fun rangeEquals(offset: Long, bytes: ByteString, bytesOffset: Int, byteCount: Int): Boolean
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/read-all.html b/3.x/okio/okio/okio/-buffered-source/read-all.html new file mode 100644 index 0000000000..0cc90dadd1 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/read-all.html @@ -0,0 +1,86 @@ + + + + + readAll + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readAll

+
+
+
+
expect abstract fun readAll(sink: Sink): Long

Removes all bytes from this and appends them to sink. Returns the total number of bytes written to sink which will be 0 if this is exhausted.

actual abstract fun readAll(sink: Sink): Long
actual abstract fun readAll(sink: Sink): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/read-byte-array.html b/3.x/okio/okio/okio/-buffered-source/read-byte-array.html new file mode 100644 index 0000000000..c41eb3ca86 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/read-byte-array.html @@ -0,0 +1,86 @@ + + + + + readByteArray + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readByteArray

+
+
+
+
expect abstract fun readByteArray(): ByteArray

Removes all bytes from this and returns them as a byte array.


expect abstract fun readByteArray(byteCount: Long): ByteArray

Removes byteCount bytes from this and returns them as a byte array.

actual abstract fun readByteArray(): ByteArray
actual abstract fun readByteArray(byteCount: Long): ByteArray
actual abstract fun readByteArray(): ByteArray
actual abstract fun readByteArray(byteCount: Long): ByteArray
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/read-byte-string.html b/3.x/okio/okio/okio/-buffered-source/read-byte-string.html new file mode 100644 index 0000000000..36e20b7b4a --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/read-byte-string.html @@ -0,0 +1,86 @@ + + + + + readByteString + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readByteString

+
+
+
+
expect abstract fun readByteString(): ByteString

Removes all bytes from this and returns them as a byte string.


expect abstract fun readByteString(byteCount: Long): ByteString

Removes byteCount bytes from this and returns them as a byte string.

actual abstract fun readByteString(): ByteString
actual abstract fun readByteString(byteCount: Long): ByteString
actual abstract fun readByteString(): ByteString
actual abstract fun readByteString(byteCount: Long): ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/read-byte.html b/3.x/okio/okio/okio/-buffered-source/read-byte.html new file mode 100644 index 0000000000..3854fde13c --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/read-byte.html @@ -0,0 +1,86 @@ + + + + + readByte + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readByte

+
+
+
+
expect abstract fun readByte(): Byte

Removes a byte from this source and returns it.

actual abstract fun readByte(): Byte
actual abstract fun readByte(): Byte
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/read-decimal-long.html b/3.x/okio/okio/okio/-buffered-source/read-decimal-long.html new file mode 100644 index 0000000000..9497903106 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/read-decimal-long.html @@ -0,0 +1,86 @@ + + + + + readDecimalLong + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readDecimalLong

+
+
+
+
expect abstract fun readDecimalLong(): Long

Reads a long from this source in signed decimal form (i.e., as a string in base 10 with optional leading '-'). This will iterate until a non-digit character is found.

Buffer buffer = new Buffer()
.writeUtf8("8675309 -123 00001");

assertEquals(8675309L, buffer.readDecimalLong());
assertEquals(' ', buffer.readByte());
assertEquals(-123L, buffer.readDecimalLong());
assertEquals(' ', buffer.readByte());
assertEquals(1L, buffer.readDecimalLong());

Throws

if the found digits do not fit into a long or a decimal number was not present.

actual abstract fun readDecimalLong(): Long
actual abstract fun readDecimalLong(): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/read-fully.html b/3.x/okio/okio/okio/-buffered-source/read-fully.html new file mode 100644 index 0000000000..f77f90a308 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/read-fully.html @@ -0,0 +1,86 @@ + + + + + readFully + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readFully

+
+
+
+
expect abstract fun readFully(sink: ByteArray)

Removes exactly sink.length bytes from this and copies them into sink. Throws an java.io.EOFException if the requested number of bytes cannot be read.


expect abstract fun readFully(sink: Buffer, byteCount: Long)

Removes exactly byteCount bytes from this and appends them to sink. Throws an java.io.EOFException if the requested number of bytes cannot be read.

actual abstract fun readFully(sink: ByteArray)
actual abstract fun readFully(sink: Buffer, byteCount: Long)
actual abstract fun readFully(sink: ByteArray)
actual abstract fun readFully(sink: Buffer, byteCount: Long)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/read-hexadecimal-unsigned-long.html b/3.x/okio/okio/okio/-buffered-source/read-hexadecimal-unsigned-long.html new file mode 100644 index 0000000000..9a31b472db --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/read-hexadecimal-unsigned-long.html @@ -0,0 +1,86 @@ + + + + + readHexadecimalUnsignedLong + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readHexadecimalUnsignedLong

+
+
+
+
expect abstract fun readHexadecimalUnsignedLong(): Long

Reads a long form this source in hexadecimal form (i.e., as a string in base 16). This will iterate until a non-hexadecimal character is found.

Buffer buffer = new Buffer()
.writeUtf8("ffff CAFEBABE 10");

assertEquals(65535L, buffer.readHexadecimalUnsignedLong());
assertEquals(' ', buffer.readByte());
assertEquals(0xcafebabeL, buffer.readHexadecimalUnsignedLong());
assertEquals(' ', buffer.readByte());
assertEquals(0x10L, buffer.readHexadecimalUnsignedLong());

Throws

if the found hexadecimal does not fit into a long or hexadecimal was not found.

actual abstract fun readHexadecimalUnsignedLong(): Long
actual abstract fun readHexadecimalUnsignedLong(): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/read-int-le.html b/3.x/okio/okio/okio/-buffered-source/read-int-le.html new file mode 100644 index 0000000000..400b899ed0 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/read-int-le.html @@ -0,0 +1,86 @@ + + + + + readIntLe + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readIntLe

+
+
+
+
expect abstract fun readIntLe(): Int

Removes four bytes from this source and returns a little-endian int.

Buffer buffer = new Buffer()
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0x7f)
.writeByte(0x0f)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00);
assertEquals(8, buffer.size());

assertEquals(2147483647, buffer.readIntLe());
assertEquals(4, buffer.size());

assertEquals(15, buffer.readIntLe());
assertEquals(0, buffer.size());
actual abstract fun readIntLe(): Int
actual abstract fun readIntLe(): Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/read-int.html b/3.x/okio/okio/okio/-buffered-source/read-int.html new file mode 100644 index 0000000000..b1f061e356 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/read-int.html @@ -0,0 +1,86 @@ + + + + + readInt + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readInt

+
+
+
+
expect abstract fun readInt(): Int

Removes four bytes from this source and returns a big-endian int.

Buffer buffer = new Buffer()
.writeByte(0x7f)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x0f);
assertEquals(8, buffer.size());

assertEquals(2147483647, buffer.readInt());
assertEquals(4, buffer.size());

assertEquals(15, buffer.readInt());
assertEquals(0, buffer.size());
actual abstract fun readInt(): Int
actual abstract fun readInt(): Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/read-long-le.html b/3.x/okio/okio/okio/-buffered-source/read-long-le.html new file mode 100644 index 0000000000..4f2fc2f484 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/read-long-le.html @@ -0,0 +1,86 @@ + + + + + readLongLe + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readLongLe

+
+
+
+
expect abstract fun readLongLe(): Long

Removes eight bytes from this source and returns a little-endian long.

Buffer buffer = new Buffer()
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0x7f)
.writeByte(0x0f)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00);
assertEquals(16, buffer.size());

assertEquals(9223372036854775807L, buffer.readLongLe());
assertEquals(8, buffer.size());

assertEquals(15, buffer.readLongLe());
assertEquals(0, buffer.size());
actual abstract fun readLongLe(): Long
actual abstract fun readLongLe(): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/read-long.html b/3.x/okio/okio/okio/-buffered-source/read-long.html new file mode 100644 index 0000000000..67d7bf6ff9 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/read-long.html @@ -0,0 +1,86 @@ + + + + + readLong + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readLong

+
+
+
+
expect abstract fun readLong(): Long

Removes eight bytes from this source and returns a big-endian long.

Buffer buffer = new Buffer()
.writeByte(0x7f)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x0f);
assertEquals(16, buffer.size());

assertEquals(9223372036854775807L, buffer.readLong());
assertEquals(8, buffer.size());

assertEquals(15, buffer.readLong());
assertEquals(0, buffer.size());
actual abstract fun readLong(): Long
actual abstract fun readLong(): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/read-short-le.html b/3.x/okio/okio/okio/-buffered-source/read-short-le.html new file mode 100644 index 0000000000..68737b7a26 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/read-short-le.html @@ -0,0 +1,86 @@ + + + + + readShortLe + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readShortLe

+
+
+
+
expect abstract fun readShortLe(): Short

Removes two bytes from this source and returns a little-endian short.

Buffer buffer = new Buffer()
.writeByte(0xff)
.writeByte(0x7f)
.writeByte(0x0f)
.writeByte(0x00);
assertEquals(4, buffer.size());

assertEquals(32767, buffer.readShortLe());
assertEquals(2, buffer.size());

assertEquals(15, buffer.readShortLe());
assertEquals(0, buffer.size());
actual abstract fun readShortLe(): Short
actual abstract fun readShortLe(): Short
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/read-short.html b/3.x/okio/okio/okio/-buffered-source/read-short.html new file mode 100644 index 0000000000..a4d4f7f20c --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/read-short.html @@ -0,0 +1,86 @@ + + + + + readShort + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readShort

+
+
+
+
expect abstract fun readShort(): Short

Removes two bytes from this source and returns a big-endian short.

Buffer buffer = new Buffer()
.writeByte(0x7f)
.writeByte(0xff)
.writeByte(0x00)
.writeByte(0x0f);
assertEquals(4, buffer.size());

assertEquals(32767, buffer.readShort());
assertEquals(2, buffer.size());

assertEquals(15, buffer.readShort());
assertEquals(0, buffer.size());
actual abstract fun readShort(): Short
actual abstract fun readShort(): Short
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/read-string.html b/3.x/okio/okio/okio/-buffered-source/read-string.html new file mode 100644 index 0000000000..c58a9c14dc --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/read-string.html @@ -0,0 +1,84 @@ + + + + + readString + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readString

+
+
+
+
abstract fun readString(charset: Charset): String

Removes all bytes from this, decodes them as charset, and returns the string.


abstract fun readString(byteCount: Long, charset: Charset): String

Removes byteCount bytes from this, decodes them as charset, and returns the string.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/read-utf8-code-point.html b/3.x/okio/okio/okio/-buffered-source/read-utf8-code-point.html new file mode 100644 index 0000000000..9bf8999bfc --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/read-utf8-code-point.html @@ -0,0 +1,86 @@ + + + + + readUtf8CodePoint + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readUtf8CodePoint

+
+
+
+
expect abstract fun readUtf8CodePoint(): Int

Removes and returns a single UTF-8 code point, reading between 1 and 4 bytes as necessary.

If this source is exhausted before a complete code point can be read, this throws an java.io.EOFException and consumes no input.

If this source doesn't start with a properly-encoded UTF-8 code point, this method will remove 1 or more non-UTF-8 bytes and return the replacement character (U+FFFD). This covers encoding problems (the input is not properly-encoded UTF-8), characters out of range (beyond the 0x10ffff limit of Unicode), code points for UTF-16 surrogates (U+d800..U+dfff) and overlong encodings (such as 0xc080 for the NUL character in modified UTF-8).

actual abstract fun readUtf8CodePoint(): Int
actual abstract fun readUtf8CodePoint(): Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/read-utf8-line-strict.html b/3.x/okio/okio/okio/-buffered-source/read-utf8-line-strict.html new file mode 100644 index 0000000000..e7ece5fae4 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/read-utf8-line-strict.html @@ -0,0 +1,86 @@ + + + + + readUtf8LineStrict + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readUtf8LineStrict

+
+
+
+
expect abstract fun readUtf8LineStrict(): String

Removes and returns characters up to but not including the next line break. A line break is either "\n" or "\r\n"; these characters are not included in the result.

On the end of the stream this method throws. Every call must consume either '\r\n' or '\n'. If these characters are absent in the stream, an java.io.EOFException is thrown. Use this for machine-generated data where a missing line break implies truncated input.


expect abstract fun readUtf8LineStrict(limit: Long): String

Like readUtf8LineStrict, except this allows the caller to specify the longest allowed match. Use this to protect against streams that may not include "\n" or "\r\n".

The returned string will have at most limit UTF-8 bytes, and the maximum number of bytes scanned is limit + 2. If limit == 0 this will always throw an EOFException because no bytes will be scanned.

This method is safe. No bytes are discarded if the match fails, and the caller is free to try another match:

Buffer buffer = new Buffer();
buffer.writeUtf8("12345\r\n");

// This will throw! There must be \r\n or \n at the limit or before it.
buffer.readUtf8LineStrict(4);

// No bytes have been consumed so the caller can retry.
assertEquals("12345", buffer.readUtf8LineStrict(5));
actual abstract fun readUtf8LineStrict(): String
actual abstract fun readUtf8LineStrict(limit: Long): String
actual abstract fun readUtf8LineStrict(): String
actual abstract fun readUtf8LineStrict(limit: Long): String
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/read-utf8-line.html b/3.x/okio/okio/okio/-buffered-source/read-utf8-line.html new file mode 100644 index 0000000000..fb2bb7fab8 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/read-utf8-line.html @@ -0,0 +1,86 @@ + + + + + readUtf8Line + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readUtf8Line

+
+
+
+
expect abstract fun readUtf8Line(): String?

Removes and returns characters up to but not including the next line break. A line break is either "\n" or "\r\n"; these characters are not included in the result.

Buffer buffer = new Buffer()
.writeUtf8("I'm a hacker!\n")
.writeUtf8("That's what I said: you're a nerd.\n")
.writeUtf8("I prefer to be called a hacker!\n");
assertEquals(81, buffer.size());

assertEquals("I'm a hacker!", buffer.readUtf8Line());
assertEquals(67, buffer.size());

assertEquals("That's what I said: you're a nerd.", buffer.readUtf8Line());
assertEquals(32, buffer.size());

assertEquals("I prefer to be called a hacker!", buffer.readUtf8Line());
assertEquals(0, buffer.size());

assertEquals(null, buffer.readUtf8Line());
assertEquals(0, buffer.size());

On the end of the stream this method returns null, just like java.io.BufferedReader. If the source doesn't end with a line break then an implicit line break is assumed. Null is returned once the source is exhausted. Use this for human-generated data, where a trailing line break is optional.

actual abstract fun readUtf8Line(): String?
actual abstract fun readUtf8Line(): String?
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/read-utf8.html b/3.x/okio/okio/okio/-buffered-source/read-utf8.html new file mode 100644 index 0000000000..ab4baba5be --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/read-utf8.html @@ -0,0 +1,86 @@ + + + + + readUtf8 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readUtf8

+
+
+
+
expect abstract fun readUtf8(): String

Removes all bytes from this, decodes them as UTF-8, and returns the string. Returns the empty string if this source is empty.

Buffer buffer = new Buffer()
.writeUtf8("Uh uh uh!")
.writeByte(' ')
.writeUtf8("You didn't say the magic word!");

assertEquals("Uh uh uh! You didn't say the magic word!", buffer.readUtf8());
assertEquals(0, buffer.size());

assertEquals("", buffer.readUtf8());
assertEquals(0, buffer.size());

expect abstract fun readUtf8(byteCount: Long): String

Removes byteCount bytes from this, decodes them as UTF-8, and returns the string.

Buffer buffer = new Buffer()
.writeUtf8("Uh uh uh!")
.writeByte(' ')
.writeUtf8("You didn't say the magic word!");
assertEquals(40, buffer.size());

assertEquals("Uh uh uh! You ", buffer.readUtf8(14));
assertEquals(26, buffer.size());

assertEquals("didn't say the", buffer.readUtf8(14));
assertEquals(12, buffer.size());

assertEquals(" magic word!", buffer.readUtf8(12));
assertEquals(0, buffer.size());
actual abstract fun readUtf8(): String
actual abstract fun readUtf8(byteCount: Long): String
actual abstract fun readUtf8(): String
actual abstract fun readUtf8(byteCount: Long): String
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/read.html b/3.x/okio/okio/okio/-buffered-source/read.html new file mode 100644 index 0000000000..15f6001992 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/read.html @@ -0,0 +1,86 @@ + + + + + read + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

read

+
+
+
+
expect abstract fun read(sink: ByteArray): Int

Removes up to sink.length bytes from this and copies them into sink. Returns the number of bytes read, or -1 if this source is exhausted.


expect abstract fun read(sink: ByteArray, offset: Int, byteCount: Int): Int

Removes up to byteCount bytes from this and copies them into sink at offset. Returns the number of bytes read, or -1 if this source is exhausted.

actual abstract fun read(sink: ByteArray): Int
actual abstract fun read(sink: ByteArray, offset: Int, byteCount: Int): Int
actual abstract fun read(sink: ByteArray): Int
actual abstract fun read(sink: ByteArray, offset: Int, byteCount: Int): Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/request.html b/3.x/okio/okio/okio/-buffered-source/request.html new file mode 100644 index 0000000000..b8c3744351 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/request.html @@ -0,0 +1,86 @@ + + + + + request + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

request

+
+
+
+
expect abstract fun request(byteCount: Long): Boolean

Returns true when the buffer contains at least byteCount bytes, expanding it as necessary. Returns false if the source is exhausted before the requested bytes can be read.

actual abstract fun request(byteCount: Long): Boolean
actual abstract fun request(byteCount: Long): Boolean
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/require.html b/3.x/okio/okio/okio/-buffered-source/require.html new file mode 100644 index 0000000000..0f8c7782af --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/require.html @@ -0,0 +1,86 @@ + + + + + require + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

require

+
+
+
+
expect abstract fun require(byteCount: Long)

Returns when the buffer contains at least byteCount bytes. Throws an java.io.EOFException if the source is exhausted before the required bytes can be read.

actual abstract fun require(byteCount: Long)
actual abstract fun require(byteCount: Long)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/select.html b/3.x/okio/okio/okio/-buffered-source/select.html new file mode 100644 index 0000000000..38f56733e6 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/select.html @@ -0,0 +1,86 @@ + + + + + select + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

select

+
+
+
+
expect abstract fun select(options: Options): Int

Finds the first byte string in options that is a prefix of this buffer, consumes it from this source, and returns its index. If no byte string in options is a prefix of this buffer this returns -1 and no bytes are consumed.

This can be used as an alternative to readByteString or even readUtf8 if the set of expected values is known in advance.

Options FIELDS = Options.of(
ByteString.encodeUtf8("depth="),
ByteString.encodeUtf8("height="),
ByteString.encodeUtf8("width="));

Buffer buffer = new Buffer()
.writeUtf8("width=640\n")
.writeUtf8("height=480\n");

assertEquals(2, buffer.select(FIELDS));
assertEquals(640, buffer.readDecimalLong());
assertEquals('\n', buffer.readByte());
assertEquals(1, buffer.select(FIELDS));
assertEquals(480, buffer.readDecimalLong());
assertEquals('\n', buffer.readByte());

expect abstract fun <T : Any> select(options: TypedOptions<T>): T?

Finds the first item in options whose encoding is a prefix of this buffer, consumes it from this buffer, and returns it. If no item in options is a prefix of this source, this function returns null and no bytes are consumed.

This can be used as an alternative to readByteString or even readUtf8 if the set of expected values is known in advance.

TypedOptions<Direction> options = TypedOptions.of(
Arrays.asList(Direction.values()),
(direction) -> ByteString.encodeUtf8(direction.name().toLowerCase(Locale.ROOT))
);

Buffer buffer = new Buffer()
.writeUtf8("north:100\n")
.writeUtf8("east:50\n");

assertEquals(Direction.NORTH, buffer.select(options));
assertEquals(':', buffer.readByte());
assertEquals(100L, buffer.readDecimalLong());
assertEquals('\n', buffer.readByte());

assertEquals(Direction.EAST, buffer.select(options));
assertEquals(':', buffer.readByte());
assertEquals(50L, buffer.readDecimalLong());
assertEquals('\n', buffer.readByte());
actual abstract fun select(options: Options): Int
actual abstract fun <T : Any> select(options: TypedOptions<T>): T?
actual abstract fun select(options: Options): Int
actual abstract fun <T : Any> select(options: TypedOptions<T>): T?
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-buffered-source/skip.html b/3.x/okio/okio/okio/-buffered-source/skip.html new file mode 100644 index 0000000000..44c7b58378 --- /dev/null +++ b/3.x/okio/okio/okio/-buffered-source/skip.html @@ -0,0 +1,86 @@ + + + + + skip + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

skip

+
+
+
+
expect abstract fun skip(byteCount: Long)

Reads and discards byteCount bytes from this source. Throws an java.io.EOFException if the source is exhausted before the requested bytes can be skipped.

actual abstract fun skip(byteCount: Long)
actual abstract fun skip(byteCount: Long)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/-companion/-e-m-p-t-y.html b/3.x/okio/okio/okio/-byte-string/-companion/-e-m-p-t-y.html new file mode 100644 index 0000000000..a0381f734e --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/-companion/-e-m-p-t-y.html @@ -0,0 +1,87 @@ + + + + + EMPTY + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

EMPTY

+
+
+
+
actual val EMPTY: ByteString
expect val EMPTY: ByteString

A singleton empty ByteString.

actual val EMPTY: ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/-companion/decode-base64.html b/3.x/okio/okio/okio/-byte-string/-companion/decode-base64.html new file mode 100644 index 0000000000..48fe9b9449 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/-companion/decode-base64.html @@ -0,0 +1,87 @@ + + + + + decodeBase64 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

decodeBase64

+
+
+
+

Decodes the Base64-encoded bytes and returns their value as a byte string. Returns null if this is not a Base64-encoded sequence of bytes.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/-companion/decode-hex.html b/3.x/okio/okio/okio/-byte-string/-companion/decode-hex.html new file mode 100644 index 0000000000..a7e33c0006 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/-companion/decode-hex.html @@ -0,0 +1,87 @@ + + + + + decodeHex + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

decodeHex

+
+
+
+

Decodes the hex-encoded bytes and returns their value a byte string.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/-companion/encode-utf8.html b/3.x/okio/okio/okio/-byte-string/-companion/encode-utf8.html new file mode 100644 index 0000000000..f51c8b6ce8 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/-companion/encode-utf8.html @@ -0,0 +1,87 @@ + + + + + encodeUtf8 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

encodeUtf8

+
+
+
+

Returns a new byte string containing the UTF-8 bytes of this String.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/-companion/encode.html b/3.x/okio/okio/okio/-byte-string/-companion/encode.html new file mode 100644 index 0000000000..0c33dab1f2 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/-companion/encode.html @@ -0,0 +1,84 @@ + + + + + encode + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

encode

+
+
+
+
@JvmName(name = "encodeString")
fun String.encode(charset: Charset = Charsets.UTF_8): ByteString

Returns a new ByteString containing the charset-encoded bytes of this String.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/-companion/index.html b/3.x/okio/okio/okio/-byte-string/-companion/index.html new file mode 100644 index 0000000000..eec86d1827 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/-companion/index.html @@ -0,0 +1,236 @@ + + + + + Companion + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Companion

+
+
+
actual object Companion
expect object Companion
actual object Companion
actual object Companion
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual val EMPTY: ByteString
expect val EMPTY: ByteString

A singleton empty ByteString.

actual val EMPTY: ByteString
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Decodes the Base64-encoded bytes and returns their value as a byte string. Returns null if this is not a Base64-encoded sequence of bytes.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Decodes the hex-encoded bytes and returns their value a byte string.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
@JvmName(name = "encodeString")
fun String.encode(charset: Charset = Charsets.UTF_8): ByteString

Returns a new ByteString containing the charset-encoded bytes of this String.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a new byte string containing the UTF-8 bytes of this String.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual fun of(vararg data: Byte): ByteString
expect fun of(vararg data: Byte): ByteString

Returns a new byte string containing a clone of the bytes of data.

actual fun of(vararg data: Byte): ByteString
actual fun of(vararg data: Byte): ByteString
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
@JvmName(name = "read")
fun InputStream.readByteString(byteCount: Int): ByteString

Reads count bytes from this InputStream and returns the result.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun <Error class: unknown class>.toByteString(): ByteString
actual fun ByteArray.toByteString(offset: Int, byteCount: Int): ByteString
expect fun ByteArray.toByteString(offset: Int = 0, byteCount: Int = DEFAULT__ByteString_size): ByteString

Returns a new ByteString containing a copy of byteCount bytes of this ByteArray starting at offset.

Returns a ByteString containing a copy of this ByteBuffer.

@JvmName(name = "of")
actual fun ByteArray.toByteString(offset: Int, byteCount: Int): ByteString
actual fun ByteArray.toByteString(offset: Int, byteCount: Int): ByteString
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/-companion/of.html b/3.x/okio/okio/okio/-byte-string/-companion/of.html new file mode 100644 index 0000000000..fabd11e17c --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/-companion/of.html @@ -0,0 +1,87 @@ + + + + + of + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

of

+
+
+
+
actual fun of(vararg data: Byte): ByteString
expect fun of(vararg data: Byte): ByteString

Returns a new byte string containing a clone of the bytes of data.

actual fun of(vararg data: Byte): ByteString
actual fun of(vararg data: Byte): ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/-companion/read-byte-string.html b/3.x/okio/okio/okio/-byte-string/-companion/read-byte-string.html new file mode 100644 index 0000000000..22d6525748 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/-companion/read-byte-string.html @@ -0,0 +1,84 @@ + + + + + readByteString + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readByteString

+
+
+
+
@JvmName(name = "read")
fun InputStream.readByteString(byteCount: Int): ByteString

Reads count bytes from this InputStream and returns the result.

Throws

if in has fewer than count bytes to read.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/-companion/to-byte-string.html b/3.x/okio/okio/okio/-byte-string/-companion/to-byte-string.html new file mode 100644 index 0000000000..cf39900187 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/-companion/to-byte-string.html @@ -0,0 +1,87 @@ + + + + + toByteString + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toByteString

+
+
+
+
fun <Error class: unknown class>.toByteString(): ByteString
actual fun ByteArray.toByteString(offset: Int, byteCount: Int): ByteString
expect fun ByteArray.toByteString(offset: Int = 0, byteCount: Int = DEFAULT__ByteString_size): ByteString

Returns a new ByteString containing a copy of byteCount bytes of this ByteArray starting at offset.

Returns a ByteString containing a copy of this ByteBuffer.


@JvmName(name = "of")
actual fun ByteArray.toByteString(offset: Int, byteCount: Int): ByteString
actual fun ByteArray.toByteString(offset: Int, byteCount: Int): ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/as-byte-buffer.html b/3.x/okio/okio/okio/-byte-string/as-byte-buffer.html new file mode 100644 index 0000000000..71d7dc13dc --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/as-byte-buffer.html @@ -0,0 +1,84 @@ + + + + + asByteBuffer + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

asByteBuffer

+
+
+
+

Returns a ByteBuffer view of the bytes in this ByteString.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/base64-url.html b/3.x/okio/okio/okio/-byte-string/base64-url.html new file mode 100644 index 0000000000..45ce9f6f91 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/base64-url.html @@ -0,0 +1,87 @@ + + + + + base64Url + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

base64Url

+
+
+
+
actual open fun base64Url(): String
expect fun base64Url(): String

Returns this byte string encoded as URL-safe Base64.

actual open fun base64Url(): String
actual open fun base64Url(): String
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/base64.html b/3.x/okio/okio/okio/-byte-string/base64.html new file mode 100644 index 0000000000..f7758a41ef --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/base64.html @@ -0,0 +1,87 @@ + + + + + base64 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

base64

+
+
+
+
actual open fun base64(): String
expect fun base64(): String

Returns this byte string encoded as Base64. In violation of the RFC, the returned string does not wrap lines at 76 columns.

actual open fun base64(): String
actual open fun base64(): String
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/compare-to.html b/3.x/okio/okio/okio/-byte-string/compare-to.html new file mode 100644 index 0000000000..5461266723 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/compare-to.html @@ -0,0 +1,87 @@ + + + + + compareTo + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

compareTo

+
+
+
+
actual open operator override fun compareTo(other: ByteString): Int
expect open operator override fun compareTo(other: ByteString): Int
actual open operator override fun compareTo(other: ByteString): Int
actual open operator override fun compareTo(other: ByteString): Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/copy-into.html b/3.x/okio/okio/okio/-byte-string/copy-into.html new file mode 100644 index 0000000000..2490ba6649 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/copy-into.html @@ -0,0 +1,87 @@ + + + + + copyInto + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

copyInto

+
+
+
+
actual open fun copyInto(offset: Int, target: ByteArray, targetOffset: Int, byteCount: Int)
expect fun copyInto(offset: Int = 0, target: ByteArray, targetOffset: Int = 0, byteCount: Int)

Copies bytes of this in [offset..offset+byteCount] to other in [targetOffset..targetOffset+byteCount].

Throws

if either range is out of bounds.

actual open fun copyInto(offset: Int, target: ByteArray, targetOffset: Int, byteCount: Int)
actual open fun copyInto(offset: Int, target: ByteArray, targetOffset: Int, byteCount: Int)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/ends-with.html b/3.x/okio/okio/okio/-byte-string/ends-with.html new file mode 100644 index 0000000000..625a6f2b88 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/ends-with.html @@ -0,0 +1,87 @@ + + + + + endsWith + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

endsWith

+
+
+
+
actual fun endsWith(suffix: ByteString): Boolean
actual fun endsWith(suffix: ByteArray): Boolean
expect fun endsWith(suffix: ByteString): Boolean
expect fun endsWith(suffix: ByteArray): Boolean
actual fun endsWith(suffix: ByteString): Boolean
actual fun endsWith(suffix: ByteArray): Boolean
actual fun endsWith(suffix: ByteString): Boolean
actual fun endsWith(suffix: ByteArray): Boolean
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/equals.html b/3.x/okio/okio/okio/-byte-string/equals.html new file mode 100644 index 0000000000..cbf027b5fb --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/equals.html @@ -0,0 +1,87 @@ + + + + + equals + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

equals

+
+
+
+
actual open operator override fun equals(other: Any?): Boolean
expect open operator override fun equals(other: Any?): Boolean
actual open operator override fun equals(other: Any?): Boolean
actual open operator override fun equals(other: Any?): Boolean
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/get.html b/3.x/okio/okio/okio/-byte-string/get.html new file mode 100644 index 0000000000..5a966f3983 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/get.html @@ -0,0 +1,87 @@ + + + + + get + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

get

+
+
+
+
actual operator fun get(index: Int): Byte
@JvmName(name = "getByte")
expect operator fun get(index: Int): Byte

Returns the byte at index.

@JvmName(name = "getByte")
actual operator fun get(index: Int): Byte
actual operator fun get(index: Int): Byte
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/hash-code.html b/3.x/okio/okio/okio/-byte-string/hash-code.html new file mode 100644 index 0000000000..848fa4f718 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/hash-code.html @@ -0,0 +1,87 @@ + + + + + hashCode + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hashCode

+
+
+
+
actual open override fun hashCode(): Int
expect open override fun hashCode(): Int
actual open override fun hashCode(): Int
actual open override fun hashCode(): Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/hex.html b/3.x/okio/okio/okio/-byte-string/hex.html new file mode 100644 index 0000000000..56799f2e0c --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/hex.html @@ -0,0 +1,87 @@ + + + + + hex + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hex

+
+
+
+
actual open fun hex(): String
expect fun hex(): String

Returns this byte string encoded in hexadecimal.

actual open fun hex(): String
actual open fun hex(): String
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/hmac-sha1.html b/3.x/okio/okio/okio/-byte-string/hmac-sha1.html new file mode 100644 index 0000000000..0905c0df65 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/hmac-sha1.html @@ -0,0 +1,87 @@ + + + + + hmacSha1 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hmacSha1

+
+
+
+
actual fun hmacSha1(key: ByteString): ByteString

Returns the 160-bit SHA-1 HMAC of this byte string.

expect fun hmacSha1(key: ByteString): ByteString

Returns the 160-bit SHA-1 HMAC of this byte string.

actual open fun hmacSha1(key: ByteString): ByteString

Returns the 160-bit SHA-1 HMAC of this byte string.

actual fun hmacSha1(key: ByteString): ByteString

Returns the 160-bit SHA-1 HMAC of this byte string.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/hmac-sha256.html b/3.x/okio/okio/okio/-byte-string/hmac-sha256.html new file mode 100644 index 0000000000..89e46b8fc8 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/hmac-sha256.html @@ -0,0 +1,87 @@ + + + + + hmacSha256 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hmacSha256

+
+
+
+
actual fun hmacSha256(key: ByteString): ByteString

Returns the 256-bit SHA-256 HMAC of this byte string.

expect fun hmacSha256(key: ByteString): ByteString

Returns the 256-bit SHA-256 HMAC of this byte string.

actual open fun hmacSha256(key: ByteString): ByteString

Returns the 256-bit SHA-256 HMAC of this byte string.

actual fun hmacSha256(key: ByteString): ByteString

Returns the 256-bit SHA-256 HMAC of this byte string.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/hmac-sha512.html b/3.x/okio/okio/okio/-byte-string/hmac-sha512.html new file mode 100644 index 0000000000..39caa8cc2c --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/hmac-sha512.html @@ -0,0 +1,87 @@ + + + + + hmacSha512 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hmacSha512

+
+
+
+
actual fun hmacSha512(key: ByteString): ByteString

Returns the 512-bit SHA-512 HMAC of this byte string.

expect fun hmacSha512(key: ByteString): ByteString

Returns the 512-bit SHA-512 HMAC of this byte string.

actual open fun hmacSha512(key: ByteString): ByteString

Returns the 512-bit SHA-512 HMAC of this byte string.

actual fun hmacSha512(key: ByteString): ByteString

Returns the 512-bit SHA-512 HMAC of this byte string.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/index-of.html b/3.x/okio/okio/okio/-byte-string/index-of.html new file mode 100644 index 0000000000..d330bcdbb6 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/index-of.html @@ -0,0 +1,87 @@ + + + + + indexOf + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

indexOf

+
+
+
+
actual fun indexOf(other: ByteString, fromIndex: Int): Int
actual open fun indexOf(other: ByteArray, fromIndex: Int): Int
expect fun indexOf(other: ByteString, fromIndex: Int = 0): Int
expect fun indexOf(other: ByteArray, fromIndex: Int = 0): Int
actual fun indexOf(other: ByteString, fromIndex: Int): Int
actual open fun indexOf(other: ByteArray, fromIndex: Int): Int
actual fun indexOf(other: ByteString, fromIndex: Int): Int
actual open fun indexOf(other: ByteArray, fromIndex: Int): Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/index.html b/3.x/okio/okio/okio/-byte-string/index.html new file mode 100644 index 0000000000..aea3f97550 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/index.html @@ -0,0 +1,631 @@ + + + + + ByteString + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

ByteString

+
+
+
actual open class ByteString : Comparable<ByteString>
expect open class ByteString : Comparable<ByteString>

An immutable sequence of bytes.

Byte strings compare lexicographically as a sequence of unsigned bytes. That is, the byte string ff sorts after 00. This is counter to the sort order of the corresponding bytes, where -1 sorts before 0.

Full disclosure: this class provides untrusted input and output streams with raw access to the underlying byte array. A hostile stream implementation could keep a reference to the mutable byte string, violating the immutable guarantee of this class. For this reason a byte string's immutability guarantee cannot be relied upon for security in applets and other environments that run both trusted and untrusted code in the same process.

actual open class ByteString : Comparable<ByteString>
+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual object Companion
expect object Companion
actual object Companion
actual object Companion
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual val size: Int
@get:JvmName(name = "size")
expect val size: Int

Returns the number of bytes in this ByteString.

@get:JvmName(name = "size")
actual val size: Int
actual val size: Int
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a ByteBuffer view of the bytes in this ByteString.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual open fun base64(): String
expect fun base64(): String

Returns this byte string encoded as Base64. In violation of the RFC, the returned string does not wrap lines at 76 columns.

actual open fun base64(): String
actual open fun base64(): String
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual open fun base64Url(): String
expect fun base64Url(): String

Returns this byte string encoded as URL-safe Base64.

actual open fun base64Url(): String
actual open fun base64Url(): String
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual open operator override fun compareTo(other: ByteString): Int
expect open operator override fun compareTo(other: ByteString): Int
actual open operator override fun compareTo(other: ByteString): Int
actual open operator override fun compareTo(other: ByteString): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual open fun copyInto(offset: Int, target: ByteArray, targetOffset: Int, byteCount: Int)
expect fun copyInto(offset: Int = 0, target: ByteArray, targetOffset: Int = 0, byteCount: Int)

Copies bytes of this in [offset..offset+byteCount] to other in [targetOffset..targetOffset+byteCount].

actual open fun copyInto(offset: Int, target: ByteArray, targetOffset: Int, byteCount: Int)
actual open fun copyInto(offset: Int, target: ByteArray, targetOffset: Int, byteCount: Int)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual fun endsWith(suffix: ByteArray): Boolean
actual fun endsWith(suffix: ByteString): Boolean
expect fun endsWith(suffix: ByteArray): Boolean
expect fun endsWith(suffix: ByteString): Boolean
actual fun endsWith(suffix: ByteArray): Boolean
actual fun endsWith(suffix: ByteString): Boolean
actual fun endsWith(suffix: ByteArray): Boolean
actual fun endsWith(suffix: ByteString): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual open operator override fun equals(other: Any?): Boolean
expect open operator override fun equals(other: Any?): Boolean
actual open operator override fun equals(other: Any?): Boolean
actual open operator override fun equals(other: Any?): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual operator fun get(index: Int): Byte
@JvmName(name = "getByte")
expect operator fun get(index: Int): Byte

Returns the byte at index.

@JvmName(name = "getByte")
actual operator fun get(index: Int): Byte
actual operator fun get(index: Int): Byte
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual open override fun hashCode(): Int
expect open override fun hashCode(): Int
actual open override fun hashCode(): Int
actual open override fun hashCode(): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual open fun hex(): String
expect fun hex(): String

Returns this byte string encoded in hexadecimal.

actual open fun hex(): String
actual open fun hex(): String
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual fun hmacSha1(key: ByteString): ByteString

Returns the 160-bit SHA-1 HMAC of this byte string.

expect fun hmacSha1(key: ByteString): ByteString

Returns the 160-bit SHA-1 HMAC of this byte string.

actual open fun hmacSha1(key: ByteString): ByteString

Returns the 160-bit SHA-1 HMAC of this byte string.

actual fun hmacSha1(key: ByteString): ByteString

Returns the 160-bit SHA-1 HMAC of this byte string.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual fun hmacSha256(key: ByteString): ByteString

Returns the 256-bit SHA-256 HMAC of this byte string.

expect fun hmacSha256(key: ByteString): ByteString

Returns the 256-bit SHA-256 HMAC of this byte string.

actual open fun hmacSha256(key: ByteString): ByteString

Returns the 256-bit SHA-256 HMAC of this byte string.

actual fun hmacSha256(key: ByteString): ByteString

Returns the 256-bit SHA-256 HMAC of this byte string.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual fun hmacSha512(key: ByteString): ByteString

Returns the 512-bit SHA-512 HMAC of this byte string.

expect fun hmacSha512(key: ByteString): ByteString

Returns the 512-bit SHA-512 HMAC of this byte string.

actual open fun hmacSha512(key: ByteString): ByteString

Returns the 512-bit SHA-512 HMAC of this byte string.

actual fun hmacSha512(key: ByteString): ByteString

Returns the 512-bit SHA-512 HMAC of this byte string.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual open fun indexOf(other: ByteArray, fromIndex: Int): Int
actual fun indexOf(other: ByteString, fromIndex: Int): Int
expect fun indexOf(other: ByteArray, fromIndex: Int = 0): Int
expect fun indexOf(other: ByteString, fromIndex: Int = 0): Int
actual open fun indexOf(other: ByteArray, fromIndex: Int): Int
actual fun indexOf(other: ByteString, fromIndex: Int): Int
actual open fun indexOf(other: ByteArray, fromIndex: Int): Int
actual fun indexOf(other: ByteString, fromIndex: Int): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual open fun lastIndexOf(other: ByteArray, fromIndex: Int): Int
actual fun lastIndexOf(other: ByteString, fromIndex: Int): Int
expect fun lastIndexOf(other: ByteArray, fromIndex: Int = DEFAULT__ByteString_size): Int
expect fun lastIndexOf(other: ByteString, fromIndex: Int = DEFAULT__ByteString_size): Int
actual open fun lastIndexOf(other: ByteArray, fromIndex: Int): Int
actual fun lastIndexOf(other: ByteString, fromIndex: Int): Int
actual open fun lastIndexOf(other: ByteArray, fromIndex: Int): Int
actual fun lastIndexOf(other: ByteString, fromIndex: Int): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual fun md5(): ByteString
expect fun md5(): ByteString

Returns the 128-bit MD5 hash of this byte string.

actual fun md5(): ByteString
actual fun md5(): ByteString
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual open fun rangeEquals(offset: Int, other: ByteArray, otherOffset: Int, byteCount: Int): Boolean
actual open fun rangeEquals(offset: Int, other: ByteString, otherOffset: Int, byteCount: Int): Boolean
expect fun rangeEquals(offset: Int, other: ByteArray, otherOffset: Int, byteCount: Int): Boolean
expect fun rangeEquals(offset: Int, other: ByteString, otherOffset: Int, byteCount: Int): Boolean

Returns true if the bytes of this in [offset..offset+byteCount) equal the bytes of other in [otherOffset..otherOffset+byteCount). Returns false if either range is out of bounds.

actual open fun rangeEquals(offset: Int, other: ByteArray, otherOffset: Int, byteCount: Int): Boolean
actual open fun rangeEquals(offset: Int, other: ByteString, otherOffset: Int, byteCount: Int): Boolean
actual open fun rangeEquals(offset: Int, other: ByteArray, otherOffset: Int, byteCount: Int): Boolean
actual open fun rangeEquals(offset: Int, other: ByteString, otherOffset: Int, byteCount: Int): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual fun sha1(): ByteString
expect fun sha1(): ByteString

Returns the 160-bit SHA-1 hash of this byte string.

actual fun sha1(): ByteString
actual fun sha1(): ByteString
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual fun sha256(): ByteString
expect fun sha256(): ByteString

Returns the 256-bit SHA-256 hash of this byte string.

actual fun sha256(): ByteString
actual fun sha256(): ByteString
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual fun sha512(): ByteString
expect fun sha512(): ByteString

Returns the 512-bit SHA-512 hash of this byte string.

actual fun sha512(): ByteString
actual fun sha512(): ByteString
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual fun startsWith(prefix: ByteArray): Boolean
actual fun startsWith(prefix: ByteString): Boolean
expect fun startsWith(prefix: ByteArray): Boolean
expect fun startsWith(prefix: ByteString): Boolean
actual fun startsWith(prefix: ByteArray): Boolean
actual fun startsWith(prefix: ByteString): Boolean
actual fun startsWith(prefix: ByteArray): Boolean
actual fun startsWith(prefix: ByteString): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open fun string(charset: Charset): String

Constructs a new String by decoding the bytes using charset.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual open fun substring(beginIndex: Int, endIndex: Int): ByteString
expect fun substring(beginIndex: Int = 0, endIndex: Int = DEFAULT__ByteString_size): 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.

actual open fun substring(beginIndex: Int, endIndex: Int): ByteString
actual open fun substring(beginIndex: Int, endIndex: Int): ByteString
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual open fun toAsciiLowercase(): ByteString

Returns a byte string equal to this byte string, but with the bytes 'A' through 'Z' replaced with the corresponding byte in 'a' through 'z'. Returns this byte string if it contains no bytes in 'A' through 'Z'.

actual open fun toAsciiLowercase(): ByteString
actual open fun toAsciiLowercase(): ByteString
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual open fun toAsciiUppercase(): ByteString

Returns a byte string equal to this byte string, but with the bytes 'a' through 'z' replaced with the corresponding byte in 'A' through 'Z'. Returns this byte string if it contains no bytes in 'a' through 'z'.

actual open fun toAsciiUppercase(): ByteString
actual open fun toAsciiUppercase(): ByteString
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual open fun toByteArray(): ByteArray
expect fun toByteArray(): ByteArray

Returns a byte array containing a copy of the bytes in this ByteString.

actual open fun toByteArray(): ByteArray
actual open fun toByteArray(): ByteArray
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual open override fun toString(): String

Returns a human-readable string that describes the contents of this byte string. Typically this is a string like [text=Hello] or [hex=0000ffff].

expect open override fun toString(): String

Returns a human-readable string that describes the contents of this byte string. Typically this is a string like [text=Hello] or [hex=0000ffff].

actual open override fun toString(): String
actual open override fun toString(): String

Returns a human-readable string that describes the contents of this byte string. Typically this is a string like [text=Hello] or [hex=0000ffff].

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual open fun utf8(): String
expect fun utf8(): String

Constructs a new String by decoding the bytes as UTF-8.

actual open fun utf8(): String
actual open fun utf8(): String
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open fun write(out: OutputStream)

Writes the contents of this byte string to out.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/last-index-of.html b/3.x/okio/okio/okio/-byte-string/last-index-of.html new file mode 100644 index 0000000000..95e82ed8b3 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/last-index-of.html @@ -0,0 +1,87 @@ + + + + + lastIndexOf + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

lastIndexOf

+
+
+
+
actual fun lastIndexOf(other: ByteString, fromIndex: Int): Int
actual open fun lastIndexOf(other: ByteArray, fromIndex: Int): Int
expect fun lastIndexOf(other: ByteString, fromIndex: Int = DEFAULT__ByteString_size): Int
expect fun lastIndexOf(other: ByteArray, fromIndex: Int = DEFAULT__ByteString_size): Int
actual fun lastIndexOf(other: ByteString, fromIndex: Int): Int
actual open fun lastIndexOf(other: ByteArray, fromIndex: Int): Int
actual fun lastIndexOf(other: ByteString, fromIndex: Int): Int
actual open fun lastIndexOf(other: ByteArray, fromIndex: Int): Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/md5.html b/3.x/okio/okio/okio/-byte-string/md5.html new file mode 100644 index 0000000000..ffe30354ee --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/md5.html @@ -0,0 +1,87 @@ + + + + + md5 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

md5

+
+
+
+
actual fun md5(): ByteString
expect fun md5(): ByteString

Returns the 128-bit MD5 hash of this byte string.

MD5 has been vulnerable to collisions since 2004. It should not be used in new code.

actual fun md5(): ByteString
actual fun md5(): ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/range-equals.html b/3.x/okio/okio/okio/-byte-string/range-equals.html new file mode 100644 index 0000000000..aba41516c6 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/range-equals.html @@ -0,0 +1,87 @@ + + + + + rangeEquals + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rangeEquals

+
+
+
+
actual open fun rangeEquals(offset: Int, other: ByteString, otherOffset: Int, byteCount: Int): Boolean
actual open fun rangeEquals(offset: Int, other: ByteArray, otherOffset: Int, byteCount: Int): Boolean
expect fun rangeEquals(offset: Int, other: ByteString, otherOffset: Int, byteCount: Int): Boolean
expect fun rangeEquals(offset: Int, other: ByteArray, otherOffset: Int, byteCount: Int): Boolean

Returns true if the bytes of this in [offset..offset+byteCount) equal the bytes of other in [otherOffset..otherOffset+byteCount). Returns false if either range is out of bounds.

actual open fun rangeEquals(offset: Int, other: ByteString, otherOffset: Int, byteCount: Int): Boolean
actual open fun rangeEquals(offset: Int, other: ByteArray, otherOffset: Int, byteCount: Int): Boolean
actual open fun rangeEquals(offset: Int, other: ByteString, otherOffset: Int, byteCount: Int): Boolean
actual open fun rangeEquals(offset: Int, other: ByteArray, otherOffset: Int, byteCount: Int): Boolean
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/sha1.html b/3.x/okio/okio/okio/-byte-string/sha1.html new file mode 100644 index 0000000000..3cfb0d6a6c --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/sha1.html @@ -0,0 +1,87 @@ + + + + + sha1 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sha1

+
+
+
+
actual fun sha1(): ByteString
expect fun sha1(): ByteString

Returns the 160-bit SHA-1 hash of this byte string.

SHA-1 has been vulnerable to collisions since 2017. It should not be used in new code.

actual fun sha1(): ByteString
actual fun sha1(): ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/sha256.html b/3.x/okio/okio/okio/-byte-string/sha256.html new file mode 100644 index 0000000000..75460fbd3b --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/sha256.html @@ -0,0 +1,87 @@ + + + + + sha256 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sha256

+
+
+
+
actual fun sha256(): ByteString
expect fun sha256(): ByteString

Returns the 256-bit SHA-256 hash of this byte string.

actual fun sha256(): ByteString
actual fun sha256(): ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/sha512.html b/3.x/okio/okio/okio/-byte-string/sha512.html new file mode 100644 index 0000000000..ec88d2bfcd --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/sha512.html @@ -0,0 +1,87 @@ + + + + + sha512 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sha512

+
+
+
+
actual fun sha512(): ByteString
expect fun sha512(): ByteString

Returns the 512-bit SHA-512 hash of this byte string.

actual fun sha512(): ByteString
actual fun sha512(): ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/size.html b/3.x/okio/okio/okio/-byte-string/size.html new file mode 100644 index 0000000000..0be572a7ed --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/size.html @@ -0,0 +1,87 @@ + + + + + size + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

size

+
+
+
+
actual val size: Int
@get:JvmName(name = "size")
expect val size: Int

Returns the number of bytes in this ByteString.

@get:JvmName(name = "size")
actual val size: Int
actual val size: Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/starts-with.html b/3.x/okio/okio/okio/-byte-string/starts-with.html new file mode 100644 index 0000000000..d626dcf1a5 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/starts-with.html @@ -0,0 +1,87 @@ + + + + + startsWith + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

startsWith

+
+
+
+
actual fun startsWith(prefix: ByteString): Boolean
actual fun startsWith(prefix: ByteArray): Boolean
expect fun startsWith(prefix: ByteString): Boolean
expect fun startsWith(prefix: ByteArray): Boolean
actual fun startsWith(prefix: ByteString): Boolean
actual fun startsWith(prefix: ByteArray): Boolean
actual fun startsWith(prefix: ByteString): Boolean
actual fun startsWith(prefix: ByteArray): Boolean
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/string.html b/3.x/okio/okio/okio/-byte-string/string.html new file mode 100644 index 0000000000..0da20ffc01 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/string.html @@ -0,0 +1,84 @@ + + + + + string + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

string

+
+
+
+
open fun string(charset: Charset): String

Constructs a new String by decoding the bytes using charset.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/substring.html b/3.x/okio/okio/okio/-byte-string/substring.html new file mode 100644 index 0000000000..76992cfd45 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/substring.html @@ -0,0 +1,87 @@ + + + + + substring + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

substring

+
+
+
+
actual open fun substring(beginIndex: Int, endIndex: Int): ByteString
expect fun substring(beginIndex: Int = 0, endIndex: Int = DEFAULT__ByteString_size): 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.

actual open fun substring(beginIndex: Int, endIndex: Int): ByteString
actual open fun substring(beginIndex: Int, endIndex: Int): ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/to-ascii-lowercase.html b/3.x/okio/okio/okio/-byte-string/to-ascii-lowercase.html new file mode 100644 index 0000000000..10062c17d0 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/to-ascii-lowercase.html @@ -0,0 +1,87 @@ + + + + + toAsciiLowercase + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toAsciiLowercase

+
+
+
+
actual open fun toAsciiLowercase(): ByteString

Returns a byte string equal to this byte string, but with the bytes 'A' through 'Z' replaced with the corresponding byte in 'a' through 'z'. Returns this byte string if it contains no bytes in 'A' through 'Z'.

actual open fun toAsciiLowercase(): ByteString
actual open fun toAsciiLowercase(): ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/to-ascii-uppercase.html b/3.x/okio/okio/okio/-byte-string/to-ascii-uppercase.html new file mode 100644 index 0000000000..c3e112c9d5 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/to-ascii-uppercase.html @@ -0,0 +1,87 @@ + + + + + toAsciiUppercase + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toAsciiUppercase

+
+
+
+
actual open fun toAsciiUppercase(): ByteString

Returns a byte string equal to this byte string, but with the bytes 'a' through 'z' replaced with the corresponding byte in 'A' through 'Z'. Returns this byte string if it contains no bytes in 'a' through 'z'.

actual open fun toAsciiUppercase(): ByteString
actual open fun toAsciiUppercase(): ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/to-byte-array.html b/3.x/okio/okio/okio/-byte-string/to-byte-array.html new file mode 100644 index 0000000000..1e516cb69a --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/to-byte-array.html @@ -0,0 +1,87 @@ + + + + + toByteArray + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toByteArray

+
+
+
+
actual open fun toByteArray(): ByteArray
expect fun toByteArray(): ByteArray

Returns a byte array containing a copy of the bytes in this ByteString.

actual open fun toByteArray(): ByteArray
actual open fun toByteArray(): ByteArray
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/to-string.html b/3.x/okio/okio/okio/-byte-string/to-string.html new file mode 100644 index 0000000000..6bf70b0d13 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/to-string.html @@ -0,0 +1,87 @@ + + + + + toString + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toString

+
+
+
+
actual open override fun toString(): String

Returns a human-readable string that describes the contents of this byte string. Typically this is a string like [text=Hello] or [hex=0000ffff].

expect open override fun toString(): String

Returns a human-readable string that describes the contents of this byte string. Typically this is a string like [text=Hello] or [hex=0000ffff].

actual open override fun toString(): String
actual open override fun toString(): String

Returns a human-readable string that describes the contents of this byte string. Typically this is a string like [text=Hello] or [hex=0000ffff].

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/utf8.html b/3.x/okio/okio/okio/-byte-string/utf8.html new file mode 100644 index 0000000000..5891f28c06 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/utf8.html @@ -0,0 +1,87 @@ + + + + + utf8 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

utf8

+
+
+
+
actual open fun utf8(): String
expect fun utf8(): String

Constructs a new String by decoding the bytes as UTF-8.

actual open fun utf8(): String
actual open fun utf8(): String
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-byte-string/write.html b/3.x/okio/okio/okio/-byte-string/write.html new file mode 100644 index 0000000000..30a421fbc9 --- /dev/null +++ b/3.x/okio/okio/okio/-byte-string/write.html @@ -0,0 +1,84 @@ + + + + + write + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

write

+
+
+
+
open fun write(out: OutputStream)

Writes the contents of this byte string to out.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-cipher-sink/-cipher-sink.html b/3.x/okio/okio/okio/-cipher-sink/-cipher-sink.html new file mode 100644 index 0000000000..ac730ce3f9 --- /dev/null +++ b/3.x/okio/okio/okio/-cipher-sink/-cipher-sink.html @@ -0,0 +1,84 @@ + + + + + CipherSink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

CipherSink

+
+
+
+
constructor(sink: BufferedSink, cipher: Cipher)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-cipher-sink/cipher.html b/3.x/okio/okio/okio/-cipher-sink/cipher.html new file mode 100644 index 0000000000..0c35b1acf2 --- /dev/null +++ b/3.x/okio/okio/okio/-cipher-sink/cipher.html @@ -0,0 +1,84 @@ + + + + + cipher + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

cipher

+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-cipher-sink/close.html b/3.x/okio/okio/okio/-cipher-sink/close.html new file mode 100644 index 0000000000..69a853233d --- /dev/null +++ b/3.x/okio/okio/okio/-cipher-sink/close.html @@ -0,0 +1,84 @@ + + + + + close + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

close

+
+
+
+
open override fun close()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-cipher-sink/flush.html b/3.x/okio/okio/okio/-cipher-sink/flush.html new file mode 100644 index 0000000000..4426170b9c --- /dev/null +++ b/3.x/okio/okio/okio/-cipher-sink/flush.html @@ -0,0 +1,84 @@ + + + + + flush + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

flush

+
+
+
+
open override fun flush()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-cipher-sink/index.html b/3.x/okio/okio/okio/-cipher-sink/index.html new file mode 100644 index 0000000000..253dfd9ec0 --- /dev/null +++ b/3.x/okio/okio/okio/-cipher-sink/index.html @@ -0,0 +1,290 @@ + + + + + CipherSink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

CipherSink

+
+
+
class CipherSink(sink: BufferedSink, val cipher: Cipher) : Sink
+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
constructor(sink: BufferedSink, cipher: Cipher)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a new sink that buffers writes to sink. The returned sink will batch writes to sink. Use this wherever you write to a sink to get an ergonomic and efficient access to data.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that uses cipher to encrypt or decrypt this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun close()
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Sink.deflate(deflater: Deflater = Deflater()): DeflaterSink

Returns an DeflaterSink that DEFLATE-compresses data to this Sink while writing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun flush()
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Sink.gzip(): GzipSink

Returns a GzipSink that gzip-compresses to this Sink while writing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that uses digest to hash this.

Returns a sink that uses mac to hash this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun timeout(): Timeout
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun write(source: Buffer, byteCount: Long)
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-cipher-sink/timeout.html b/3.x/okio/okio/okio/-cipher-sink/timeout.html new file mode 100644 index 0000000000..d74885193d --- /dev/null +++ b/3.x/okio/okio/okio/-cipher-sink/timeout.html @@ -0,0 +1,84 @@ + + + + + timeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

timeout

+
+
+
+
open override fun timeout(): Timeout
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-cipher-sink/write.html b/3.x/okio/okio/okio/-cipher-sink/write.html new file mode 100644 index 0000000000..69bb0fce8d --- /dev/null +++ b/3.x/okio/okio/okio/-cipher-sink/write.html @@ -0,0 +1,84 @@ + + + + + write + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

write

+
+
+
+
open override fun write(source: Buffer, byteCount: Long)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-cipher-source/-cipher-source.html b/3.x/okio/okio/okio/-cipher-source/-cipher-source.html new file mode 100644 index 0000000000..a37aff7855 --- /dev/null +++ b/3.x/okio/okio/okio/-cipher-source/-cipher-source.html @@ -0,0 +1,84 @@ + + + + + CipherSource + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

CipherSource

+
+
+
+
constructor(source: BufferedSource, cipher: Cipher)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-cipher-source/cipher.html b/3.x/okio/okio/okio/-cipher-source/cipher.html new file mode 100644 index 0000000000..aa4b03bc54 --- /dev/null +++ b/3.x/okio/okio/okio/-cipher-source/cipher.html @@ -0,0 +1,84 @@ + + + + + cipher + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

cipher

+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-cipher-source/close.html b/3.x/okio/okio/okio/-cipher-source/close.html new file mode 100644 index 0000000000..eedf445bf7 --- /dev/null +++ b/3.x/okio/okio/okio/-cipher-source/close.html @@ -0,0 +1,84 @@ + + + + + close + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

close

+
+
+
+
open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-cipher-source/index.html b/3.x/okio/okio/okio/-cipher-source/index.html new file mode 100644 index 0000000000..8757dd5d55 --- /dev/null +++ b/3.x/okio/okio/okio/-cipher-source/index.html @@ -0,0 +1,273 @@ + + + + + CipherSource + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

CipherSource

+
+
+
class CipherSource(source: BufferedSource, val cipher: Cipher) : Source
+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
constructor(source: BufferedSource, cipher: Cipher)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a new source that buffers reads from source. The returned source will perform bulk reads into its in-memory buffer. Use this wherever you read a source to get an ergonomic and efficient access to data.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a source that uses cipher to encrypt or decrypt this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Source.gzip(): GzipSource

Returns a GzipSource that gzip-decompresses this Source while reading.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a source that uses digest to hash this.

Returns a source that uses mac to hash this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Source.inflate(inflater: Inflater = Inflater()): InflaterSource

Returns an InflaterSource that DEFLATE-decompresses this Source while reading.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun timeout(): Timeout

Returns the timeout for this source.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-cipher-source/read.html b/3.x/okio/okio/okio/-cipher-source/read.html new file mode 100644 index 0000000000..07b95ac793 --- /dev/null +++ b/3.x/okio/okio/okio/-cipher-source/read.html @@ -0,0 +1,84 @@ + + + + + read + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

read

+
+
+
+
open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-cipher-source/timeout.html b/3.x/okio/okio/okio/-cipher-source/timeout.html new file mode 100644 index 0000000000..4f55d9ae01 --- /dev/null +++ b/3.x/okio/okio/okio/-cipher-source/timeout.html @@ -0,0 +1,84 @@ + + + + + timeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

timeout

+
+
+
+
open override fun timeout(): Timeout

Returns the timeout for this source.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-closeable/close.html b/3.x/okio/okio/okio/-closeable/close.html new file mode 100644 index 0000000000..db617e430a --- /dev/null +++ b/3.x/okio/okio/okio/-closeable/close.html @@ -0,0 +1,85 @@ + + + + + close + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

close

+
+
+
+
expect abstract fun close()

Closes this object and releases the resources it holds. It is an error to use an object after it has been closed. It is safe to close an object more than once.

actual abstract fun close()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-closeable/index.html b/3.x/okio/okio/okio/-closeable/index.html new file mode 100644 index 0000000000..93fecd3275 --- /dev/null +++ b/3.x/okio/okio/okio/-closeable/index.html @@ -0,0 +1,112 @@ + + + + + Closeable + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Closeable

+
+
+
actual typealias Closeable = java.io.Closeable
actual interface Closeable

Inheritors

+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun close()

Closes this object and releases the resources it holds. It is an error to use an object after it has been closed. It is safe to close an object more than once.

actual abstract fun close()
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-deflater-sink/-deflater-sink.html b/3.x/okio/okio/okio/-deflater-sink/-deflater-sink.html new file mode 100644 index 0000000000..09ce8f8e51 --- /dev/null +++ b/3.x/okio/okio/okio/-deflater-sink/-deflater-sink.html @@ -0,0 +1,84 @@ + + + + + DeflaterSink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

DeflaterSink

+
+
+
+
expect constructor(sink: Sink, deflater: Deflater)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-deflater-sink/close.html b/3.x/okio/okio/okio/-deflater-sink/close.html new file mode 100644 index 0000000000..d717c9df4d --- /dev/null +++ b/3.x/okio/okio/okio/-deflater-sink/close.html @@ -0,0 +1,84 @@ + + + + + close + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

close

+
+
+
+
expect open override fun close()

Pushes all buffered bytes to their final destination and releases the resources held by this sink. It is an error to write a closed sink. It is safe to close a sink more than once.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-deflater-sink/flush.html b/3.x/okio/okio/okio/-deflater-sink/flush.html new file mode 100644 index 0000000000..f704a86614 --- /dev/null +++ b/3.x/okio/okio/okio/-deflater-sink/flush.html @@ -0,0 +1,84 @@ + + + + + flush + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

flush

+
+
+
+
expect open override fun flush()

Pushes all buffered bytes to their final destination.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-deflater-sink/index.html b/3.x/okio/okio/okio/-deflater-sink/index.html new file mode 100644 index 0000000000..0aead90378 --- /dev/null +++ b/3.x/okio/okio/okio/-deflater-sink/index.html @@ -0,0 +1,269 @@ + + + + + DeflaterSink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

DeflaterSink

+
+
+
expect class DeflaterSink : Sink

A sink that uses DEFLATE to compress data written to another source.

Sync flush

Aggressive flushing of this stream may result in reduced compression. Each call to flush immediately compresses all currently-buffered data; this early compression may be less effective than compression performed without flushing.

This is equivalent to using Deflater with the sync flush option. This class does not offer any partial flush mechanism. For best performance, only call flush when application behavior requires it.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect constructor(sink: Sink, deflater: Deflater)
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a new sink that buffers writes to sink. The returned sink will batch writes to sink. Use this wherever you write to a sink to get an ergonomic and efficient access to data.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that uses cipher to encrypt or decrypt this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun close()

Pushes all buffered bytes to their final destination and releases the resources held by this sink. It is an error to write a closed sink. It is safe to close a sink more than once.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Sink.deflate(deflater: Deflater = Deflater()): DeflaterSink

Returns an DeflaterSink that DEFLATE-compresses data to this Sink while writing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun flush()

Pushes all buffered bytes to their final destination.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Sink.gzip(): GzipSink

Returns a GzipSink that gzip-compresses to this Sink while writing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that uses digest to hash this.

Returns a sink that uses mac to hash this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun timeout(): Timeout

Returns the timeout for this sink.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun write(source: Buffer, byteCount: Long)

Removes byteCount bytes from source and appends them to this.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-deflater-sink/timeout.html b/3.x/okio/okio/okio/-deflater-sink/timeout.html new file mode 100644 index 0000000000..af1c931706 --- /dev/null +++ b/3.x/okio/okio/okio/-deflater-sink/timeout.html @@ -0,0 +1,84 @@ + + + + + timeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

timeout

+
+
+
+
expect open override fun timeout(): Timeout

Returns the timeout for this sink.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-deflater-sink/write.html b/3.x/okio/okio/okio/-deflater-sink/write.html new file mode 100644 index 0000000000..3671055f08 --- /dev/null +++ b/3.x/okio/okio/okio/-deflater-sink/write.html @@ -0,0 +1,84 @@ + + + + + write + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

write

+
+
+
+
expect open override fun write(source: Buffer, byteCount: Long)

Removes byteCount bytes from source and appends them to this.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-deflater/-deflater.html b/3.x/okio/okio/okio/-deflater/-deflater.html new file mode 100644 index 0000000000..6221667ce4 --- /dev/null +++ b/3.x/okio/okio/okio/-deflater/-deflater.html @@ -0,0 +1,84 @@ + + + + + Deflater + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Deflater

+
+
+
+
expect constructor()

Creates a deflater that expects to read a ZLIB header and checksum.


expect constructor(level: Int, nowrap: Boolean)

Parameters

nowrap

true to skip the ZLIB header and checksum.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-deflater/end.html b/3.x/okio/okio/okio/-deflater/end.html new file mode 100644 index 0000000000..5b3d8e628b --- /dev/null +++ b/3.x/okio/okio/okio/-deflater/end.html @@ -0,0 +1,84 @@ + + + + + end + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

end

+
+
+
+
expect fun end()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-deflater/get-bytes-read.html b/3.x/okio/okio/okio/-deflater/get-bytes-read.html new file mode 100644 index 0000000000..0ae350ddf7 --- /dev/null +++ b/3.x/okio/okio/okio/-deflater/get-bytes-read.html @@ -0,0 +1,84 @@ + + + + + getBytesRead + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

getBytesRead

+
+
+
+
expect fun getBytesRead(): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-deflater/index.html b/3.x/okio/okio/okio/-deflater/index.html new file mode 100644 index 0000000000..b4a311ebed --- /dev/null +++ b/3.x/okio/okio/okio/-deflater/index.html @@ -0,0 +1,149 @@ + + + + + Deflater + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Deflater

+
+
+
actual typealias Deflater = java.util.zip.Deflater
expect class Deflater(level: Int, nowrap: Boolean)

Parameters

nowrap

true to skip the ZLIB header and checksum.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect constructor()

Creates a deflater that expects to read a ZLIB header and checksum.

expect constructor(level: Int, nowrap: Boolean)
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun end()
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun getBytesRead(): Long
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-e-o-f-exception/-e-o-f-exception.html b/3.x/okio/okio/okio/-e-o-f-exception/-e-o-f-exception.html new file mode 100644 index 0000000000..1e21495e9e --- /dev/null +++ b/3.x/okio/okio/okio/-e-o-f-exception/-e-o-f-exception.html @@ -0,0 +1,85 @@ + + + + + EOFException + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

EOFException

+
+
+
+
expect constructor()
expect constructor(message: String?)
actual constructor()
actual constructor(message: String?)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-e-o-f-exception/index.html b/3.x/okio/okio/okio/-e-o-f-exception/index.html new file mode 100644 index 0000000000..dac8cd8886 --- /dev/null +++ b/3.x/okio/okio/okio/-e-o-f-exception/index.html @@ -0,0 +1,150 @@ + + + + + EOFException + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

EOFException

+
+
+
expect open class EOFException(message: String?) : IOException
actual open class EOFException(message: String?) : IOException
+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect constructor()
expect constructor(message: String?)
actual constructor()
actual constructor(message: String?)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+
cause
+ +
Link copied to clipboard
+
+
+
+
+
+
open val cause: Throwable?
open val cause: Throwable?
+
+
+
+
+ +
+
+
+
message
+ +
Link copied to clipboard
+
+
+
+
+
+
open val message: String?
open val message: String?
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-handle/-file-handle.html b/3.x/okio/okio/okio/-file-handle/-file-handle.html new file mode 100644 index 0000000000..71259b3db8 --- /dev/null +++ b/3.x/okio/okio/okio/-file-handle/-file-handle.html @@ -0,0 +1,84 @@ + + + + + FileHandle + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

FileHandle

+
+
+
+
constructor(readWrite: Boolean)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-handle/appending-sink.html b/3.x/okio/okio/okio/-file-handle/appending-sink.html new file mode 100644 index 0000000000..e7b19e7f59 --- /dev/null +++ b/3.x/okio/okio/okio/-file-handle/appending-sink.html @@ -0,0 +1,84 @@ + + + + + appendingSink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

appendingSink

+
+
+
+

Returns a sink that writes to this starting at the end. The returned sink must be closed when it is no longer needed.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-handle/close.html b/3.x/okio/okio/okio/-file-handle/close.html new file mode 100644 index 0000000000..a1ab6a4416 --- /dev/null +++ b/3.x/okio/okio/okio/-file-handle/close.html @@ -0,0 +1,84 @@ + + + + + close + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

close

+
+
+
+
override fun close()

Closes this object and releases the resources it holds. It is an error to use an object after it has been closed. It is safe to close an object more than once.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-handle/flush.html b/3.x/okio/okio/okio/-file-handle/flush.html new file mode 100644 index 0000000000..2aa6ac8f00 --- /dev/null +++ b/3.x/okio/okio/okio/-file-handle/flush.html @@ -0,0 +1,84 @@ + + + + + flush + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

flush

+
+
+
+
fun flush()

Pushes all buffered bytes to their final destination.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-handle/index.html b/3.x/okio/okio/okio/-file-handle/index.html new file mode 100644 index 0000000000..a297ba0ff3 --- /dev/null +++ b/3.x/okio/okio/okio/-file-handle/index.html @@ -0,0 +1,339 @@ + + + + + FileHandle + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

FileHandle

+
+
+
abstract class FileHandle(val readWrite: Boolean) : Closeable

An open file for reading and writing; using either streaming and random access.

Use read and write to perform one-off random-access reads and writes. Use source, sink, and appendingSink for streaming reads and writes.

File handles must be closed when they are no longer needed. It is an error to read, write, or create streams after a file handle is closed. The operating system resources held by a file handle will be released once the file handle and all of its streams are closed.

Although this class offers both reading and writing APIs, file handle instances may be read-only or write-only. For example, a handle to a file on a read-only file system will throw an exception if a write is attempted.

File handles may be used by multiple threads concurrently. But the individual sources and sinks produced by a file handle are not safe for concurrent use.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
constructor(readWrite: Boolean)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
val lock: Lock
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

True if this handle supports both reading and writing. If this is false all write operations including write, sink, resize, and flush will all throw IllegalStateException if called.

+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that writes to this starting at the end. The returned sink must be closed when it is no longer needed.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
override fun close()

Closes this object and releases the resources it holds. It is an error to use an object after it has been closed. It is safe to close an object more than once.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun flush()

Pushes all buffered bytes to their final destination.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun position(sink: Sink): Long

Returns the position of sink in the file. The argument sink must be either a sink produced by this file handle, or a BufferedSink that directly wraps such a sink. If the parameter is a BufferedSink, it adjusts for buffered bytes.

fun position(source: Source): Long

Returns the position of source in the file. The argument source must be either a source produced by this file handle, or a BufferedSource that directly wraps such a source. If the parameter is a BufferedSource, it adjusts for buffered bytes.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun read(fileOffset: Long, sink: Buffer, byteCount: Long): Long

Reads at least 1, and up to byteCount bytes from this starting at fileOffset and appends them to sink. Returns the number of bytes read, or -1 if fileOffset equals size.

fun read(fileOffset: Long, array: ByteArray, arrayOffset: Int, byteCount: Int): Int

Reads at least 1, and up to byteCount bytes from this starting at fileOffset and copies them to array at arrayOffset. Returns the number of bytes read, or -1 if fileOffset equals size.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun reposition(sink: Sink, position: Long)

Change the position of sink in the file to position. The argument sink must be either a sink produced by this file handle, or a BufferedSink that directly wraps such a sink. If the parameter is a BufferedSink, it emits for buffered bytes.

fun reposition(source: Source, position: Long)

Change the position of source in the file to position. The argument source must be either a source produced by this file handle, or a BufferedSource that directly wraps such a source. If the parameter is a BufferedSource, it will skip or clear buffered bytes.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun resize(size: Long)

Changes the number of bytes in this file to size. This will remove bytes from the end if the new size is smaller. It will add 0 bytes to the end if it is larger.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun sink(fileOffset: Long = 0): Sink

Returns a sink that writes to this starting at fileOffset. The returned sink must be closed when it is no longer needed.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun size(): Long

Returns the total number of bytes in the file. This will change if the file size changes.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun source(fileOffset: Long = 0): Source

Returns a source that reads from this starting at fileOffset. The returned source must be closed when it is no longer needed.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun write(fileOffset: Long, source: Buffer, byteCount: Long)

Removes byteCount bytes from source and writes them to this at fileOffset.

fun write(fileOffset: Long, array: ByteArray, arrayOffset: Int, byteCount: Int)

Reads byteCount bytes from array and writes them to this at fileOffset.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-handle/lock.html b/3.x/okio/okio/okio/-file-handle/lock.html new file mode 100644 index 0000000000..1d973f6e41 --- /dev/null +++ b/3.x/okio/okio/okio/-file-handle/lock.html @@ -0,0 +1,84 @@ + + + + + lock + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

lock

+
+
+
+
val lock: Lock
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-handle/position.html b/3.x/okio/okio/okio/-file-handle/position.html new file mode 100644 index 0000000000..a439cf0534 --- /dev/null +++ b/3.x/okio/okio/okio/-file-handle/position.html @@ -0,0 +1,84 @@ + + + + + position + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

position

+
+
+
+
fun position(source: Source): Long

Returns the position of source in the file. The argument source must be either a source produced by this file handle, or a BufferedSource that directly wraps such a source. If the parameter is a BufferedSource, it adjusts for buffered bytes.


fun position(sink: Sink): Long

Returns the position of sink in the file. The argument sink must be either a sink produced by this file handle, or a BufferedSink that directly wraps such a sink. If the parameter is a BufferedSink, it adjusts for buffered bytes.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-handle/read-write.html b/3.x/okio/okio/okio/-file-handle/read-write.html new file mode 100644 index 0000000000..abd4334cdf --- /dev/null +++ b/3.x/okio/okio/okio/-file-handle/read-write.html @@ -0,0 +1,84 @@ + + + + + readWrite + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readWrite

+
+
+
+

True if this handle supports both reading and writing. If this is false all write operations including write, sink, resize, and flush will all throw IllegalStateException if called.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-handle/read.html b/3.x/okio/okio/okio/-file-handle/read.html new file mode 100644 index 0000000000..3b8116e522 --- /dev/null +++ b/3.x/okio/okio/okio/-file-handle/read.html @@ -0,0 +1,84 @@ + + + + + read + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

read

+
+
+
+
fun read(fileOffset: Long, array: ByteArray, arrayOffset: Int, byteCount: Int): Int

Reads at least 1, and up to byteCount bytes from this starting at fileOffset and copies them to array at arrayOffset. Returns the number of bytes read, or -1 if fileOffset equals size.


fun read(fileOffset: Long, sink: Buffer, byteCount: Long): Long

Reads at least 1, and up to byteCount bytes from this starting at fileOffset and appends them to sink. Returns the number of bytes read, or -1 if fileOffset equals size.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-handle/reposition.html b/3.x/okio/okio/okio/-file-handle/reposition.html new file mode 100644 index 0000000000..fd24b041e8 --- /dev/null +++ b/3.x/okio/okio/okio/-file-handle/reposition.html @@ -0,0 +1,84 @@ + + + + + reposition + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

reposition

+
+
+
+
fun reposition(source: Source, position: Long)

Change the position of source in the file to position. The argument source must be either a source produced by this file handle, or a BufferedSource that directly wraps such a source. If the parameter is a BufferedSource, it will skip or clear buffered bytes.


fun reposition(sink: Sink, position: Long)

Change the position of sink in the file to position. The argument sink must be either a sink produced by this file handle, or a BufferedSink that directly wraps such a sink. If the parameter is a BufferedSink, it emits for buffered bytes.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-handle/resize.html b/3.x/okio/okio/okio/-file-handle/resize.html new file mode 100644 index 0000000000..428faa9fcb --- /dev/null +++ b/3.x/okio/okio/okio/-file-handle/resize.html @@ -0,0 +1,84 @@ + + + + + resize + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

resize

+
+
+
+
fun resize(size: Long)

Changes the number of bytes in this file to size. This will remove bytes from the end if the new size is smaller. It will add 0 bytes to the end if it is larger.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-handle/sink.html b/3.x/okio/okio/okio/-file-handle/sink.html new file mode 100644 index 0000000000..82361fdd68 --- /dev/null +++ b/3.x/okio/okio/okio/-file-handle/sink.html @@ -0,0 +1,84 @@ + + + + + sink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sink

+
+
+
+
fun sink(fileOffset: Long = 0): Sink

Returns a sink that writes to this starting at fileOffset. The returned sink must be closed when it is no longer needed.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-handle/size.html b/3.x/okio/okio/okio/-file-handle/size.html new file mode 100644 index 0000000000..f307b982cb --- /dev/null +++ b/3.x/okio/okio/okio/-file-handle/size.html @@ -0,0 +1,84 @@ + + + + + size + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

size

+
+
+
+
fun size(): Long

Returns the total number of bytes in the file. This will change if the file size changes.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-handle/source.html b/3.x/okio/okio/okio/-file-handle/source.html new file mode 100644 index 0000000000..6222300bfa --- /dev/null +++ b/3.x/okio/okio/okio/-file-handle/source.html @@ -0,0 +1,84 @@ + + + + + source + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

source

+
+
+
+
fun source(fileOffset: Long = 0): Source

Returns a source that reads from this starting at fileOffset. The returned source must be closed when it is no longer needed.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-handle/write.html b/3.x/okio/okio/okio/-file-handle/write.html new file mode 100644 index 0000000000..b1fe4eae54 --- /dev/null +++ b/3.x/okio/okio/okio/-file-handle/write.html @@ -0,0 +1,84 @@ + + + + + write + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

write

+
+
+
+
fun write(fileOffset: Long, array: ByteArray, arrayOffset: Int, byteCount: Int)

Reads byteCount bytes from array and writes them to this at fileOffset.


fun write(fileOffset: Long, source: Buffer, byteCount: Long)

Removes byteCount bytes from source and writes them to this at fileOffset.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-metadata/-file-metadata.html b/3.x/okio/okio/okio/-file-metadata/-file-metadata.html new file mode 100644 index 0000000000..dbb1621cf6 --- /dev/null +++ b/3.x/okio/okio/okio/-file-metadata/-file-metadata.html @@ -0,0 +1,84 @@ + + + + + FileMetadata + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

FileMetadata

+
+
+
+
constructor(isRegularFile: Boolean = false, isDirectory: Boolean = false, symlinkTarget: Path? = null, size: Long? = null, createdAtMillis: Long? = null, lastModifiedAtMillis: Long? = null, lastAccessedAtMillis: Long? = null, extras: Map<KClass<*>, Any> = mapOf())
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-metadata/copy.html b/3.x/okio/okio/okio/-file-metadata/copy.html new file mode 100644 index 0000000000..1d17e0f4cb --- /dev/null +++ b/3.x/okio/okio/okio/-file-metadata/copy.html @@ -0,0 +1,84 @@ + + + + + copy + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

copy

+
+
+
+
fun copy(isRegularFile: Boolean = this.isRegularFile, isDirectory: Boolean = this.isDirectory, symlinkTarget: Path? = this.symlinkTarget, size: Long? = this.size, createdAtMillis: Long? = this.createdAtMillis, lastModifiedAtMillis: Long? = this.lastModifiedAtMillis, lastAccessedAtMillis: Long? = this.lastAccessedAtMillis, extras: Map<KClass<*>, Any> = this.extras): FileMetadata
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-metadata/created-at-millis.html b/3.x/okio/okio/okio/-file-metadata/created-at-millis.html new file mode 100644 index 0000000000..b785e3f495 --- /dev/null +++ b/3.x/okio/okio/okio/-file-metadata/created-at-millis.html @@ -0,0 +1,84 @@ + + + + + createdAtMillis + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

createdAtMillis

+
+
+
+
val createdAtMillis: Long? = null

The system time of the host computer when this file was created, if the host file system supports this feature. This is typically available on Windows NTFS file systems and not available on UNIX or Windows FAT file systems.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-metadata/extra.html b/3.x/okio/okio/okio/-file-metadata/extra.html new file mode 100644 index 0000000000..41773c28b3 --- /dev/null +++ b/3.x/okio/okio/okio/-file-metadata/extra.html @@ -0,0 +1,84 @@ + + + + + extra + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

extra

+
+
+
+
fun <T : Any> extra(type: KClass<out T>): T?

Returns extra metadata of type type, or null if no such metadata is held.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-metadata/extras.html b/3.x/okio/okio/okio/-file-metadata/extras.html new file mode 100644 index 0000000000..77660be446 --- /dev/null +++ b/3.x/okio/okio/okio/-file-metadata/extras.html @@ -0,0 +1,84 @@ + + + + + extras + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

extras

+
+
+
+
val extras: Map<KClass<*>, Any>

Additional file system-specific metadata organized by the class of that metadata. File systems may use this to include information like permissions, content-type, or linked applications.

Values in this map should be instances of immutable classes. Keys should be the types of those classes.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-metadata/index.html b/3.x/okio/okio/okio/-file-metadata/index.html new file mode 100644 index 0000000000..481c6f0b5c --- /dev/null +++ b/3.x/okio/okio/okio/-file-metadata/index.html @@ -0,0 +1,305 @@ + + + + + FileMetadata + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

FileMetadata

+
+
+
class FileMetadata(val isRegularFile: Boolean = false, val isDirectory: Boolean = false, val symlinkTarget: Path? = null, val size: Long? = null, val createdAtMillis: Long? = null, val lastModifiedAtMillis: Long? = null, val lastAccessedAtMillis: Long? = null, extras: Map<KClass<*>, Any> = mapOf())

Description of a file or another object referenced by a path.

In simple use a file system is a mechanism for organizing files and directories on a local storage device. In practice file systems are more capable and their contents more varied. For example, a path may refer to:

  • An operating system process that consumes data, produces data, or both. For example, reading from the /dev/urandom file on Linux returns a unique sequence of pseudorandom bytes to each reader.

  • A stream that connects a pair of programs together. A pipe is a special file that a producing program writes to and a consuming program reads from. Both programs operate concurrently. The size of a pipe is not well defined: the writer can write as much data as the reader is able to read.

  • A file on a remote file system. The performance and availability of remote files may be quite different from that of local files!

  • A symbolic link (symlink) to another path. When attempting to access this path the file system will follow the link and return data from the target path.

  • The same content as another path without a symlink. On UNIX file systems an inode is an anonymous handle to a file's content, and multiple paths may target the same inode without any other relationship to one another. A consequence of this design is that a directory with three 1 GiB files may only need 1 GiB on the storage device.

This class does not attempt to model these rich file system features! It exposes a limited view useful for programs with only basic file system needs. Be cautious of the potential consequences of special files when writing programs that operate on a file system.

File metadata is subject to change, and code that operates on file systems should defend against changes to the file that occur between reading metadata and subsequent operations.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
constructor(isRegularFile: Boolean = false, isDirectory: Boolean = false, symlinkTarget: Path? = null, size: Long? = null, createdAtMillis: Long? = null, lastModifiedAtMillis: Long? = null, lastAccessedAtMillis: Long? = null, extras: Map<KClass<*>, Any> = mapOf())
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
val createdAtMillis: Long? = null

The system time of the host computer when this file was created, if the host file system supports this feature. This is typically available on Windows NTFS file systems and not available on UNIX or Windows FAT file systems.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
val extras: Map<KClass<*>, Any>

Additional file system-specific metadata organized by the class of that metadata. File systems may use this to include information like permissions, content-type, or linked applications.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
val isDirectory: Boolean = false

True if the path refers to a directory that contains 0 or more child paths.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
val isRegularFile: Boolean = false

True if this file is a container of bytes. If this is true, then size is non-null.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

The system time of the host computer when this file was most recently read or written.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

The system time of the host computer when this file was most recently written.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
val size: Long? = null

The number of bytes readable from this file. The amount of storage resources consumed by this file may be larger (due to block size overhead, redundant copies for RAID, etc.), or smaller (due to file system compression, shared inodes, etc).

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
val symlinkTarget: Path? = null

The absolute or relative path that this file is a symlink to, or null if this is not a symlink. If this is a relative path, it is relative to the source file's parent directory.

+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun copy(isRegularFile: Boolean = this.isRegularFile, isDirectory: Boolean = this.isDirectory, symlinkTarget: Path? = this.symlinkTarget, size: Long? = this.size, createdAtMillis: Long? = this.createdAtMillis, lastModifiedAtMillis: Long? = this.lastModifiedAtMillis, lastAccessedAtMillis: Long? = this.lastAccessedAtMillis, extras: Map<KClass<*>, Any> = this.extras): FileMetadata
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun <T : Any> extra(type: KClass<out T>): T?

Returns extra metadata of type type, or null if no such metadata is held.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun toString(): String
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-metadata/is-directory.html b/3.x/okio/okio/okio/-file-metadata/is-directory.html new file mode 100644 index 0000000000..35e729dc27 --- /dev/null +++ b/3.x/okio/okio/okio/-file-metadata/is-directory.html @@ -0,0 +1,84 @@ + + + + + isDirectory + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

isDirectory

+
+
+
+
val isDirectory: Boolean = false

True if the path refers to a directory that contains 0 or more child paths.

Note that a path does not need to be a directory for FileSystem.list to return successfully. For example, mounted storage devices may have child files, but do not identify themselves as directories.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-metadata/is-regular-file.html b/3.x/okio/okio/okio/-file-metadata/is-regular-file.html new file mode 100644 index 0000000000..14c642e313 --- /dev/null +++ b/3.x/okio/okio/okio/-file-metadata/is-regular-file.html @@ -0,0 +1,84 @@ + + + + + isRegularFile + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

isRegularFile

+
+
+
+
val isRegularFile: Boolean = false

True if this file is a container of bytes. If this is true, then size is non-null.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-metadata/last-accessed-at-millis.html b/3.x/okio/okio/okio/-file-metadata/last-accessed-at-millis.html new file mode 100644 index 0000000000..ad0eadd5a6 --- /dev/null +++ b/3.x/okio/okio/okio/-file-metadata/last-accessed-at-millis.html @@ -0,0 +1,84 @@ + + + + + lastAccessedAtMillis + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

lastAccessedAtMillis

+
+
+
+

The system time of the host computer when this file was most recently read or written.

Note that the accuracy of the returned time may be much more coarse than its precision. In particular, this value is expressed with millisecond precision but may be accessed at second- or day-accuracy only.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-metadata/last-modified-at-millis.html b/3.x/okio/okio/okio/-file-metadata/last-modified-at-millis.html new file mode 100644 index 0000000000..0570c8276b --- /dev/null +++ b/3.x/okio/okio/okio/-file-metadata/last-modified-at-millis.html @@ -0,0 +1,84 @@ + + + + + lastModifiedAtMillis + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

lastModifiedAtMillis

+
+
+
+

The system time of the host computer when this file was most recently written.

Note that the accuracy of the returned time may be much more coarse than its precision. In particular, this value is expressed with millisecond precision but may be accessed at second- or day-accuracy only.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-metadata/size.html b/3.x/okio/okio/okio/-file-metadata/size.html new file mode 100644 index 0000000000..efabfa5e48 --- /dev/null +++ b/3.x/okio/okio/okio/-file-metadata/size.html @@ -0,0 +1,84 @@ + + + + + size + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

size

+
+
+
+
val size: Long? = null

The number of bytes readable from this file. The amount of storage resources consumed by this file may be larger (due to block size overhead, redundant copies for RAID, etc.), or smaller (due to file system compression, shared inodes, etc).

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-metadata/symlink-target.html b/3.x/okio/okio/okio/-file-metadata/symlink-target.html new file mode 100644 index 0000000000..a7db6cc95b --- /dev/null +++ b/3.x/okio/okio/okio/-file-metadata/symlink-target.html @@ -0,0 +1,84 @@ + + + + + symlinkTarget + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

symlinkTarget

+
+
+
+
val symlinkTarget: Path? = null

The absolute or relative path that this file is a symlink to, or null if this is not a symlink. If this is a relative path, it is relative to the source file's parent directory.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-metadata/to-string.html b/3.x/okio/okio/okio/-file-metadata/to-string.html new file mode 100644 index 0000000000..ecd208cd23 --- /dev/null +++ b/3.x/okio/okio/okio/-file-metadata/to-string.html @@ -0,0 +1,84 @@ + + + + + toString + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toString

+
+
+
+
open override fun toString(): String
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-not-found-exception/-file-not-found-exception.html b/3.x/okio/okio/okio/-file-not-found-exception/-file-not-found-exception.html new file mode 100644 index 0000000000..5f22d4808a --- /dev/null +++ b/3.x/okio/okio/okio/-file-not-found-exception/-file-not-found-exception.html @@ -0,0 +1,85 @@ + + + + + FileNotFoundException + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

FileNotFoundException

+
+
+
+
expect constructor(message: String?)
actual constructor(message: String?)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-not-found-exception/index.html b/3.x/okio/okio/okio/-file-not-found-exception/index.html new file mode 100644 index 0000000000..103f6a72ad --- /dev/null +++ b/3.x/okio/okio/okio/-file-not-found-exception/index.html @@ -0,0 +1,150 @@ + + + + + FileNotFoundException + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

FileNotFoundException

+
+
+
expect class FileNotFoundException(message: String?) : IOException
actual open class FileNotFoundException(message: String?) : IOException
+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect constructor(message: String?)
actual constructor(message: String?)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+
cause
+ +
Link copied to clipboard
+
+
+
+
+
+
open val cause: Throwable?
open val cause: Throwable?
+
+
+
+
+ +
+
+
+
message
+ +
Link copied to clipboard
+
+
+
+
+
+
open val message: String?
open val message: String?
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/-companion/-r-e-s-o-u-r-c-e-s.html b/3.x/okio/okio/okio/-file-system/-companion/-r-e-s-o-u-r-c-e-s.html new file mode 100644 index 0000000000..680748f6ba --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/-companion/-r-e-s-o-u-r-c-e-s.html @@ -0,0 +1,84 @@ + + + + + RESOURCES + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

RESOURCES

+
+
+
+

A read-only file system holding the classpath resources of the current process. If a resource is available with ClassLoader.getResource, it is also available via this file system.

In applications that compose multiple class loaders, this holds only the resources of whichever class loader includes Okio classes. Use ClassLoader.asResourceFileSystem for the resources of a specific class loader.

This file system does not need to be closed. Calling its close function does nothing.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/-companion/-s-y-s-t-e-m_-t-e-m-p-o-r-a-r-y_-d-i-r-e-c-t-o-r-y.html b/3.x/okio/okio/okio/-file-system/-companion/-s-y-s-t-e-m_-t-e-m-p-o-r-a-r-y_-d-i-r-e-c-t-o-r-y.html new file mode 100644 index 0000000000..83fbab8220 --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/-companion/-s-y-s-t-e-m_-t-e-m-p-o-r-a-r-y_-d-i-r-e-c-t-o-r-y.html @@ -0,0 +1,88 @@ + + + + + SYSTEM_TEMPORARY_DIRECTORY + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

SYSTEM_TEMPORARY_DIRECTORY

+
+
+
+

Returns a writable temporary directory on SYSTEM.

This is platform-specific.

  • JVM and Android: the path in the java.io.tmpdir system property

  • Linux, iOS, and macOS: the path in the TMPDIR environment variable.

  • Windows: the first non-null of TEMP, TMP, and USERPROFILE environment variables.

Note that the returned directory is not generally private. Other users or processes that share this file system may read data that is written to this directory, or write malicious data for this process to receive.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/-companion/[jvm]-s-y-s-t-e-m.html b/3.x/okio/okio/okio/-file-system/-companion/[jvm]-s-y-s-t-e-m.html new file mode 100644 index 0000000000..a3d4a624d7 --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/-companion/[jvm]-s-y-s-t-e-m.html @@ -0,0 +1,84 @@ + + + + + [jvm]SYSTEM + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

SYSTEM

+
+
+
+

The current process's host file system. Use this instance directly, or dependency inject a FileSystem to make code testable.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/-companion/[native]-s-y-s-t-e-m.html b/3.x/okio/okio/okio/-file-system/-companion/[native]-s-y-s-t-e-m.html new file mode 100644 index 0000000000..cfe67e0b68 --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/-companion/[native]-s-y-s-t-e-m.html @@ -0,0 +1,84 @@ + + + + + [native]SYSTEM + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

SYSTEM

+
+
+
+

The current process's host file system. Use this instance directly, or dependency inject a FileSystem to make code testable.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/-companion/as-okio-file-system.html b/3.x/okio/okio/okio/-file-system/-companion/as-okio-file-system.html new file mode 100644 index 0000000000..7210228c39 --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/-companion/as-okio-file-system.html @@ -0,0 +1,84 @@ + + + + + asOkioFileSystem + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

asOkioFileSystem

+
+
+
+

Closing the returned file system will close the underlying java.nio.file.FileSystem.

Note that the default file system is not closeable and calling its close function will throw an UnsupportedOperationException.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/-companion/index.html b/3.x/okio/okio/okio/-file-system/-companion/index.html new file mode 100644 index 0000000000..a6bc1fe72a --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/-companion/index.html @@ -0,0 +1,187 @@ + + + + + Companion + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Companion

+
+
+
expect object Companion
actual object Companion
actual object Companion
actual object Companion
actual object Companion
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

A read-only file system holding the classpath resources of the current process. If a resource is available with ClassLoader.getResource, it is also available via this file system.

+
+
+
+
+ +
+
+
+
SYSTEM
+ +
Link copied to clipboard
+
+
+
+
+
+

The current process's host file system. Use this instance directly, or dependency inject a FileSystem to make code testable.

The current process's host file system. Use this instance directly, or dependency inject a FileSystem to make code testable.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect val FileSystem.Companion.SYSTEM: FileSystem
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a writable temporary directory on SYSTEM.

+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Closing the returned file system will close the underlying java.nio.file.FileSystem.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/-file-system.html b/3.x/okio/okio/okio/-file-system/-file-system.html new file mode 100644 index 0000000000..725d59a943 --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/-file-system.html @@ -0,0 +1,88 @@ + + + + + FileSystem + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

FileSystem

+
+
+
+
expect constructor()
constructor()
constructor()
constructor()
constructor()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/appending-sink.html b/3.x/okio/okio/okio/-file-system/appending-sink.html new file mode 100644 index 0000000000..735e322704 --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/appending-sink.html @@ -0,0 +1,88 @@ + + + + + appendingSink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

appendingSink

+
+
+
+
expect abstract fun appendingSink(file: Path, mustExist: Boolean = false): Sink

Returns a sink that appends bytes to the end of file, creating it if it doesn't already exist.

Parameters

mustExist

true to throw an IOException instead of creating a new file. This is equivalent to r+ on POSIX and OPEN_EXISTING on Windows.

Throws

if file cannot be written. A file cannot be written if its enclosing directory does not exist, if the current process doesn't have access to file, if there's a loop of symbolic links, or if any name is too long.

actual abstract fun appendingSink(file: Path, mustExist: Boolean): Sink
fun appendingSink(file: Path): Sink
actual abstract fun appendingSink(file: Path, mustExist: Boolean): Sink
actual abstract fun appendingSink(file: Path, mustExist: Boolean): Sink
actual abstract fun appendingSink(file: Path, mustExist: Boolean): Sink
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/atomic-move.html b/3.x/okio/okio/okio/-file-system/atomic-move.html new file mode 100644 index 0000000000..f0a16c2796 --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/atomic-move.html @@ -0,0 +1,88 @@ + + + + + atomicMove + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

atomicMove

+
+
+
+
expect abstract fun atomicMove(source: Path, target: Path)

Moves source to target in-place if the underlying file system supports it. If target exists, it is first removed. If source == target, this operation does nothing. This may be used to move a file or a directory.

Only as Atomic as the Underlying File System Supports

FAT and NTFS file systems cannot atomically move a file over an existing file. If the target file already exists, the move is performed into two steps:

  1. Atomically delete the target file.

  2. Atomically rename the source file to the target file.

The delete step and move step are each atomic but not atomic in aggregate! If this process crashes, the host operating system crashes, or the hardware fails it is possible that the delete step will succeed and the rename will not.

Entire-file or nothing

These are the possible results of this operation:

  • This operation returns normally, the source file is absent, and the target file contains the data previously held by the source file. This is the success case.

  • The operation throws an IOException and the file system is unchanged. For example, this occurs if this process lacks permissions to perform the move.

  • This operation throws an IOException, the target file is deleted, but the source file is unchanged. This is the partial failure case described above and is only possible on file systems like FAT and NTFS that do not support atomic file replacement. Typically in such cases this operation won't return at all because the process or operating system has also crashed.

There is no failure mode where the target file holds a subset of the bytes of the source file. If the rename step cannot be performed atomically, this function will throw an IOException before attempting a move. Typically this occurs if the source and target files are on different physical volumes.

Non-Atomic Moves

If you need to move files across volumes, use copy followed by delete, and change your application logic to recover should the copy step suffer a partial failure.

Throws

if the move cannot be performed, or cannot be performed atomically. Moves fail if the source doesn't exist, if the target is not writable, if the target already exists and cannot be replaced, or if the move would cause physical or quota limits to be exceeded. This list of potential problems is not exhaustive.

actual abstract fun atomicMove(source: Path, target: Path)
actual abstract fun atomicMove(source: Path, target: Path)
actual abstract fun atomicMove(source: Path, target: Path)
actual abstract fun atomicMove(source: Path, target: Path)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/canonicalize.html b/3.x/okio/okio/okio/-file-system/canonicalize.html new file mode 100644 index 0000000000..52c79c7a9e --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/canonicalize.html @@ -0,0 +1,88 @@ + + + + + canonicalize + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

canonicalize

+
+
+
+
expect abstract fun canonicalize(path: Path): Path

Resolves path against the current working directory and symlinks in this file system. The returned path identifies the same file as path, but with an absolute path that does not include any symbolic links.

This is similar to File.getCanonicalFile() on the JVM and realpath on POSIX. Unlike File.getCanonicalFile(), this throws if the file doesn't exist.

Throws

if path cannot be resolved. This will occur if the file doesn't exist, if the current working directory doesn't exist or is inaccessible, or if another failure occurs while resolving the path.

actual abstract fun canonicalize(path: Path): Path
actual abstract fun canonicalize(path: Path): Path
actual abstract fun canonicalize(path: Path): Path
actual abstract fun canonicalize(path: Path): Path
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/close.html b/3.x/okio/okio/okio/-file-system/close.html new file mode 100644 index 0000000000..d4bf82f481 --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/close.html @@ -0,0 +1,88 @@ + + + + + close + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

close

+
+
+
+
expect open override fun close()

Closes this object and releases the resources it holds. It is an error to use an object after it has been closed. It is safe to close an object more than once.

actual open override fun close()
actual open override fun close()
actual open override fun close()
actual open override fun close()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/copy.html b/3.x/okio/okio/okio/-file-system/copy.html new file mode 100644 index 0000000000..bc112e2843 --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/copy.html @@ -0,0 +1,88 @@ + + + + + copy + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

copy

+
+
+
+
expect open fun copy(source: Path, target: Path)

Copies all the bytes from the file at source to the file at target. This does not copy file metadata like last modified time, permissions, or extended attributes.

This function is not atomic; a failure may leave target in an inconsistent state. For example, target may be empty or contain only a prefix of source.

Throws

if source cannot be read or if target cannot be written.

actual open fun copy(source: Path, target: Path)
actual open fun copy(source: Path, target: Path)
actual open fun copy(source: Path, target: Path)
actual open fun copy(source: Path, target: Path)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/create-directories.html b/3.x/okio/okio/okio/-file-system/create-directories.html new file mode 100644 index 0000000000..a74a101c21 --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/create-directories.html @@ -0,0 +1,88 @@ + + + + + createDirectories + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

createDirectories

+
+
+
+
expect fun createDirectories(dir: Path, mustCreate: Boolean = false)

Creates a directory at the path identified by dir, and any enclosing parent path directories, recursively.

Parameters

mustCreate

true to throw an IOException instead of overwriting an existing directory.

Throws

if any metadata or createDirectory operation fails.

actual fun createDirectories(dir: Path, mustCreate: Boolean)
actual fun createDirectories(dir: Path, mustCreate: Boolean)
actual fun createDirectories(dir: Path, mustCreate: Boolean)
actual fun createDirectories(dir: Path, mustCreate: Boolean)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/create-directory.html b/3.x/okio/okio/okio/-file-system/create-directory.html new file mode 100644 index 0000000000..dd0c8ac022 --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/create-directory.html @@ -0,0 +1,88 @@ + + + + + createDirectory + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

createDirectory

+
+
+
+
expect abstract fun createDirectory(dir: Path, mustCreate: Boolean = false)

Creates a directory at the path identified by dir.

Parameters

mustCreate

true to throw an IOException if the directory already exists.

Throws

if dir's parent does not exist, is not a directory, or cannot be written. A directory cannot be created if the current process doesn't have access, if there's a loop of symbolic links, or if any name is too long.

actual abstract fun createDirectory(dir: Path, mustCreate: Boolean)
actual abstract fun createDirectory(dir: Path, mustCreate: Boolean)
actual abstract fun createDirectory(dir: Path, mustCreate: Boolean)
actual abstract fun createDirectory(dir: Path, mustCreate: Boolean)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/create-symlink.html b/3.x/okio/okio/okio/-file-system/create-symlink.html new file mode 100644 index 0000000000..937a5bd34f --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/create-symlink.html @@ -0,0 +1,88 @@ + + + + + createSymlink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

createSymlink

+
+
+
+
expect abstract fun createSymlink(source: Path, target: Path)

Creates a symbolic link at source that resolves to target. If target is a relative path, it is relative to source.parent.

Throws

if source cannot be created. This may be because it already exists or because its storage doesn't support symlinks. This list of potential problems is not exhaustive.

actual abstract fun createSymlink(source: Path, target: Path)
actual abstract fun createSymlink(source: Path, target: Path)
actual abstract fun createSymlink(source: Path, target: Path)
actual abstract fun createSymlink(source: Path, target: Path)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/delete-recursively.html b/3.x/okio/okio/okio/-file-system/delete-recursively.html new file mode 100644 index 0000000000..d3ecffe87a --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/delete-recursively.html @@ -0,0 +1,88 @@ + + + + + deleteRecursively + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

deleteRecursively

+
+
+
+
expect open fun deleteRecursively(fileOrDirectory: Path, mustExist: Boolean = false)

Recursively deletes all children of fileOrDirectory if it is a directory, then deletes fileOrDirectory itself.

This function does not defend against race conditions. For example, if child files are created or deleted in fileOrDirectory while this function is executing, this may fail with an IOException.

Parameters

mustExist

true to throw an IOException if there is nothing at fileOrDirectory to delete.

Throws

if any metadata, list, or delete operation fails.

actual open fun deleteRecursively(fileOrDirectory: Path, mustExist: Boolean)
fun deleteRecursively(fileOrDirectory: Path)
actual open fun deleteRecursively(fileOrDirectory: Path, mustExist: Boolean)
actual open fun deleteRecursively(fileOrDirectory: Path, mustExist: Boolean)
actual open fun deleteRecursively(fileOrDirectory: Path, mustExist: Boolean)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/delete.html b/3.x/okio/okio/okio/-file-system/delete.html new file mode 100644 index 0000000000..219213d762 --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/delete.html @@ -0,0 +1,88 @@ + + + + + delete + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

delete

+
+
+
+
expect abstract fun delete(path: Path, mustExist: Boolean = false)

Deletes the file or directory at path.

Parameters

mustExist

true to throw an IOException if there is nothing at path to delete.

Throws

if there is a file or directory but it could not be deleted. Deletes fail if the current process doesn't have access, if the file system is readonly, or if path is a non-empty directory. This list of potential problems is not exhaustive.

actual abstract fun delete(path: Path, mustExist: Boolean)
fun delete(path: Path)
actual abstract fun delete(path: Path, mustExist: Boolean)
actual abstract fun delete(path: Path, mustExist: Boolean)
actual abstract fun delete(path: Path, mustExist: Boolean)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/exists.html b/3.x/okio/okio/okio/-file-system/exists.html new file mode 100644 index 0000000000..aa40619190 --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/exists.html @@ -0,0 +1,88 @@ + + + + + exists + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

exists

+
+
+
+
expect fun exists(path: Path): Boolean

Returns true if path identifies an object on this file system.

Throws

if path cannot be accessed due to a connectivity problem, permissions problem, or other issue.

actual fun exists(path: Path): Boolean
actual fun exists(path: Path): Boolean
actual fun exists(path: Path): Boolean
actual fun exists(path: Path): Boolean
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/index.html b/3.x/okio/okio/okio/-file-system/index.html new file mode 100644 index 0000000000..6e0a1185bc --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/index.html @@ -0,0 +1,531 @@ + + + + + FileSystem + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

FileSystem

+
+
+
expect abstract class FileSystem : Closeable

Read and write access to a hierarchical collection of files, addressed by paths. This is a natural interface to the current computer's local file system.

Other implementations are possible:

  • FakeFileSystem is an in-memory file system suitable for testing. Note that this class is included in the okio-fakefilesystem artifact.

  • ForwardingFileSystem is a file system decorator. Use it to apply monitoring, encryption, compression, or filtering to another file system.

  • A ZIP file system could provide access to the contents of a .zip file.

For improved capability and testability, consider structuring your classes to dependency inject a FileSystem rather than using FileSystem.SYSTEM directly.

Small API

---------

This interface is deliberately limited in which features it supports.

It is not suitable for high-latency or unreliable remote file systems. It lacks support for retries, timeouts, cancellation, and bulk operations.

It cannot create special file types like hard links, pipes, or mounts. Reading or writing these files works as if they were regular files.

It cannot read or write file access control features like the UNIX chmod and Windows access control lists. It does honor these controls and will fail with an IOException if privileges are insufficient!

It cannot lock files or check which files are locked.

It cannot watch the file system for changes.

Applications that need rich file system features should use another API!

Multiplatform

-------------

This class supports a matrix of Kotlin platforms (JVM, Kotlin/Native, Kotlin/JS) and operating systems (Linux, macOS, and Windows). It attempts to balance working similarly across platforms with being consistent with the local operating system.

This is a blocking API which limits its applicability on concurrent Node.js services. File operations will block the event loop (and all JavaScript execution!) until they complete.

It supports the path schemes of both Windows (like C:\Users) and UNIX (like /home). Note that path resolution rules differ by platform.

Differences vs. Java IO APIs

----------------------------

The java.io.File class is Java's original file system API. The delete and renameTo methods return false if the operation failed. The list method returns null if the file isn't a directory or could not be listed. This class always throws an IOException when an operation doesn't succeed.

The java.nio.file.Path and java.nio.file.Files classes are the entry points of Java's new file system API. Each Path instance is scoped to a particular file system, though that is often implicit because the Paths.get() function automatically uses the default (ie. system) file system. In Okio's API paths are just identifiers; you must use a specific FileSystem object to do I/O with.

Closeable

---------

Implementations of this interface may need to be closed to release resources.

It is the file system implementor's responsibility to document whether a file system instance must be closed, and what happens to its open streams when the file system is closed. For example, the Java NIO FileSystem closes all of its open streams when the file system is closed.

The built-in FileSystem.SYSTEM implementation does not need to be closed and closing it has no effect.

Inheritors

actual abstract class FileSystem : Closeable
actual abstract class FileSystem : Closeable
actual abstract class FileSystem : Closeable
actual abstract class FileSystem : Closeable
+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect constructor()
constructor()
constructor()
constructor()
constructor()
+
+
+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect object Companion
actual object Companion
actual object Companion
actual object Companion
actual object Companion
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun appendingSink(file: Path, mustExist: Boolean = false): Sink

Returns a sink that appends bytes to the end of file, creating it if it doesn't already exist.

actual abstract fun appendingSink(file: Path, mustExist: Boolean): Sink
fun appendingSink(file: Path): Sink
actual abstract fun appendingSink(file: Path, mustExist: Boolean): Sink
actual abstract fun appendingSink(file: Path, mustExist: Boolean): Sink
actual abstract fun appendingSink(file: Path, mustExist: Boolean): Sink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun atomicMove(source: Path, target: Path)

Moves source to target in-place if the underlying file system supports it. If target exists, it is first removed. If source == target, this operation does nothing. This may be used to move a file or a directory.

actual abstract fun atomicMove(source: Path, target: Path)
actual abstract fun atomicMove(source: Path, target: Path)
actual abstract fun atomicMove(source: Path, target: Path)
actual abstract fun atomicMove(source: Path, target: Path)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun canonicalize(path: Path): Path

Resolves path against the current working directory and symlinks in this file system. The returned path identifies the same file as path, but with an absolute path that does not include any symbolic links.

actual abstract fun canonicalize(path: Path): Path
actual abstract fun canonicalize(path: Path): Path
actual abstract fun canonicalize(path: Path): Path
actual abstract fun canonicalize(path: Path): Path
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun close()

Closes this object and releases the resources it holds. It is an error to use an object after it has been closed. It is safe to close an object more than once.

actual open override fun close()
actual open override fun close()
actual open override fun close()
actual open override fun close()
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open fun copy(source: Path, target: Path)

Copies all the bytes from the file at source to the file at target. This does not copy file metadata like last modified time, permissions, or extended attributes.

actual open fun copy(source: Path, target: Path)
actual open fun copy(source: Path, target: Path)
actual open fun copy(source: Path, target: Path)
actual open fun copy(source: Path, target: Path)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun createDirectories(dir: Path, mustCreate: Boolean = false)

Creates a directory at the path identified by dir, and any enclosing parent path directories, recursively.

actual fun createDirectories(dir: Path, mustCreate: Boolean)
actual fun createDirectories(dir: Path, mustCreate: Boolean)
actual fun createDirectories(dir: Path, mustCreate: Boolean)
actual fun createDirectories(dir: Path, mustCreate: Boolean)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun createDirectory(dir: Path, mustCreate: Boolean = false)

Creates a directory at the path identified by dir.

actual abstract fun createDirectory(dir: Path, mustCreate: Boolean)
actual abstract fun createDirectory(dir: Path, mustCreate: Boolean)
actual abstract fun createDirectory(dir: Path, mustCreate: Boolean)
actual abstract fun createDirectory(dir: Path, mustCreate: Boolean)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun createSymlink(source: Path, target: Path)

Creates a symbolic link at source that resolves to target. If target is a relative path, it is relative to source.parent.

actual abstract fun createSymlink(source: Path, target: Path)
actual abstract fun createSymlink(source: Path, target: Path)
actual abstract fun createSymlink(source: Path, target: Path)
actual abstract fun createSymlink(source: Path, target: Path)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun delete(path: Path, mustExist: Boolean = false)

Deletes the file or directory at path.

actual abstract fun delete(path: Path, mustExist: Boolean)
fun delete(path: Path)
actual abstract fun delete(path: Path, mustExist: Boolean)
actual abstract fun delete(path: Path, mustExist: Boolean)
actual abstract fun delete(path: Path, mustExist: Boolean)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open fun deleteRecursively(fileOrDirectory: Path, mustExist: Boolean = false)

Recursively deletes all children of fileOrDirectory if it is a directory, then deletes fileOrDirectory itself.

actual open fun deleteRecursively(fileOrDirectory: Path, mustExist: Boolean)
fun deleteRecursively(fileOrDirectory: Path)
actual open fun deleteRecursively(fileOrDirectory: Path, mustExist: Boolean)
actual open fun deleteRecursively(fileOrDirectory: Path, mustExist: Boolean)
actual open fun deleteRecursively(fileOrDirectory: Path, mustExist: Boolean)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun exists(path: Path): Boolean

Returns true if path identifies an object on this file system.

actual fun exists(path: Path): Boolean
actual fun exists(path: Path): Boolean
actual fun exists(path: Path): Boolean
actual fun exists(path: Path): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun list(dir: Path): List<Path>

Returns the children of dir. The returned list is sorted using natural ordering. If dir is a relative path, the returned elements will also be relative paths. If it is an absolute path, the returned elements will also be absolute paths.

actual abstract fun list(dir: Path): List<Path>
actual abstract fun list(dir: Path): List<Path>
actual abstract fun list(dir: Path): List<Path>
actual abstract fun list(dir: Path): List<Path>
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun listOrNull(dir: Path): List<Path>?

Returns the children of the directory identified by dir. The returned list is sorted using natural ordering. If dir is a relative path, the returned elements will also be relative paths. If it is an absolute path, the returned elements will also be absolute paths.

actual abstract fun listOrNull(dir: Path): List<Path>?
actual abstract fun listOrNull(dir: Path): List<Path>?
actual abstract fun listOrNull(dir: Path): List<Path>?
actual abstract fun listOrNull(dir: Path): List<Path>?
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open fun listRecursively(dir: Path, followSymlinks: Boolean = false): Sequence<Path>

Returns a sequence that lazily traverses the children of dir using repeated calls to list. If none of dir's children are directories this returns the same elements as list.

actual open fun listRecursively(dir: Path, followSymlinks: Boolean): Sequence<Path>
actual open fun listRecursively(dir: Path, followSymlinks: Boolean): Sequence<Path>
actual open fun listRecursively(dir: Path, followSymlinks: Boolean): Sequence<Path>
actual open fun listRecursively(dir: Path, followSymlinks: Boolean): Sequence<Path>
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun metadata(path: Path): FileMetadata

Returns metadata of the file, directory, or object identified by path.

actual fun metadata(path: Path): FileMetadata
actual fun metadata(path: Path): FileMetadata
actual fun metadata(path: Path): FileMetadata
actual fun metadata(path: Path): FileMetadata
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun metadataOrNull(path: Path): FileMetadata?

Returns metadata of the file, directory, or object identified by path. This returns null if there is no file at path.

actual abstract fun metadataOrNull(path: Path): FileMetadata?
actual abstract fun metadataOrNull(path: Path): FileMetadata?
actual abstract fun metadataOrNull(path: Path): FileMetadata?
actual abstract fun metadataOrNull(path: Path): FileMetadata?
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun openReadOnly(file: Path): FileHandle

Returns a handle to read file. This will fail if the file doesn't already exist.

actual abstract fun openReadOnly(file: Path): FileHandle
actual abstract fun openReadOnly(file: Path): FileHandle
actual abstract fun openReadOnly(file: Path): FileHandle
actual abstract fun openReadOnly(file: Path): FileHandle
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun openReadWrite(file: Path, mustCreate: Boolean = false, mustExist: Boolean = false): FileHandle

Returns a handle to read and write file. This will create the file if it doesn't already exist.

actual abstract fun openReadWrite(file: Path, mustCreate: Boolean, mustExist: Boolean): FileHandle
fun openReadWrite(file: Path): FileHandle
actual abstract fun openReadWrite(file: Path, mustCreate: Boolean, mustExist: Boolean): FileHandle
actual abstract fun openReadWrite(file: Path, mustCreate: Boolean, mustExist: Boolean): FileHandle
actual abstract fun openReadWrite(file: Path, mustCreate: Boolean, mustExist: Boolean): FileHandle
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun FileSystem.openZip(zipPath: Path): FileSystem

Returns a new read-only file system.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect inline fun <T> read(file: Path, readerAction: BufferedSource.() -> T): T

Creates a source to read file, executes readerAction to read it, and then closes the source. This is a compact way to read the contents of a file.

actual inline fun <T> read(file: Path, readerAction: BufferedSource.() -> T): T
@JvmName(name = "-read")
actual inline fun <T> read(file: Path, readerAction: BufferedSource.() -> T): T
actual inline fun <T> read(file: Path, readerAction: BufferedSource.() -> T): T
actual inline fun <T> read(file: Path, readerAction: BufferedSource.() -> T): T
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun sink(file: Path, mustCreate: Boolean = false): Sink

Returns a sink that writes bytes to file from beginning to end. If file already exists it will be replaced with the new data.

actual abstract fun sink(file: Path, mustCreate: Boolean): Sink
fun sink(file: Path): Sink
actual abstract fun sink(file: Path, mustCreate: Boolean): Sink
actual abstract fun sink(file: Path, mustCreate: Boolean): Sink
actual abstract fun sink(file: Path, mustCreate: Boolean): Sink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun source(file: Path): Source

Returns a source that reads the bytes of file from beginning to end.

actual abstract fun source(file: Path): Source
actual abstract fun source(file: Path): Source
actual abstract fun source(file: Path): Source
actual abstract fun source(file: Path): Source
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect inline fun <T> write(file: Path, mustCreate: Boolean = false, writerAction: BufferedSink.() -> T): T

Creates a sink to write file, executes writerAction to write it, and then closes the sink. This is a compact way to write a file.

actual inline fun <T> write(file: Path, mustCreate: Boolean, writerAction: BufferedSink.() -> T): T
@JvmName(name = "-write")
actual inline fun <T> write(file: Path, mustCreate: Boolean, writerAction: BufferedSink.() -> T): T
actual inline fun <T> write(file: Path, mustCreate: Boolean, writerAction: BufferedSink.() -> T): T
actual inline fun <T> write(file: Path, mustCreate: Boolean, writerAction: BufferedSink.() -> T): T
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/list-or-null.html b/3.x/okio/okio/okio/-file-system/list-or-null.html new file mode 100644 index 0000000000..56feb42b35 --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/list-or-null.html @@ -0,0 +1,88 @@ + + + + + listOrNull + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

listOrNull

+
+
+
+
expect abstract fun listOrNull(dir: Path): List<Path>?

Returns the children of the directory identified by dir. The returned list is sorted using natural ordering. If dir is a relative path, the returned elements will also be relative paths. If it is an absolute path, the returned elements will also be absolute paths.

This returns null if dir does not exist or cannot be listed. A directory cannot be listed if the current process doesn't have access to dir, or if there's a loop of symbolic links, or if any name is too long.

actual abstract fun listOrNull(dir: Path): List<Path>?
actual abstract fun listOrNull(dir: Path): List<Path>?
actual abstract fun listOrNull(dir: Path): List<Path>?
actual abstract fun listOrNull(dir: Path): List<Path>?
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/list-recursively.html b/3.x/okio/okio/okio/-file-system/list-recursively.html new file mode 100644 index 0000000000..8b3210a6e3 --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/list-recursively.html @@ -0,0 +1,88 @@ + + + + + listRecursively + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

listRecursively

+
+
+
+
expect open fun listRecursively(dir: Path, followSymlinks: Boolean = false): Sequence<Path>

Returns a sequence that lazily traverses the children of dir using repeated calls to list. If none of dir's children are directories this returns the same elements as list.

The returned sequence visits the tree of files in depth-first order. Parent paths are returned before their children.

Note that listRecursively does not throw exceptions but the returned sequence does. When it is iterated, the returned sequence throws a FileNotFoundException if dir does not exist, or an IOException if dir cannot be listed.

Parameters

followSymlinks

true to follow symlinks while traversing the children. If dir itself is a symlink it will be followed even if this parameter is false.

actual open fun listRecursively(dir: Path, followSymlinks: Boolean): Sequence<Path>
actual open fun listRecursively(dir: Path, followSymlinks: Boolean): Sequence<Path>
actual open fun listRecursively(dir: Path, followSymlinks: Boolean): Sequence<Path>
actual open fun listRecursively(dir: Path, followSymlinks: Boolean): Sequence<Path>
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/list.html b/3.x/okio/okio/okio/-file-system/list.html new file mode 100644 index 0000000000..c61f16e61a --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/list.html @@ -0,0 +1,88 @@ + + + + + list + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

list

+
+
+
+
expect abstract fun list(dir: Path): List<Path>

Returns the children of dir. The returned list is sorted using natural ordering. If dir is a relative path, the returned elements will also be relative paths. If it is an absolute path, the returned elements will also be absolute paths.

Note that a path does not need to be a directory for this function to return successfully. For example, mounted storage devices may have child files but do not identify themselves as directories.

Throws

if dir does not exist or cannot be listed. A path cannot be listed if the current process doesn't have access to dir, or if there's a loop of symbolic links, or if any name is too long.

actual abstract fun list(dir: Path): List<Path>
actual abstract fun list(dir: Path): List<Path>
actual abstract fun list(dir: Path): List<Path>
actual abstract fun list(dir: Path): List<Path>
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/metadata-or-null.html b/3.x/okio/okio/okio/-file-system/metadata-or-null.html new file mode 100644 index 0000000000..6955c56f6e --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/metadata-or-null.html @@ -0,0 +1,88 @@ + + + + + metadataOrNull + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

metadataOrNull

+
+
+
+
expect abstract fun metadataOrNull(path: Path): FileMetadata?

Returns metadata of the file, directory, or object identified by path. This returns null if there is no file at path.

Throws

if path cannot be accessed due to a connectivity problem, permissions problem, or other issue.

actual abstract fun metadataOrNull(path: Path): FileMetadata?
actual abstract fun metadataOrNull(path: Path): FileMetadata?
actual abstract fun metadataOrNull(path: Path): FileMetadata?
actual abstract fun metadataOrNull(path: Path): FileMetadata?
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/metadata.html b/3.x/okio/okio/okio/-file-system/metadata.html new file mode 100644 index 0000000000..56cbda59a8 --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/metadata.html @@ -0,0 +1,88 @@ + + + + + metadata + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

metadata

+
+
+
+
expect fun metadata(path: Path): FileMetadata

Returns metadata of the file, directory, or object identified by path.

Throws

if path does not exist or its metadata cannot be read.

actual fun metadata(path: Path): FileMetadata
actual fun metadata(path: Path): FileMetadata
actual fun metadata(path: Path): FileMetadata
actual fun metadata(path: Path): FileMetadata
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/open-read-only.html b/3.x/okio/okio/okio/-file-system/open-read-only.html new file mode 100644 index 0000000000..edd1e98cd5 --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/open-read-only.html @@ -0,0 +1,88 @@ + + + + + openReadOnly + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

openReadOnly

+
+
+
+
expect abstract fun openReadOnly(file: Path): FileHandle

Returns a handle to read file. This will fail if the file doesn't already exist.

Throws

if file does not exist, is not a file, or cannot be accessed. A file cannot be accessed if the current process doesn't have sufficient permissions for file, if there's a loop of symbolic links, or if any name is too long.

actual abstract fun openReadOnly(file: Path): FileHandle
actual abstract fun openReadOnly(file: Path): FileHandle
actual abstract fun openReadOnly(file: Path): FileHandle
actual abstract fun openReadOnly(file: Path): FileHandle
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/open-read-write.html b/3.x/okio/okio/okio/-file-system/open-read-write.html new file mode 100644 index 0000000000..18f66b8e09 --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/open-read-write.html @@ -0,0 +1,88 @@ + + + + + openReadWrite + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

openReadWrite

+
+
+
+
expect abstract fun openReadWrite(file: Path, mustCreate: Boolean = false, mustExist: Boolean = false): FileHandle

Returns a handle to read and write file. This will create the file if it doesn't already exist.

Parameters

mustCreate

true to throw an IOException instead of overwriting an existing file. This is equivalent to O_EXCL on POSIX and CREATE_NEW on Windows.

mustExist

true to throw an IOException instead of creating a new file. This is equivalent to r+ on POSIX and OPEN_EXISTING on Windows.

Throws

if file is not a file, or cannot be accessed. A file cannot be accessed if the current process doesn't have sufficient reading and writing permissions for file, if there's a loop of symbolic links, or if any name is too long.

actual abstract fun openReadWrite(file: Path, mustCreate: Boolean, mustExist: Boolean): FileHandle
fun openReadWrite(file: Path): FileHandle
actual abstract fun openReadWrite(file: Path, mustCreate: Boolean, mustExist: Boolean): FileHandle
actual abstract fun openReadWrite(file: Path, mustCreate: Boolean, mustExist: Boolean): FileHandle
actual abstract fun openReadWrite(file: Path, mustCreate: Boolean, mustExist: Boolean): FileHandle
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/read.html b/3.x/okio/okio/okio/-file-system/read.html new file mode 100644 index 0000000000..dc196d97ae --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/read.html @@ -0,0 +1,88 @@ + + + + + read + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

read

+
+
+
+
expect inline fun <T> read(file: Path, readerAction: BufferedSource.() -> T): T

Creates a source to read file, executes readerAction to read it, and then closes the source. This is a compact way to read the contents of a file.

actual inline fun <T> read(file: Path, readerAction: BufferedSource.() -> T): T
@JvmName(name = "-read")
actual inline fun <T> read(file: Path, readerAction: BufferedSource.() -> T): T
actual inline fun <T> read(file: Path, readerAction: BufferedSource.() -> T): T
actual inline fun <T> read(file: Path, readerAction: BufferedSource.() -> T): T
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/sink.html b/3.x/okio/okio/okio/-file-system/sink.html new file mode 100644 index 0000000000..f131848a7f --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/sink.html @@ -0,0 +1,88 @@ + + + + + sink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sink

+
+
+
+
expect abstract fun sink(file: Path, mustCreate: Boolean = false): Sink

Returns a sink that writes bytes to file from beginning to end. If file already exists it will be replaced with the new data.

Parameters

mustCreate

true to throw an IOException instead of overwriting an existing file. This is equivalent to O_EXCL on POSIX and CREATE_NEW on Windows.

Throws

if file cannot be written. A file cannot be written if its enclosing directory does not exist, if the current process doesn't have access to file, if there's a loop of symbolic links, or if any name is too long.

actual abstract fun sink(file: Path, mustCreate: Boolean): Sink
fun sink(file: Path): Sink
actual abstract fun sink(file: Path, mustCreate: Boolean): Sink
actual abstract fun sink(file: Path, mustCreate: Boolean): Sink
actual abstract fun sink(file: Path, mustCreate: Boolean): Sink
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/source.html b/3.x/okio/okio/okio/-file-system/source.html new file mode 100644 index 0000000000..2df557119d --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/source.html @@ -0,0 +1,88 @@ + + + + + source + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

source

+
+
+
+
expect abstract fun source(file: Path): Source

Returns a source that reads the bytes of file from beginning to end.

Throws

if file does not exist, is not a file, or cannot be read. A file cannot be read if the current process doesn't have access to file, if there's a loop of symbolic links, or if any name is too long.

actual abstract fun source(file: Path): Source
actual abstract fun source(file: Path): Source
actual abstract fun source(file: Path): Source
actual abstract fun source(file: Path): Source
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-file-system/write.html b/3.x/okio/okio/okio/-file-system/write.html new file mode 100644 index 0000000000..abfb934a3e --- /dev/null +++ b/3.x/okio/okio/okio/-file-system/write.html @@ -0,0 +1,88 @@ + + + + + write + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

write

+
+
+
+
expect inline fun <T> write(file: Path, mustCreate: Boolean = false, writerAction: BufferedSink.() -> T): T

Creates a sink to write file, executes writerAction to write it, and then closes the sink. This is a compact way to write a file.

Parameters

mustCreate

true to throw an IOException instead of overwriting an existing file. This is equivalent to O_EXCL on POSIX and CREATE_NEW on Windows.

actual inline fun <T> write(file: Path, mustCreate: Boolean, writerAction: BufferedSink.() -> T): T
@JvmName(name = "-write")
actual inline fun <T> write(file: Path, mustCreate: Boolean, writerAction: BufferedSink.() -> T): T
actual inline fun <T> write(file: Path, mustCreate: Boolean, writerAction: BufferedSink.() -> T): T
actual inline fun <T> write(file: Path, mustCreate: Boolean, writerAction: BufferedSink.() -> T): T
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/-forwarding-file-system.html b/3.x/okio/okio/okio/-forwarding-file-system/-forwarding-file-system.html new file mode 100644 index 0000000000..cdbef69387 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/-forwarding-file-system.html @@ -0,0 +1,84 @@ + + + + + ForwardingFileSystem + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

ForwardingFileSystem

+
+
+
+
constructor(delegate: FileSystem)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/appending-sink.html b/3.x/okio/okio/okio/-forwarding-file-system/appending-sink.html new file mode 100644 index 0000000000..d273548056 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/appending-sink.html @@ -0,0 +1,84 @@ + + + + + appendingSink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

appendingSink

+
+
+
+
open override fun appendingSink(file: Path, mustExist: Boolean): Sink

Returns a sink that appends bytes to the end of file, creating it if it doesn't already exist.

Parameters

mustExist

true to throw an IOException instead of creating a new file. This is equivalent to r+ on POSIX and OPEN_EXISTING on Windows.

Throws

if file cannot be written. A file cannot be written if its enclosing directory does not exist, if the current process doesn't have access to file, if there's a loop of symbolic links, or if any name is too long.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/atomic-move.html b/3.x/okio/okio/okio/-forwarding-file-system/atomic-move.html new file mode 100644 index 0000000000..d9cea471da --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/atomic-move.html @@ -0,0 +1,84 @@ + + + + + atomicMove + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

atomicMove

+
+
+
+
open override fun atomicMove(source: Path, target: Path)

Moves source to target in-place if the underlying file system supports it. If target exists, it is first removed. If source == target, this operation does nothing. This may be used to move a file or a directory.

Only as Atomic as the Underlying File System Supports

FAT and NTFS file systems cannot atomically move a file over an existing file. If the target file already exists, the move is performed into two steps:

  1. Atomically delete the target file.

  2. Atomically rename the source file to the target file.

The delete step and move step are each atomic but not atomic in aggregate! If this process crashes, the host operating system crashes, or the hardware fails it is possible that the delete step will succeed and the rename will not.

Entire-file or nothing

These are the possible results of this operation:

  • This operation returns normally, the source file is absent, and the target file contains the data previously held by the source file. This is the success case.

  • The operation throws an IOException and the file system is unchanged. For example, this occurs if this process lacks permissions to perform the move.

  • This operation throws an IOException, the target file is deleted, but the source file is unchanged. This is the partial failure case described above and is only possible on file systems like FAT and NTFS that do not support atomic file replacement. Typically in such cases this operation won't return at all because the process or operating system has also crashed.

There is no failure mode where the target file holds a subset of the bytes of the source file. If the rename step cannot be performed atomically, this function will throw an IOException before attempting a move. Typically this occurs if the source and target files are on different physical volumes.

Non-Atomic Moves

If you need to move files across volumes, use copy followed by delete, and change your application logic to recover should the copy step suffer a partial failure.

Throws

if the move cannot be performed, or cannot be performed atomically. Moves fail if the source doesn't exist, if the target is not writable, if the target already exists and cannot be replaced, or if the move would cause physical or quota limits to be exceeded. This list of potential problems is not exhaustive.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/canonicalize.html b/3.x/okio/okio/okio/-forwarding-file-system/canonicalize.html new file mode 100644 index 0000000000..c1df8d1d79 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/canonicalize.html @@ -0,0 +1,84 @@ + + + + + canonicalize + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

canonicalize

+
+
+
+
open override fun canonicalize(path: Path): Path

Resolves path against the current working directory and symlinks in this file system. The returned path identifies the same file as path, but with an absolute path that does not include any symbolic links.

This is similar to File.getCanonicalFile() on the JVM and realpath on POSIX. Unlike File.getCanonicalFile(), this throws if the file doesn't exist.

Throws

if path cannot be resolved. This will occur if the file doesn't exist, if the current working directory doesn't exist or is inaccessible, or if another failure occurs while resolving the path.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/close.html b/3.x/okio/okio/okio/-forwarding-file-system/close.html new file mode 100644 index 0000000000..11df748dcd --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/close.html @@ -0,0 +1,84 @@ + + + + + close + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

close

+
+
+
+
open override fun close()

Closes this object and releases the resources it holds. It is an error to use an object after it has been closed. It is safe to close an object more than once.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/create-directory.html b/3.x/okio/okio/okio/-forwarding-file-system/create-directory.html new file mode 100644 index 0000000000..3c516793cf --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/create-directory.html @@ -0,0 +1,84 @@ + + + + + createDirectory + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

createDirectory

+
+
+
+
open override fun createDirectory(dir: Path, mustCreate: Boolean)

Creates a directory at the path identified by dir.

Parameters

mustCreate

true to throw an IOException if the directory already exists.

Throws

if dir's parent does not exist, is not a directory, or cannot be written. A directory cannot be created if the current process doesn't have access, if there's a loop of symbolic links, or if any name is too long.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/create-symlink.html b/3.x/okio/okio/okio/-forwarding-file-system/create-symlink.html new file mode 100644 index 0000000000..a43dd183cb --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/create-symlink.html @@ -0,0 +1,84 @@ + + + + + createSymlink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

createSymlink

+
+
+
+
open override fun createSymlink(source: Path, target: Path)

Creates a symbolic link at source that resolves to target. If target is a relative path, it is relative to source.parent.

Throws

if source cannot be created. This may be because it already exists or because its storage doesn't support symlinks. This list of potential problems is not exhaustive.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/delegate.html b/3.x/okio/okio/okio/-forwarding-file-system/delegate.html new file mode 100644 index 0000000000..8b6991f950 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/delegate.html @@ -0,0 +1,84 @@ + + + + + delegate + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

delegate

+
+
+
+
@get:JvmName(name = "delegate")
val delegate: FileSystem

FileSystem to which this instance is delegating.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/delete.html b/3.x/okio/okio/okio/-forwarding-file-system/delete.html new file mode 100644 index 0000000000..00289370ab --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/delete.html @@ -0,0 +1,84 @@ + + + + + delete + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

delete

+
+
+
+
open override fun delete(path: Path, mustExist: Boolean)

Deletes the file or directory at path.

Parameters

mustExist

true to throw an IOException if there is nothing at path to delete.

Throws

if there is a file or directory but it could not be deleted. Deletes fail if the current process doesn't have access, if the file system is readonly, or if path is a non-empty directory. This list of potential problems is not exhaustive.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/index.html b/3.x/okio/okio/okio/-forwarding-file-system/index.html new file mode 100644 index 0000000000..c56ab6d9ad --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/index.html @@ -0,0 +1,578 @@ + + + + + ForwardingFileSystem + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

ForwardingFileSystem

+
+
+
abstract class ForwardingFileSystem(val delegate: FileSystem) : FileSystem

A FileSystem that forwards calls to another, intended for subclassing.

Fault Injection

You can use this to deterministically trigger file system failures in tests. This is useful to confirm that your program behaves correctly even if its file system operations fail. For example, this subclass fails every access of files named unlucky.txt:

val faultyFileSystem = object : ForwardingFileSystem(FileSystem.SYSTEM) {
override fun onPathParameter(path: Path, functionName: String, parameterName: String): Path {
if (path.name == "unlucky.txt") throw IOException("synthetic failure!")
return path
}
}

You can fail specific operations by overriding them directly:

val faultyFileSystem = object : ForwardingFileSystem(FileSystem.SYSTEM) {
override fun delete(path: Path) {
throw IOException("synthetic failure!")
}
}

Observability

You can extend this to verify which files your program accesses. This is a testing file system that records accesses as they happen:

class LoggingFileSystem : ForwardingFileSystem(FileSystem.SYSTEM) {
val log = mutableListOf<String>()

override fun onPathParameter(path: Path, functionName: String, parameterName: String): Path {
log += "$functionName($parameterName=$path)"
return path
}
}

This makes it easy for tests to assert exactly which files were accessed.

@Test
fun testMergeJsonReports() {
createSampleJsonReports()
loggingFileSystem.log.clear()

mergeJsonReports()

assertThat(loggingFileSystem.log).containsExactly(
"list(dir=json_reports)",
"source(file=json_reports/2020-10.json)",
"source(file=json_reports/2020-12.json)",
"source(file=json_reports/2020-11.json)",
"sink(file=json_reports/2020-all.json)"
)
}

Transformations

Subclasses can transform file names and content.

For example, your program may be written to operate on a well-known directory like /etc/ or /System. You can rewrite paths to make such operations safer to test.

You may also transform file content to apply application-layer encryption or compression. This is particularly useful in situations where it's difficult or impossible to enable those features in the underlying file system.

Abstract Functions Only

Some file system functions like copy are implemented by using other features. These are the non-abstract functions in the FileSystem interface.

This class forwards only the abstract functions; non-abstract functions delegate to the other functions of this class. If desired, subclasses may override non-abstract functions to forward them.

Closeable

Closing this file system closes the delegate file system.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
constructor(delegate: FileSystem)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
@get:JvmName(name = "delegate")
val delegate: FileSystem

FileSystem to which this instance is delegating.

+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun appendingSink(file: Path, mustExist: Boolean): Sink

Returns a sink that appends bytes to the end of file, creating it if it doesn't already exist.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun atomicMove(source: Path, target: Path)

Moves source to target in-place if the underlying file system supports it. If target exists, it is first removed. If source == target, this operation does nothing. This may be used to move a file or a directory.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun canonicalize(path: Path): Path

Resolves path against the current working directory and symlinks in this file system. The returned path identifies the same file as path, but with an absolute path that does not include any symbolic links.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun close()

Closes this object and releases the resources it holds. It is an error to use an object after it has been closed. It is safe to close an object more than once.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open fun copy(source: Path, target: Path)

Copies all the bytes from the file at source to the file at target. This does not copy file metadata like last modified time, permissions, or extended attributes.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun createDirectories(dir: Path, mustCreate: Boolean = false)

Creates a directory at the path identified by dir, and any enclosing parent path directories, recursively.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun createDirectory(dir: Path, mustCreate: Boolean)

Creates a directory at the path identified by dir.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun createSymlink(source: Path, target: Path)

Creates a symbolic link at source that resolves to target. If target is a relative path, it is relative to source.parent.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun delete(path: Path, mustExist: Boolean)

Deletes the file or directory at path.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open fun deleteRecursively(fileOrDirectory: Path, mustExist: Boolean = false)

Recursively deletes all children of fileOrDirectory if it is a directory, then deletes fileOrDirectory itself.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun exists(path: Path): Boolean

Returns true if path identifies an object on this file system.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun list(dir: Path): List<Path>

Returns the children of dir. The returned list is sorted using natural ordering. If dir is a relative path, the returned elements will also be relative paths. If it is an absolute path, the returned elements will also be absolute paths.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun listOrNull(dir: Path): List<Path>?

Returns the children of the directory identified by dir. The returned list is sorted using natural ordering. If dir is a relative path, the returned elements will also be relative paths. If it is an absolute path, the returned elements will also be absolute paths.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun listRecursively(dir: Path, followSymlinks: Boolean): Sequence<Path>

Returns a sequence that lazily traverses the children of dir using repeated calls to list. If none of dir's children are directories this returns the same elements as list.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun metadata(path: Path): FileMetadata

Returns metadata of the file, directory, or object identified by path.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun metadataOrNull(path: Path): FileMetadata?

Returns metadata of the file, directory, or object identified by path. This returns null if there is no file at path.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open fun onPathParameter(path: Path, functionName: String, parameterName: String): Path

Invoked each time a path is passed as a parameter to this file system. This returns the path to pass to delegate, which should be path itself or a path on delegate that corresponds to it.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open fun onPathResult(path: Path, functionName: String): Path

Invoked each time a path is returned by delegate. This returns the path to return to the caller, which should be path itself or a path on this that corresponds to it.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun openReadOnly(file: Path): FileHandle

Returns a handle to read file. This will fail if the file doesn't already exist.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun openReadWrite(file: Path, mustCreate: Boolean, mustExist: Boolean): FileHandle

Returns a handle to read and write file. This will create the file if it doesn't already exist.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun FileSystem.openZip(zipPath: Path): FileSystem

Returns a new read-only file system.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect inline fun <T> read(file: Path, readerAction: BufferedSource.() -> T): T

Creates a source to read file, executes readerAction to read it, and then closes the source. This is a compact way to read the contents of a file.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun sink(file: Path, mustCreate: Boolean): Sink

Returns a sink that writes bytes to file from beginning to end. If file already exists it will be replaced with the new data.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun source(file: Path): Source

Returns a source that reads the bytes of file from beginning to end.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun toString(): String
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect inline fun <T> write(file: Path, mustCreate: Boolean = false, writerAction: BufferedSink.() -> T): T

Creates a sink to write file, executes writerAction to write it, and then closes the sink. This is a compact way to write a file.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/list-or-null.html b/3.x/okio/okio/okio/-forwarding-file-system/list-or-null.html new file mode 100644 index 0000000000..082a661855 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/list-or-null.html @@ -0,0 +1,84 @@ + + + + + listOrNull + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

listOrNull

+
+
+
+
open override fun listOrNull(dir: Path): List<Path>?

Returns the children of the directory identified by dir. The returned list is sorted using natural ordering. If dir is a relative path, the returned elements will also be relative paths. If it is an absolute path, the returned elements will also be absolute paths.

This returns null if dir does not exist or cannot be listed. A directory cannot be listed if the current process doesn't have access to dir, or if there's a loop of symbolic links, or if any name is too long.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/list-recursively.html b/3.x/okio/okio/okio/-forwarding-file-system/list-recursively.html new file mode 100644 index 0000000000..8e72133da9 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/list-recursively.html @@ -0,0 +1,84 @@ + + + + + listRecursively + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

listRecursively

+
+
+
+
open override fun listRecursively(dir: Path, followSymlinks: Boolean): Sequence<Path>

Returns a sequence that lazily traverses the children of dir using repeated calls to list. If none of dir's children are directories this returns the same elements as list.

The returned sequence visits the tree of files in depth-first order. Parent paths are returned before their children.

Note that listRecursively does not throw exceptions but the returned sequence does. When it is iterated, the returned sequence throws a FileNotFoundException if dir does not exist, or an IOException if dir cannot be listed.

Parameters

followSymlinks

true to follow symlinks while traversing the children. If dir itself is a symlink it will be followed even if this parameter is false.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/list.html b/3.x/okio/okio/okio/-forwarding-file-system/list.html new file mode 100644 index 0000000000..415d07e509 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/list.html @@ -0,0 +1,84 @@ + + + + + list + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

list

+
+
+
+
open override fun list(dir: Path): List<Path>

Returns the children of dir. The returned list is sorted using natural ordering. If dir is a relative path, the returned elements will also be relative paths. If it is an absolute path, the returned elements will also be absolute paths.

Note that a path does not need to be a directory for this function to return successfully. For example, mounted storage devices may have child files but do not identify themselves as directories.

Throws

if dir does not exist or cannot be listed. A path cannot be listed if the current process doesn't have access to dir, or if there's a loop of symbolic links, or if any name is too long.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/metadata-or-null.html b/3.x/okio/okio/okio/-forwarding-file-system/metadata-or-null.html new file mode 100644 index 0000000000..934dc6b227 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/metadata-or-null.html @@ -0,0 +1,84 @@ + + + + + metadataOrNull + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

metadataOrNull

+
+
+
+
open override fun metadataOrNull(path: Path): FileMetadata?

Returns metadata of the file, directory, or object identified by path. This returns null if there is no file at path.

Throws

if path cannot be accessed due to a connectivity problem, permissions problem, or other issue.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/on-path-parameter.html b/3.x/okio/okio/okio/-forwarding-file-system/on-path-parameter.html new file mode 100644 index 0000000000..10b17973c8 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/on-path-parameter.html @@ -0,0 +1,84 @@ + + + + + onPathParameter + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

onPathParameter

+
+
+
+
open fun onPathParameter(path: Path, functionName: String, parameterName: String): Path

Invoked each time a path is passed as a parameter to this file system. This returns the path to pass to delegate, which should be path itself or a path on delegate that corresponds to it.

Subclasses may override this to log accesses, fail on unexpected accesses, or map paths across file systems.

The base implementation returns path.

Note that this function will be called twice for calls to atomicMove; once for the source file and once for the target file.

Return

the path to pass to delegate for the same parameter.

Parameters

path

the path passed to any of the functions of this.

functionName

a string like "canonicalize", "metadataOrNull", or "appendingSink".

parameterName

a string like "path", "file", "source", or "target".

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/on-path-result.html b/3.x/okio/okio/okio/-forwarding-file-system/on-path-result.html new file mode 100644 index 0000000000..487928d017 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/on-path-result.html @@ -0,0 +1,84 @@ + + + + + onPathResult + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

onPathResult

+
+
+
+
open fun onPathResult(path: Path, functionName: String): Path

Invoked each time a path is returned by delegate. This returns the path to return to the caller, which should be path itself or a path on this that corresponds to it.

Subclasses may override this to log accesses, fail on unexpected path accesses, or map directories or path names.

The base implementation returns path.

Return

the path to return to the caller.

Parameters

path

the path returned by any of the functions of this.

functionName

a string like "canonicalize" or "list".

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/open-read-only.html b/3.x/okio/okio/okio/-forwarding-file-system/open-read-only.html new file mode 100644 index 0000000000..c3dc308a87 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/open-read-only.html @@ -0,0 +1,84 @@ + + + + + openReadOnly + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

openReadOnly

+
+
+
+
open override fun openReadOnly(file: Path): FileHandle

Returns a handle to read file. This will fail if the file doesn't already exist.

Throws

if file does not exist, is not a file, or cannot be accessed. A file cannot be accessed if the current process doesn't have sufficient permissions for file, if there's a loop of symbolic links, or if any name is too long.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/open-read-write.html b/3.x/okio/okio/okio/-forwarding-file-system/open-read-write.html new file mode 100644 index 0000000000..7b01cfdecd --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/open-read-write.html @@ -0,0 +1,84 @@ + + + + + openReadWrite + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

openReadWrite

+
+
+
+
open override fun openReadWrite(file: Path, mustCreate: Boolean, mustExist: Boolean): FileHandle

Returns a handle to read and write file. This will create the file if it doesn't already exist.

Parameters

mustCreate

true to throw an IOException instead of overwriting an existing file. This is equivalent to O_EXCL on POSIX and CREATE_NEW on Windows.

mustExist

true to throw an IOException instead of creating a new file. This is equivalent to r+ on POSIX and OPEN_EXISTING on Windows.

Throws

if file is not a file, or cannot be accessed. A file cannot be accessed if the current process doesn't have sufficient reading and writing permissions for file, if there's a loop of symbolic links, or if any name is too long.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/sink.html b/3.x/okio/okio/okio/-forwarding-file-system/sink.html new file mode 100644 index 0000000000..866d5db45f --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/sink.html @@ -0,0 +1,84 @@ + + + + + sink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sink

+
+
+
+
open override fun sink(file: Path, mustCreate: Boolean): Sink

Returns a sink that writes bytes to file from beginning to end. If file already exists it will be replaced with the new data.

Parameters

mustCreate

true to throw an IOException instead of overwriting an existing file. This is equivalent to O_EXCL on POSIX and CREATE_NEW on Windows.

Throws

if file cannot be written. A file cannot be written if its enclosing directory does not exist, if the current process doesn't have access to file, if there's a loop of symbolic links, or if any name is too long.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/source.html b/3.x/okio/okio/okio/-forwarding-file-system/source.html new file mode 100644 index 0000000000..7de65e4bc4 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/source.html @@ -0,0 +1,84 @@ + + + + + source + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

source

+
+
+
+
open override fun source(file: Path): Source

Returns a source that reads the bytes of file from beginning to end.

Throws

if file does not exist, is not a file, or cannot be read. A file cannot be read if the current process doesn't have access to file, if there's a loop of symbolic links, or if any name is too long.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-file-system/to-string.html b/3.x/okio/okio/okio/-forwarding-file-system/to-string.html new file mode 100644 index 0000000000..a6afd16dba --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-file-system/to-string.html @@ -0,0 +1,84 @@ + + + + + toString + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toString

+
+
+
+
open override fun toString(): String
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-sink/-forwarding-sink.html b/3.x/okio/okio/okio/-forwarding-sink/-forwarding-sink.html new file mode 100644 index 0000000000..1618a993d2 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-sink/-forwarding-sink.html @@ -0,0 +1,84 @@ + + + + + ForwardingSink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

ForwardingSink

+
+
+
+
constructor(delegate: Sink)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-sink/close.html b/3.x/okio/okio/okio/-forwarding-sink/close.html new file mode 100644 index 0000000000..b1d1129715 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-sink/close.html @@ -0,0 +1,84 @@ + + + + + close + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

close

+
+
+
+
open override fun close()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-sink/delegate.html b/3.x/okio/okio/okio/-forwarding-sink/delegate.html new file mode 100644 index 0000000000..7f81ee0a32 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-sink/delegate.html @@ -0,0 +1,84 @@ + + + + + delegate + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

delegate

+
+
+
+
@get:JvmName(name = "delegate")
val delegate: Sink

Sink to which this instance is delegating.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-sink/flush.html b/3.x/okio/okio/okio/-forwarding-sink/flush.html new file mode 100644 index 0000000000..5bd7051139 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-sink/flush.html @@ -0,0 +1,84 @@ + + + + + flush + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

flush

+
+
+
+
open override fun flush()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-sink/index.html b/3.x/okio/okio/okio/-forwarding-sink/index.html new file mode 100644 index 0000000000..58ae812c78 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-sink/index.html @@ -0,0 +1,307 @@ + + + + + ForwardingSink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

ForwardingSink

+
+
+
abstract class ForwardingSink(val delegate: Sink) : Sink

A Sink which forwards calls to another. Useful for subclassing.

Inheritors

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
constructor(delegate: Sink)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
@get:JvmName(name = "delegate")
val delegate: Sink

Sink to which this instance is delegating.

+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a new sink that buffers writes to sink. The returned sink will batch writes to sink. Use this wherever you write to a sink to get an ergonomic and efficient access to data.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that uses cipher to encrypt or decrypt this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun close()
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Sink.deflate(deflater: Deflater = Deflater()): DeflaterSink

Returns an DeflaterSink that DEFLATE-compresses data to this Sink while writing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun flush()
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Sink.gzip(): GzipSink

Returns a GzipSink that gzip-compresses to this Sink while writing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that uses digest to hash this.

Returns a sink that uses mac to hash this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun timeout(): Timeout
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun toString(): String
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun write(source: Buffer, byteCount: Long)
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-sink/timeout.html b/3.x/okio/okio/okio/-forwarding-sink/timeout.html new file mode 100644 index 0000000000..5e84505485 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-sink/timeout.html @@ -0,0 +1,84 @@ + + + + + timeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

timeout

+
+
+
+
open override fun timeout(): Timeout
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-sink/to-string.html b/3.x/okio/okio/okio/-forwarding-sink/to-string.html new file mode 100644 index 0000000000..140cedc8de --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-sink/to-string.html @@ -0,0 +1,84 @@ + + + + + toString + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toString

+
+
+
+
open override fun toString(): String
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-sink/write.html b/3.x/okio/okio/okio/-forwarding-sink/write.html new file mode 100644 index 0000000000..c070d5dc0f --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-sink/write.html @@ -0,0 +1,84 @@ + + + + + write + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

write

+
+
+
+
open override fun write(source: Buffer, byteCount: Long)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-source/-forwarding-source.html b/3.x/okio/okio/okio/-forwarding-source/-forwarding-source.html new file mode 100644 index 0000000000..a139ba3637 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-source/-forwarding-source.html @@ -0,0 +1,86 @@ + + + + + ForwardingSource + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

ForwardingSource

+
+
+
+
expect constructor(delegate: Source)
actual constructor(delegate: Source)
actual constructor(delegate: Source)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-source/close.html b/3.x/okio/okio/okio/-forwarding-source/close.html new file mode 100644 index 0000000000..59ec7d1c84 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-source/close.html @@ -0,0 +1,86 @@ + + + + + close + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

close

+
+
+
+
expect open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

actual open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

actual open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-source/delegate.html b/3.x/okio/okio/okio/-forwarding-source/delegate.html new file mode 100644 index 0000000000..321cc92b38 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-source/delegate.html @@ -0,0 +1,86 @@ + + + + + delegate + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

delegate

+
+
+
+
expect val delegate: Source

Source to which this instance is delegating.

@get:JvmName(name = "delegate")
actual val delegate: Source
actual val delegate: Source
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-source/index.html b/3.x/okio/okio/okio/-forwarding-source/index.html new file mode 100644 index 0000000000..493e9ecc29 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-source/index.html @@ -0,0 +1,291 @@ + + + + + ForwardingSource + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

ForwardingSource

+
+
+
expect abstract class ForwardingSource(delegate: Source) : Source

A Source which forwards calls to another. Useful for subclassing.

actual abstract class ForwardingSource(val delegate: Source) : Source

Inheritors

actual abstract class ForwardingSource(val delegate: Source) : Source
+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect constructor(delegate: Source)
actual constructor(delegate: Source)
actual constructor(delegate: Source)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect val delegate: Source

Source to which this instance is delegating.

@get:JvmName(name = "delegate")
actual val delegate: Source
actual val delegate: Source
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a new source that buffers reads from source. The returned source will perform bulk reads into its in-memory buffer. Use this wherever you read a source to get an ergonomic and efficient access to data.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a source that uses cipher to encrypt or decrypt this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

actual open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

actual open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Source.gzip(): GzipSource

Returns a GzipSource that gzip-decompresses this Source while reading.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a source that uses digest to hash this.

Returns a source that uses mac to hash this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Source.inflate(inflater: Inflater = Inflater()): InflaterSource

Returns an InflaterSource that DEFLATE-decompresses this Source while reading.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

actual open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

actual open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun timeout(): Timeout

Returns the timeout for this source.

actual open override fun timeout(): Timeout

Returns the timeout for this source.

actual open override fun timeout(): Timeout

Returns the timeout for this source.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun toString(): String
actual open override fun toString(): String
actual open override fun toString(): String
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-source/read.html b/3.x/okio/okio/okio/-forwarding-source/read.html new file mode 100644 index 0000000000..38cf2e2d6a --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-source/read.html @@ -0,0 +1,86 @@ + + + + + read + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

read

+
+
+
+
expect open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

actual open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

actual open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-source/timeout.html b/3.x/okio/okio/okio/-forwarding-source/timeout.html new file mode 100644 index 0000000000..26d7dd8fd4 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-source/timeout.html @@ -0,0 +1,86 @@ + + + + + timeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

timeout

+
+
+
+
expect open override fun timeout(): Timeout

Returns the timeout for this source.

actual open override fun timeout(): Timeout

Returns the timeout for this source.

actual open override fun timeout(): Timeout

Returns the timeout for this source.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-source/to-string.html b/3.x/okio/okio/okio/-forwarding-source/to-string.html new file mode 100644 index 0000000000..3fb8deca43 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-source/to-string.html @@ -0,0 +1,86 @@ + + + + + toString + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toString

+
+
+
+
expect open override fun toString(): String
actual open override fun toString(): String
actual open override fun toString(): String
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-timeout/-forwarding-timeout.html b/3.x/okio/okio/okio/-forwarding-timeout/-forwarding-timeout.html new file mode 100644 index 0000000000..5947249e99 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-timeout/-forwarding-timeout.html @@ -0,0 +1,84 @@ + + + + + ForwardingTimeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

ForwardingTimeout

+
+
+
+
constructor(delegate: Timeout)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-timeout/await-signal.html b/3.x/okio/okio/okio/-forwarding-timeout/await-signal.html new file mode 100644 index 0000000000..fc8f906551 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-timeout/await-signal.html @@ -0,0 +1,84 @@ + + + + + awaitSignal + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

awaitSignal

+
+
+
+
open override fun awaitSignal(condition: Condition)

Waits on monitor until it is signaled. Throws InterruptedIOException if either the thread is interrupted or if this timeout elapses before monitor is signaled. The caller must hold the lock that monitor is bound to.

Here's a sample class that uses awaitSignal() to await a specific state. Note that the call is made within a loop to avoid unnecessary waiting and to mitigate spurious notifications.

class Dice {
Random random = new Random();
int latestTotal;

ReentrantLock lock = new ReentrantLock();
Condition condition = lock.newCondition();

public void roll() {
lock.withLock {
latestTotal = 2 + random.nextInt(6) + random.nextInt(6);
System.out.println("Rolled " + latestTotal);
condition.signalAll();
}
}

public void rollAtFixedRate(int period, TimeUnit timeUnit) {
Executors.newScheduledThreadPool(0).scheduleAtFixedRate(new Runnable() {
public void run() {
roll();
}
}, 0, period, timeUnit);
}

public void awaitTotal(Timeout timeout, int total)
throws InterruptedIOException {
lock.withLock {
while (latestTotal != total) {
timeout.awaitSignal(this);
}
}
}
}
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-timeout/cancel.html b/3.x/okio/okio/okio/-forwarding-timeout/cancel.html new file mode 100644 index 0000000000..69afebd4a2 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-timeout/cancel.html @@ -0,0 +1,84 @@ + + + + + cancel + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

cancel

+
+
+
+
open override fun cancel()

Prevent all current applications of this timeout from firing. Use this when a time-limited operation should no longer be time-limited because the nature of the operation has changed.

This function does not mutate the deadlineNanoTime or timeoutNanos properties of this timeout. It only applies to active operations that are limited by this timeout, and applies by allowing those operations to run indefinitely.

Subclasses that override this method must call super.cancel().

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-timeout/clear-deadline.html b/3.x/okio/okio/okio/-forwarding-timeout/clear-deadline.html new file mode 100644 index 0000000000..9eca1d800d --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-timeout/clear-deadline.html @@ -0,0 +1,84 @@ + + + + + clearDeadline + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

clearDeadline

+
+
+
+
open override fun clearDeadline(): Timeout

Clears the deadline.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-timeout/clear-timeout.html b/3.x/okio/okio/okio/-forwarding-timeout/clear-timeout.html new file mode 100644 index 0000000000..d4c7ec8216 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-timeout/clear-timeout.html @@ -0,0 +1,84 @@ + + + + + clearTimeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

clearTimeout

+
+
+
+
open override fun clearTimeout(): Timeout

Clears the timeout. Operating system timeouts may still apply.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-timeout/deadline-nano-time.html b/3.x/okio/okio/okio/-forwarding-timeout/deadline-nano-time.html new file mode 100644 index 0000000000..c0b9489c57 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-timeout/deadline-nano-time.html @@ -0,0 +1,84 @@ + + + + + deadlineNanoTime + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

deadlineNanoTime

+
+
+
+
open override fun deadlineNanoTime(): Long

Returns the nano time when the deadline will be reached.

Throws

if no deadline is set.


open override fun deadlineNanoTime(deadlineNanoTime: Long): Timeout

Sets the nano time when the deadline will be reached. All operations must complete before this time. Use a deadline to set a maximum bound on the time spent on a sequence of operations.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-timeout/delegate.html b/3.x/okio/okio/okio/-forwarding-timeout/delegate.html new file mode 100644 index 0000000000..b058f40e9e --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-timeout/delegate.html @@ -0,0 +1,84 @@ + + + + + delegate + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

delegate

+
+
+
+
@get:JvmName(name = "delegate")
var delegate: Timeout
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-timeout/has-deadline.html b/3.x/okio/okio/okio/-forwarding-timeout/has-deadline.html new file mode 100644 index 0000000000..8c5f1278d4 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-timeout/has-deadline.html @@ -0,0 +1,84 @@ + + + + + hasDeadline + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hasDeadline

+
+
+
+
open override fun hasDeadline(): Boolean

Returns true if a deadline is enabled.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-timeout/index.html b/3.x/okio/okio/okio/-forwarding-timeout/index.html new file mode 100644 index 0000000000..3ed819650a --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-timeout/index.html @@ -0,0 +1,373 @@ + + + + + ForwardingTimeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

ForwardingTimeout

+
+
+
open class ForwardingTimeout(var delegate: Timeout) : Timeout

A Timeout which forwards calls to another. Useful for subclassing.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
constructor(delegate: Timeout)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
@get:JvmName(name = "delegate")
var delegate: Timeout
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun awaitSignal(condition: Condition)

Waits on monitor until it is signaled. Throws InterruptedIOException if either the thread is interrupted or if this timeout elapses before monitor is signaled. The caller must hold the lock that monitor is bound to.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun cancel()

Prevent all current applications of this timeout from firing. Use this when a time-limited operation should no longer be time-limited because the nature of the operation has changed.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun clearDeadline(): Timeout

Clears the deadline.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun clearTimeout(): Timeout

Clears the timeout. Operating system timeouts may still apply.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun deadline(duration: Long, unit: TimeUnit): Timeout

Set a deadline of now plus duration time.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun deadlineNanoTime(): Long

Returns the nano time when the deadline will be reached.

open override fun deadlineNanoTime(deadlineNanoTime: Long): Timeout

Sets the nano time when the deadline will be reached. All operations must complete before this time. Use a deadline to set a maximum bound on the time spent on a sequence of operations.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun hasDeadline(): Boolean

Returns true if a deadline is enabled.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun <T> intersectWith(other: Timeout, block: () -> T): T

Applies the minimum intersection between this timeout and other, run block, then finally rollback this timeout's values.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun throwIfReached()

Throws an InterruptedIOException if the deadline has been reached or if the current thread has been interrupted. This method doesn't detect timeouts; that should be implemented to asynchronously abort an in-progress operation.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun timeout(timeout: Long, unit: TimeUnit): Timeout

Wait at most timeout time before aborting an operation. Using a per-operation timeout means that as long as forward progress is being made, no sequence of operations will fail.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun Timeout.timeout(timeout: Long, unit: DurationUnit): Timeout
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun timeoutNanos(): Long

Returns the timeout in nanoseconds, or 0 for no timeout.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun waitUntilNotified(monitor: Any)

Waits on monitor until it is notified. Throws InterruptedIOException if either the thread is interrupted or if this timeout elapses before monitor is notified. The caller must be synchronized on monitor.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-timeout/set-delegate.html b/3.x/okio/okio/okio/-forwarding-timeout/set-delegate.html new file mode 100644 index 0000000000..cc544468b5 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-timeout/set-delegate.html @@ -0,0 +1,84 @@ + + + + + setDelegate + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

setDelegate

+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-timeout/throw-if-reached.html b/3.x/okio/okio/okio/-forwarding-timeout/throw-if-reached.html new file mode 100644 index 0000000000..183607d31b --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-timeout/throw-if-reached.html @@ -0,0 +1,84 @@ + + + + + throwIfReached + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

throwIfReached

+
+
+
+
open override fun throwIfReached()

Throws an InterruptedIOException if the deadline has been reached or if the current thread has been interrupted. This method doesn't detect timeouts; that should be implemented to asynchronously abort an in-progress operation.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-timeout/timeout-nanos.html b/3.x/okio/okio/okio/-forwarding-timeout/timeout-nanos.html new file mode 100644 index 0000000000..58b7b56d94 --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-timeout/timeout-nanos.html @@ -0,0 +1,84 @@ + + + + + timeoutNanos + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

timeoutNanos

+
+
+
+
open override fun timeoutNanos(): Long

Returns the timeout in nanoseconds, or 0 for no timeout.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-timeout/timeout.html b/3.x/okio/okio/okio/-forwarding-timeout/timeout.html new file mode 100644 index 0000000000..860003facf --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-timeout/timeout.html @@ -0,0 +1,84 @@ + + + + + timeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

timeout

+
+
+
+
open override fun timeout(timeout: Long, unit: TimeUnit): Timeout

Wait at most timeout time before aborting an operation. Using a per-operation timeout means that as long as forward progress is being made, no sequence of operations will fail.

If timeout == 0, operations will run indefinitely. (Operating system timeouts may still apply.)

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-forwarding-timeout/wait-until-notified.html b/3.x/okio/okio/okio/-forwarding-timeout/wait-until-notified.html new file mode 100644 index 0000000000..facd815ebc --- /dev/null +++ b/3.x/okio/okio/okio/-forwarding-timeout/wait-until-notified.html @@ -0,0 +1,84 @@ + + + + + waitUntilNotified + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

waitUntilNotified

+
+
+
+
open override fun waitUntilNotified(monitor: Any)

Waits on monitor until it is notified. Throws InterruptedIOException if either the thread is interrupted or if this timeout elapses before monitor is notified. The caller must be synchronized on monitor.

Here's a sample class that uses waitUntilNotified() to await a specific state. Note that the call is made within a loop to avoid unnecessary waiting and to mitigate spurious notifications.

class Dice {
Random random = new Random();
int latestTotal;

public synchronized void roll() {
latestTotal = 2 + random.nextInt(6) + random.nextInt(6);
System.out.println("Rolled " + latestTotal);
notifyAll();
}

public void rollAtFixedRate(int period, TimeUnit timeUnit) {
Executors.newScheduledThreadPool(0).scheduleAtFixedRate(new Runnable() {
public void run() {
roll();
}
}, 0, period, timeUnit);
}

public synchronized void awaitTotal(Timeout timeout, int total)
throws InterruptedIOException {
while (latestTotal != total) {
timeout.waitUntilNotified(this);
}
}
}
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-gzip-sink/-gzip-sink.html b/3.x/okio/okio/okio/-gzip-sink/-gzip-sink.html new file mode 100644 index 0000000000..2a450544b1 --- /dev/null +++ b/3.x/okio/okio/okio/-gzip-sink/-gzip-sink.html @@ -0,0 +1,84 @@ + + + + + GzipSink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

GzipSink

+
+
+
+
constructor(sink: Sink)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-gzip-sink/close.html b/3.x/okio/okio/okio/-gzip-sink/close.html new file mode 100644 index 0000000000..042e6a7144 --- /dev/null +++ b/3.x/okio/okio/okio/-gzip-sink/close.html @@ -0,0 +1,84 @@ + + + + + close + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

close

+
+
+
+
open override fun close()

Pushes all buffered bytes to their final destination and releases the resources held by this sink. It is an error to write a closed sink. It is safe to close a sink more than once.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-gzip-sink/deflater.html b/3.x/okio/okio/okio/-gzip-sink/deflater.html new file mode 100644 index 0000000000..57f4b228cb --- /dev/null +++ b/3.x/okio/okio/okio/-gzip-sink/deflater.html @@ -0,0 +1,84 @@ + + + + + deflater + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

deflater

+
+
+
+
@get:JvmName(name = "deflater")
val deflater: Deflater

The deflater used to compress the body.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-gzip-sink/flush.html b/3.x/okio/okio/okio/-gzip-sink/flush.html new file mode 100644 index 0000000000..d4bf356d45 --- /dev/null +++ b/3.x/okio/okio/okio/-gzip-sink/flush.html @@ -0,0 +1,84 @@ + + + + + flush + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

flush

+
+
+
+
open override fun flush()

Pushes all buffered bytes to their final destination.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-gzip-sink/index.html b/3.x/okio/okio/okio/-gzip-sink/index.html new file mode 100644 index 0000000000..de90a5d536 --- /dev/null +++ b/3.x/okio/okio/okio/-gzip-sink/index.html @@ -0,0 +1,290 @@ + + + + + GzipSink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

GzipSink

+
+
+
class GzipSink(sink: Sink) : Sink

A sink that uses GZIP to compress written data to another sink.

Sync flush

Aggressive flushing of this stream may result in reduced compression. Each call to flush immediately compresses all currently-buffered data; this early compression may be less effective than compression performed without flushing.

This is equivalent to using Deflater with the sync flush option. This class does not offer any partial flush mechanism. For best performance, only call flush when application behavior requires it.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
constructor(sink: Sink)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
@get:JvmName(name = "deflater")
val deflater: Deflater

The deflater used to compress the body.

+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a new sink that buffers writes to sink. The returned sink will batch writes to sink. Use this wherever you write to a sink to get an ergonomic and efficient access to data.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that uses cipher to encrypt or decrypt this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun close()

Pushes all buffered bytes to their final destination and releases the resources held by this sink. It is an error to write a closed sink. It is safe to close a sink more than once.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Sink.deflate(deflater: Deflater = Deflater()): DeflaterSink

Returns an DeflaterSink that DEFLATE-compresses data to this Sink while writing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun flush()

Pushes all buffered bytes to their final destination.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Sink.gzip(): GzipSink

Returns a GzipSink that gzip-compresses to this Sink while writing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that uses digest to hash this.

Returns a sink that uses mac to hash this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun timeout(): Timeout

Returns the timeout for this sink.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun write(source: Buffer, byteCount: Long)

Removes byteCount bytes from source and appends them to this.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-gzip-sink/timeout.html b/3.x/okio/okio/okio/-gzip-sink/timeout.html new file mode 100644 index 0000000000..4a69c6a730 --- /dev/null +++ b/3.x/okio/okio/okio/-gzip-sink/timeout.html @@ -0,0 +1,84 @@ + + + + + timeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

timeout

+
+
+
+
open override fun timeout(): Timeout

Returns the timeout for this sink.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-gzip-sink/write.html b/3.x/okio/okio/okio/-gzip-sink/write.html new file mode 100644 index 0000000000..d4c1b057d4 --- /dev/null +++ b/3.x/okio/okio/okio/-gzip-sink/write.html @@ -0,0 +1,84 @@ + + + + + write + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

write

+
+
+
+
open override fun write(source: Buffer, byteCount: Long)

Removes byteCount bytes from source and appends them to this.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-gzip-source/-gzip-source.html b/3.x/okio/okio/okio/-gzip-source/-gzip-source.html new file mode 100644 index 0000000000..956183de77 --- /dev/null +++ b/3.x/okio/okio/okio/-gzip-source/-gzip-source.html @@ -0,0 +1,84 @@ + + + + + GzipSource + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

GzipSource

+
+
+
+
constructor(source: Source)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-gzip-source/close.html b/3.x/okio/okio/okio/-gzip-source/close.html new file mode 100644 index 0000000000..7c05abd6fb --- /dev/null +++ b/3.x/okio/okio/okio/-gzip-source/close.html @@ -0,0 +1,84 @@ + + + + + close + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

close

+
+
+
+
open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-gzip-source/index.html b/3.x/okio/okio/okio/-gzip-source/index.html new file mode 100644 index 0000000000..7302c4ead3 --- /dev/null +++ b/3.x/okio/okio/okio/-gzip-source/index.html @@ -0,0 +1,252 @@ + + + + + GzipSource + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

GzipSource

+
+
+
class GzipSource(source: Source) : Source

A source that uses GZIP to decompress data read from another source.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
constructor(source: Source)
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a new source that buffers reads from source. The returned source will perform bulk reads into its in-memory buffer. Use this wherever you read a source to get an ergonomic and efficient access to data.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a source that uses cipher to encrypt or decrypt this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Source.gzip(): GzipSource

Returns a GzipSource that gzip-decompresses this Source while reading.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a source that uses digest to hash this.

Returns a source that uses mac to hash this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Source.inflate(inflater: Inflater = Inflater()): InflaterSource

Returns an InflaterSource that DEFLATE-decompresses this Source while reading.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun timeout(): Timeout

Returns the timeout for this source.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-gzip-source/read.html b/3.x/okio/okio/okio/-gzip-source/read.html new file mode 100644 index 0000000000..183b37534f --- /dev/null +++ b/3.x/okio/okio/okio/-gzip-source/read.html @@ -0,0 +1,84 @@ + + + + + read + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

read

+
+
+
+
open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-gzip-source/timeout.html b/3.x/okio/okio/okio/-gzip-source/timeout.html new file mode 100644 index 0000000000..999be35e63 --- /dev/null +++ b/3.x/okio/okio/okio/-gzip-source/timeout.html @@ -0,0 +1,84 @@ + + + + + timeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

timeout

+
+
+
+
open override fun timeout(): Timeout

Returns the timeout for this source.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-sink/-companion/hmac-sha1.html b/3.x/okio/okio/okio/-hashing-sink/-companion/hmac-sha1.html new file mode 100644 index 0000000000..00d5e27cb2 --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-sink/-companion/hmac-sha1.html @@ -0,0 +1,86 @@ + + + + + hmacSha1 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hmacSha1

+
+
+
+
expect fun hmacSha1(sink: Sink, key: ByteString): HashingSink

Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.

actual fun hmacSha1(sink: Sink, key: ByteString): HashingSink

Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.

actual fun hmacSha1(sink: Sink, key: ByteString): HashingSink

Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-sink/-companion/hmac-sha256.html b/3.x/okio/okio/okio/-hashing-sink/-companion/hmac-sha256.html new file mode 100644 index 0000000000..2ee41c8031 --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-sink/-companion/hmac-sha256.html @@ -0,0 +1,86 @@ + + + + + hmacSha256 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hmacSha256

+
+
+
+
expect fun hmacSha256(sink: Sink, key: ByteString): HashingSink

Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.

Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.

actual fun hmacSha256(sink: Sink, key: ByteString): HashingSink

Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-sink/-companion/hmac-sha512.html b/3.x/okio/okio/okio/-hashing-sink/-companion/hmac-sha512.html new file mode 100644 index 0000000000..d845f1515a --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-sink/-companion/hmac-sha512.html @@ -0,0 +1,86 @@ + + + + + hmacSha512 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hmacSha512

+
+
+
+
expect fun hmacSha512(sink: Sink, key: ByteString): HashingSink

Returns a sink that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.

Returns a sink that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.

actual fun hmacSha512(sink: Sink, key: ByteString): HashingSink

Returns a sink that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-sink/-companion/index.html b/3.x/okio/okio/okio/-hashing-sink/-companion/index.html new file mode 100644 index 0000000000..f2a3eb99c6 --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-sink/-companion/index.html @@ -0,0 +1,214 @@ + + + + + Companion + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Companion

+
+
+
expect object Companion
actual object Companion
actual object Companion
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun hmacSha1(sink: Sink, key: ByteString): HashingSink

Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.

actual fun hmacSha1(sink: Sink, key: ByteString): HashingSink

Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.

actual fun hmacSha1(sink: Sink, key: ByteString): HashingSink

Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun hmacSha256(sink: Sink, key: ByteString): HashingSink

Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.

Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.

actual fun hmacSha256(sink: Sink, key: ByteString): HashingSink

Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun hmacSha512(sink: Sink, key: ByteString): HashingSink

Returns a sink that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.

Returns a sink that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.

actual fun hmacSha512(sink: Sink, key: ByteString): HashingSink

Returns a sink that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun md5(sink: Sink): HashingSink

Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.

actual fun md5(sink: Sink): HashingSink

Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.

actual fun md5(sink: Sink): HashingSink

Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun sha1(sink: Sink): HashingSink

Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.

actual fun sha1(sink: Sink): HashingSink

Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.

actual fun sha1(sink: Sink): HashingSink

Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun sha256(sink: Sink): HashingSink

Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.

actual fun sha256(sink: Sink): HashingSink

Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.

actual fun sha256(sink: Sink): HashingSink

Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun sha512(sink: Sink): HashingSink

Returns a sink that uses the SHA-512 hash algorithm to produce 512-bit hashes.

actual fun sha512(sink: Sink): HashingSink

Returns a sink that uses the SHA-512 hash algorithm to produce 512-bit hashes.

actual fun sha512(sink: Sink): HashingSink

Returns a sink that uses the SHA-512 hash algorithm to produce 512-bit hashes.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-sink/-companion/md5.html b/3.x/okio/okio/okio/-hashing-sink/-companion/md5.html new file mode 100644 index 0000000000..1b0ddd0d5e --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-sink/-companion/md5.html @@ -0,0 +1,86 @@ + + + + + md5 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

md5

+
+
+
+
expect fun md5(sink: Sink): HashingSink

Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.

MD5 has been vulnerable to collisions since 2004. It should not be used in new code.

actual fun md5(sink: Sink): HashingSink

Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.

MD5 has been vulnerable to collisions since 2004. It should not be used in new code.

actual fun md5(sink: Sink): HashingSink

Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-sink/-companion/sha1.html b/3.x/okio/okio/okio/-hashing-sink/-companion/sha1.html new file mode 100644 index 0000000000..debf542b17 --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-sink/-companion/sha1.html @@ -0,0 +1,86 @@ + + + + + sha1 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sha1

+
+
+
+
expect fun sha1(sink: Sink): HashingSink

Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.

SHA-1 has been vulnerable to collisions since 2017. It should not be used in new code.

actual fun sha1(sink: Sink): HashingSink

Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.

SHA-1 has been vulnerable to collisions since 2017. It should not be used in new code.

actual fun sha1(sink: Sink): HashingSink

Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-sink/-companion/sha256.html b/3.x/okio/okio/okio/-hashing-sink/-companion/sha256.html new file mode 100644 index 0000000000..641f5eb74b --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-sink/-companion/sha256.html @@ -0,0 +1,86 @@ + + + + + sha256 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sha256

+
+
+
+
expect fun sha256(sink: Sink): HashingSink

Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.

actual fun sha256(sink: Sink): HashingSink

Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.

actual fun sha256(sink: Sink): HashingSink

Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-sink/-companion/sha512.html b/3.x/okio/okio/okio/-hashing-sink/-companion/sha512.html new file mode 100644 index 0000000000..96753171b4 --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-sink/-companion/sha512.html @@ -0,0 +1,86 @@ + + + + + sha512 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sha512

+
+
+
+
expect fun sha512(sink: Sink): HashingSink

Returns a sink that uses the SHA-512 hash algorithm to produce 512-bit hashes.

actual fun sha512(sink: Sink): HashingSink

Returns a sink that uses the SHA-512 hash algorithm to produce 512-bit hashes.

actual fun sha512(sink: Sink): HashingSink

Returns a sink that uses the SHA-512 hash algorithm to produce 512-bit hashes.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-sink/close.html b/3.x/okio/okio/okio/-hashing-sink/close.html new file mode 100644 index 0000000000..a1c54145a8 --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-sink/close.html @@ -0,0 +1,85 @@ + + + + + close + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

close

+
+
+
+
expect open override fun close()

Pushes all buffered bytes to their final destination and releases the resources held by this sink. It is an error to write a closed sink. It is safe to close a sink more than once.

actual open override fun close()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-sink/flush.html b/3.x/okio/okio/okio/-hashing-sink/flush.html new file mode 100644 index 0000000000..0599c863e0 --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-sink/flush.html @@ -0,0 +1,85 @@ + + + + + flush + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

flush

+
+
+
+
expect open override fun flush()

Pushes all buffered bytes to their final destination.

actual open override fun flush()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-sink/hash.html b/3.x/okio/okio/okio/-hashing-sink/hash.html new file mode 100644 index 0000000000..f5d5d93d1b --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-sink/hash.html @@ -0,0 +1,86 @@ + + + + + hash + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hash

+
+
+
+
expect val hash: ByteString

Returns the hash of the bytes accepted thus far and resets the internal state of this sink.

Warning: This method is not idempotent. Each time this method is called its internal state is cleared. This starts a new hash with zero bytes accepted.

@get:JvmName(name = "hash")
actual val hash: ByteString

Returns the hash of the bytes accepted thus far and resets the internal state of this sink.

Warning: This method is not idempotent. Each time this method is called its internal state is cleared. This starts a new hash with zero bytes accepted.

actual val hash: ByteString

Returns the hash of the bytes accepted thus far and resets the internal state of this sink.

Warning: This method is not idempotent. Each time this method is called its internal state is cleared. This starts a new hash with zero bytes accepted.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-sink/index.html b/3.x/okio/okio/okio/-hashing-sink/index.html new file mode 100644 index 0000000000..7a74444f25 --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-sink/index.html @@ -0,0 +1,325 @@ + + + + + HashingSink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

HashingSink

+
+
+
expect class HashingSink : Sink

A sink that computes a hash of the full stream of bytes it has accepted. To use, create an instance with your preferred hash algorithm. Write all of the data to the sink and then call hash to compute the final hash value.

In this example we use HashingSink with a BufferedSink to make writing to the sink easier.

HashingSink hashingSink = HashingSink.sha256(s);
BufferedSink bufferedSink = Okio.buffer(hashingSink);

... // Write to bufferedSink and either flush or close it.

ByteString hash = hashingSink.hash();

A sink that computes a hash of the full stream of bytes it has accepted. To use, create an instance with your preferred hash algorithm. Write all of the data to the sink and then call hash to compute the final hash value.

In this example we use HashingSink with a BufferedSink to make writing to the sink easier.

HashingSink hashingSink = HashingSink.sha256(s);
BufferedSink bufferedSink = Okio.buffer(hashingSink);

... // Write to bufferedSink and either flush or close it.

ByteString hash = hashingSink.hash();
actual class HashingSink : Sink
+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect object Companion
actual object Companion
actual object Companion
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
@get:JvmName(name = "delegate")
val delegate: Sink

Sink to which this instance is delegating.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect val hash: ByteString

Returns the hash of the bytes accepted thus far and resets the internal state of this sink.

@get:JvmName(name = "hash")
actual val hash: ByteString

Returns the hash of the bytes accepted thus far and resets the internal state of this sink.

actual val hash: ByteString

Returns the hash of the bytes accepted thus far and resets the internal state of this sink.

+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a new sink that buffers writes to sink. The returned sink will batch writes to sink. Use this wherever you write to a sink to get an ergonomic and efficient access to data.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that uses cipher to encrypt or decrypt this.

+
+
+
+
+ +
+
+
+
close
+ +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun close()

Pushes all buffered bytes to their final destination and releases the resources held by this sink. It is an error to write a closed sink. It is safe to close a sink more than once.

open override fun close()
actual open override fun close()
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Sink.deflate(deflater: Deflater = Deflater()): DeflaterSink

Returns an DeflaterSink that DEFLATE-compresses data to this Sink while writing.

+
+
+
+
+ +
+
+
+
flush
+ +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun flush()

Pushes all buffered bytes to their final destination.

open override fun flush()
actual open override fun flush()
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Sink.gzip(): GzipSink

Returns a GzipSink that gzip-compresses to this Sink while writing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that uses digest to hash this.

Returns a sink that uses mac to hash this.

+
+
+
+
+ +
+
+
+
timeout
+ +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun timeout(): Timeout

Returns the timeout for this sink.

open override fun timeout(): Timeout
actual open override fun timeout(): Timeout
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun toString(): String
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun write(source: Buffer, byteCount: Long)

Removes byteCount bytes from source and appends them to this.

actual open override fun write(source: Buffer, byteCount: Long)
actual open override fun write(source: Buffer, byteCount: Long)
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-sink/timeout.html b/3.x/okio/okio/okio/-hashing-sink/timeout.html new file mode 100644 index 0000000000..6005ea66bc --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-sink/timeout.html @@ -0,0 +1,85 @@ + + + + + timeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

timeout

+
+
+
+
expect open override fun timeout(): Timeout

Returns the timeout for this sink.

actual open override fun timeout(): Timeout
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-sink/write.html b/3.x/okio/okio/okio/-hashing-sink/write.html new file mode 100644 index 0000000000..9ed1f92687 --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-sink/write.html @@ -0,0 +1,86 @@ + + + + + write + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

write

+
+
+
+
expect open override fun write(source: Buffer, byteCount: Long)

Removes byteCount bytes from source and appends them to this.

actual open override fun write(source: Buffer, byteCount: Long)
actual open override fun write(source: Buffer, byteCount: Long)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-source/-companion/hmac-sha1.html b/3.x/okio/okio/okio/-hashing-source/-companion/hmac-sha1.html new file mode 100644 index 0000000000..ea08868faf --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-source/-companion/hmac-sha1.html @@ -0,0 +1,86 @@ + + + + + hmacSha1 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hmacSha1

+
+
+
+
expect fun hmacSha1(source: Source, key: ByteString): HashingSource

Returns a source that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.

actual fun hmacSha1(source: Source, key: ByteString): HashingSource

Returns a source that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.

actual fun hmacSha1(source: Source, key: ByteString): HashingSource

Returns a source that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-source/-companion/hmac-sha256.html b/3.x/okio/okio/okio/-hashing-source/-companion/hmac-sha256.html new file mode 100644 index 0000000000..68840398bd --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-source/-companion/hmac-sha256.html @@ -0,0 +1,86 @@ + + + + + hmacSha256 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hmacSha256

+
+
+
+
expect fun hmacSha256(source: Source, key: ByteString): HashingSource

Returns a source that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.

Returns a source that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.

actual fun hmacSha256(source: Source, key: ByteString): HashingSource

Returns a source that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-source/-companion/hmac-sha512.html b/3.x/okio/okio/okio/-hashing-source/-companion/hmac-sha512.html new file mode 100644 index 0000000000..611e47eebd --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-source/-companion/hmac-sha512.html @@ -0,0 +1,86 @@ + + + + + hmacSha512 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hmacSha512

+
+
+
+
expect fun hmacSha512(source: Source, key: ByteString): HashingSource

Returns a source that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.

Returns a source that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.

actual fun hmacSha512(source: Source, key: ByteString): HashingSource

Returns a source that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-source/-companion/index.html b/3.x/okio/okio/okio/-hashing-source/-companion/index.html new file mode 100644 index 0000000000..626c522e5e --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-source/-companion/index.html @@ -0,0 +1,214 @@ + + + + + Companion + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Companion

+
+
+
expect object Companion
actual object Companion
actual object Companion
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun hmacSha1(source: Source, key: ByteString): HashingSource

Returns a source that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.

actual fun hmacSha1(source: Source, key: ByteString): HashingSource

Returns a source that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.

actual fun hmacSha1(source: Source, key: ByteString): HashingSource

Returns a source that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun hmacSha256(source: Source, key: ByteString): HashingSource

Returns a source that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.

Returns a source that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.

actual fun hmacSha256(source: Source, key: ByteString): HashingSource

Returns a source that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun hmacSha512(source: Source, key: ByteString): HashingSource

Returns a source that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.

Returns a source that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.

actual fun hmacSha512(source: Source, key: ByteString): HashingSource

Returns a source that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun md5(source: Source): HashingSource

Returns a source that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.

actual fun md5(source: Source): HashingSource

Returns a source that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.

actual fun md5(source: Source): HashingSource

Returns a source that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun sha1(source: Source): HashingSource

Returns a source that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.

actual fun sha1(source: Source): HashingSource

Returns a source that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.

actual fun sha1(source: Source): HashingSource

Returns a source that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun sha256(source: Source): HashingSource

Returns a source that uses the SHA-256 hash algorithm to produce 256-bit hashes.

actual fun sha256(source: Source): HashingSource

Returns a source that uses the SHA-256 hash algorithm to produce 256-bit hashes.

actual fun sha256(source: Source): HashingSource

Returns a source that uses the SHA-256 hash algorithm to produce 256-bit hashes.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun sha512(source: Source): HashingSource

Returns a source that uses the SHA-512 hash algorithm to produce 512-bit hashes.

actual fun sha512(source: Source): HashingSource

Returns a source that uses the SHA-512 hash algorithm to produce 512-bit hashes.

actual fun sha512(source: Source): HashingSource

Returns a source that uses the SHA-512 hash algorithm to produce 512-bit hashes.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-source/-companion/md5.html b/3.x/okio/okio/okio/-hashing-source/-companion/md5.html new file mode 100644 index 0000000000..02a14e9bbf --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-source/-companion/md5.html @@ -0,0 +1,86 @@ + + + + + md5 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

md5

+
+
+
+
expect fun md5(source: Source): HashingSource

Returns a source that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.

MD5 has been vulnerable to collisions since 2004. It should not be used in new code.

actual fun md5(source: Source): HashingSource

Returns a source that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.

MD5 has been vulnerable to collisions since 2004. It should not be used in new code.

actual fun md5(source: Source): HashingSource

Returns a source that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-source/-companion/sha1.html b/3.x/okio/okio/okio/-hashing-source/-companion/sha1.html new file mode 100644 index 0000000000..f429b196cc --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-source/-companion/sha1.html @@ -0,0 +1,86 @@ + + + + + sha1 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sha1

+
+
+
+
expect fun sha1(source: Source): HashingSource

Returns a source that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.

SHA-1 has been vulnerable to collisions since 2017. It should not be used in new code.

actual fun sha1(source: Source): HashingSource

Returns a source that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.

SHA-1 has been vulnerable to collisions since 2017. It should not be used in new code.

actual fun sha1(source: Source): HashingSource

Returns a source that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-source/-companion/sha256.html b/3.x/okio/okio/okio/-hashing-source/-companion/sha256.html new file mode 100644 index 0000000000..5e64c49af0 --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-source/-companion/sha256.html @@ -0,0 +1,86 @@ + + + + + sha256 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sha256

+
+
+
+
expect fun sha256(source: Source): HashingSource

Returns a source that uses the SHA-256 hash algorithm to produce 256-bit hashes.

actual fun sha256(source: Source): HashingSource

Returns a source that uses the SHA-256 hash algorithm to produce 256-bit hashes.

actual fun sha256(source: Source): HashingSource

Returns a source that uses the SHA-256 hash algorithm to produce 256-bit hashes.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-source/-companion/sha512.html b/3.x/okio/okio/okio/-hashing-source/-companion/sha512.html new file mode 100644 index 0000000000..926ec8c535 --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-source/-companion/sha512.html @@ -0,0 +1,86 @@ + + + + + sha512 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sha512

+
+
+
+
expect fun sha512(source: Source): HashingSource

Returns a source that uses the SHA-512 hash algorithm to produce 512-bit hashes.

actual fun sha512(source: Source): HashingSource

Returns a source that uses the SHA-512 hash algorithm to produce 512-bit hashes.

actual fun sha512(source: Source): HashingSource

Returns a source that uses the SHA-512 hash algorithm to produce 512-bit hashes.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-source/close.html b/3.x/okio/okio/okio/-hashing-source/close.html new file mode 100644 index 0000000000..7b511f2ae3 --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-source/close.html @@ -0,0 +1,85 @@ + + + + + close + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

close

+
+
+
+
expect open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

actual open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-source/hash.html b/3.x/okio/okio/okio/-hashing-source/hash.html new file mode 100644 index 0000000000..1d3f9771d8 --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-source/hash.html @@ -0,0 +1,86 @@ + + + + + hash + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hash

+
+
+
+
expect val hash: ByteString

Returns the hash of the bytes supplied thus far and resets the internal state of this source.

Warning: This method is not idempotent. Each time this method is called its internal state is cleared. This starts a new hash with zero bytes supplied.

@get:JvmName(name = "hash")
actual val hash: ByteString

Returns the hash of the bytes supplied thus far and resets the internal state of this source.

Warning: This method is not idempotent. Each time this method is called its internal state is cleared. This starts a new hash with zero bytes supplied.

actual val hash: ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-source/index.html b/3.x/okio/okio/okio/-hashing-source/index.html new file mode 100644 index 0000000000..58385875ab --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-source/index.html @@ -0,0 +1,274 @@ + + + + + HashingSource + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

HashingSource

+
+
+
expect class HashingSource : Source

A source that computes a hash of the full stream of bytes it has supplied. To use, create an instance with your preferred hash algorithm. Exhaust the source by reading all of its bytes and then call hash to compute the final hash value.

In this example we use HashingSource with a BufferedSource to make reading from the source easier.

HashingSource hashingSource = HashingSource.sha256(rawSource);
BufferedSource bufferedSource = Okio.buffer(hashingSource);

... // Read all of bufferedSource.

ByteString hash = hashingSource.hash();

A source that computes a hash of the full stream of bytes it has supplied. To use, create an instance with your preferred hash algorithm. Exhaust the source by reading all of its bytes and then call hash to compute the final hash value.

In this example we use HashingSource with a BufferedSource to make reading from the source easier.

HashingSource hashingSource = HashingSource.sha256(rawSource);
BufferedSource bufferedSource = Okio.buffer(hashingSource);

... // Read all of bufferedSource.

ByteString hash = hashingSource.hash();
actual class HashingSource : Source
+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect object Companion
actual object Companion
actual object Companion
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect val hash: ByteString

Returns the hash of the bytes supplied thus far and resets the internal state of this source.

@get:JvmName(name = "hash")
actual val hash: ByteString

Returns the hash of the bytes supplied thus far and resets the internal state of this source.

actual val hash: ByteString
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a new source that buffers reads from source. The returned source will perform bulk reads into its in-memory buffer. Use this wherever you read a source to get an ergonomic and efficient access to data.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a source that uses cipher to encrypt or decrypt this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

actual open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Source.gzip(): GzipSource

Returns a GzipSource that gzip-decompresses this Source while reading.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a source that uses digest to hash this.

Returns a source that uses mac to hash this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Source.inflate(inflater: Inflater = Inflater()): InflaterSource

Returns an InflaterSource that DEFLATE-decompresses this Source while reading.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

actual open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

actual open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun timeout(): Timeout

Returns the timeout for this source.

actual open override fun timeout(): Timeout

Returns the timeout for this source.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-source/read.html b/3.x/okio/okio/okio/-hashing-source/read.html new file mode 100644 index 0000000000..67c3ccbbf7 --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-source/read.html @@ -0,0 +1,86 @@ + + + + + read + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

read

+
+
+
+
expect open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

actual open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

actual open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-hashing-source/timeout.html b/3.x/okio/okio/okio/-hashing-source/timeout.html new file mode 100644 index 0000000000..d6c436aff1 --- /dev/null +++ b/3.x/okio/okio/okio/-hashing-source/timeout.html @@ -0,0 +1,85 @@ + + + + + timeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

timeout

+
+
+
+
expect open override fun timeout(): Timeout

Returns the timeout for this source.

actual open override fun timeout(): Timeout

Returns the timeout for this source.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-i-o-exception/-i-o-exception.html b/3.x/okio/okio/okio/-i-o-exception/-i-o-exception.html new file mode 100644 index 0000000000..d02529b588 --- /dev/null +++ b/3.x/okio/okio/okio/-i-o-exception/-i-o-exception.html @@ -0,0 +1,85 @@ + + + + + IOException + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

IOException

+
+
+
+
expect constructor(message: String?)
expect constructor()
expect constructor(message: String?, cause: Throwable?)
actual constructor(message: String?)
actual constructor()
actual constructor(message: String?, cause: Throwable?)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-i-o-exception/index.html b/3.x/okio/okio/okio/-i-o-exception/index.html new file mode 100644 index 0000000000..acb696178b --- /dev/null +++ b/3.x/okio/okio/okio/-i-o-exception/index.html @@ -0,0 +1,150 @@ + + + + + IOException + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

IOException

+
+
+
actual typealias IOException = java.io.IOException
+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect constructor(message: String?)
expect constructor()
expect constructor(message: String?, cause: Throwable?)
actual constructor(message: String?)
actual constructor()
actual constructor(message: String?, cause: Throwable?)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+
cause
+ +
Link copied to clipboard
+
+
+
+
+
+
open val cause: Throwable?
open val cause: Throwable?
+
+
+
+
+ +
+
+
+
message
+ +
Link copied to clipboard
+
+
+
+
+
+
open val message: String?
open val message: String?
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-inflater-source/-inflater-source.html b/3.x/okio/okio/okio/-inflater-source/-inflater-source.html new file mode 100644 index 0000000000..026cb96337 --- /dev/null +++ b/3.x/okio/okio/okio/-inflater-source/-inflater-source.html @@ -0,0 +1,84 @@ + + + + + InflaterSource + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

InflaterSource

+
+
+
+
expect constructor(source: Source, inflater: Inflater)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-inflater-source/close.html b/3.x/okio/okio/okio/-inflater-source/close.html new file mode 100644 index 0000000000..ca12c53924 --- /dev/null +++ b/3.x/okio/okio/okio/-inflater-source/close.html @@ -0,0 +1,84 @@ + + + + + close + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

close

+
+
+
+
expect open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-inflater-source/index.html b/3.x/okio/okio/okio/-inflater-source/index.html new file mode 100644 index 0000000000..2b9e268719 --- /dev/null +++ b/3.x/okio/okio/okio/-inflater-source/index.html @@ -0,0 +1,252 @@ + + + + + InflaterSource + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

InflaterSource

+
+
+
expect class InflaterSource : Source

A source that uses DEFLATE to decompress data read from another source.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect constructor(source: Source, inflater: Inflater)
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a new source that buffers reads from source. The returned source will perform bulk reads into its in-memory buffer. Use this wherever you read a source to get an ergonomic and efficient access to data.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a source that uses cipher to encrypt or decrypt this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Source.gzip(): GzipSource

Returns a GzipSource that gzip-decompresses this Source while reading.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a source that uses digest to hash this.

Returns a source that uses mac to hash this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Source.inflate(inflater: Inflater = Inflater()): InflaterSource

Returns an InflaterSource that DEFLATE-decompresses this Source while reading.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun timeout(): Timeout

Returns the timeout for this source.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-inflater-source/read.html b/3.x/okio/okio/okio/-inflater-source/read.html new file mode 100644 index 0000000000..8f185b1968 --- /dev/null +++ b/3.x/okio/okio/okio/-inflater-source/read.html @@ -0,0 +1,84 @@ + + + + + read + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

read

+
+
+
+
expect open override fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-inflater-source/timeout.html b/3.x/okio/okio/okio/-inflater-source/timeout.html new file mode 100644 index 0000000000..4965fce7dd --- /dev/null +++ b/3.x/okio/okio/okio/-inflater-source/timeout.html @@ -0,0 +1,84 @@ + + + + + timeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

timeout

+
+
+
+
expect open override fun timeout(): Timeout

Returns the timeout for this source.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-inflater/-inflater.html b/3.x/okio/okio/okio/-inflater/-inflater.html new file mode 100644 index 0000000000..831ebdf0f1 --- /dev/null +++ b/3.x/okio/okio/okio/-inflater/-inflater.html @@ -0,0 +1,84 @@ + + + + + Inflater + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Inflater

+
+
+
+
expect constructor()

Creates an inflater that writes a ZLIB header and checksum.


expect constructor(nowrap: Boolean)

Parameters

nowrap

true to omit the ZLIB header and checksum.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-inflater/end.html b/3.x/okio/okio/okio/-inflater/end.html new file mode 100644 index 0000000000..eb0639d0f0 --- /dev/null +++ b/3.x/okio/okio/okio/-inflater/end.html @@ -0,0 +1,84 @@ + + + + + end + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

end

+
+
+
+
expect fun end()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-inflater/get-bytes-written.html b/3.x/okio/okio/okio/-inflater/get-bytes-written.html new file mode 100644 index 0000000000..497e14a63d --- /dev/null +++ b/3.x/okio/okio/okio/-inflater/get-bytes-written.html @@ -0,0 +1,84 @@ + + + + + getBytesWritten + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

getBytesWritten

+
+
+
+
expect fun getBytesWritten(): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-inflater/index.html b/3.x/okio/okio/okio/-inflater/index.html new file mode 100644 index 0000000000..2b135d4c64 --- /dev/null +++ b/3.x/okio/okio/okio/-inflater/index.html @@ -0,0 +1,149 @@ + + + + + Inflater + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Inflater

+
+
+
actual typealias Inflater = java.util.zip.Inflater
expect class Inflater(nowrap: Boolean)

Parameters

nowrap

true to omit the ZLIB header and checksum.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect constructor()

Creates an inflater that writes a ZLIB header and checksum.

expect constructor(nowrap: Boolean)
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun end()
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun getBytesWritten(): Long
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-lock/-companion/index.html b/3.x/okio/okio/okio/-lock/-companion/index.html new file mode 100644 index 0000000000..c6db47652a --- /dev/null +++ b/3.x/okio/okio/okio/-lock/-companion/index.html @@ -0,0 +1,110 @@ + + + + + Companion + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Companion

+
+
+
object Companion
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-lock/-companion/instance.html b/3.x/okio/okio/okio/-lock/-companion/instance.html new file mode 100644 index 0000000000..51f3d115fc --- /dev/null +++ b/3.x/okio/okio/okio/-lock/-companion/instance.html @@ -0,0 +1,84 @@ + + + + + instance + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

instance

+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-lock/-lock.html b/3.x/okio/okio/okio/-lock/-lock.html new file mode 100644 index 0000000000..a1d8de17db --- /dev/null +++ b/3.x/okio/okio/okio/-lock/-lock.html @@ -0,0 +1,84 @@ + + + + + Lock + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Lock

+
+
+
+
constructor()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-lock/index.html b/3.x/okio/okio/okio/-lock/index.html new file mode 100644 index 0000000000..8a35b95f19 --- /dev/null +++ b/3.x/okio/okio/okio/-lock/index.html @@ -0,0 +1,154 @@ + + + + + Lock + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Lock

+
+
+
expect class Lock
actual typealias Lock = ReentrantLock
actual class Lock
+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
constructor()
+
+
+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
object Companion
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect inline fun <T> Lock.withLock(action: () -> T): T
actual inline fun <T> Lock.withLock(action: () -> T): T
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-okio.html b/3.x/okio/okio/okio/-okio.html new file mode 100644 index 0000000000..cfb0a5c8c0 --- /dev/null +++ b/3.x/okio/okio/okio/-okio.html @@ -0,0 +1,84 @@ + + + + + Okio + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Okio

+
+
+
+
val Okio: -DeprecatedOkio
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-options/-companion/index.html b/3.x/okio/okio/okio/-options/-companion/index.html new file mode 100644 index 0000000000..3bcfa7df02 --- /dev/null +++ b/3.x/okio/okio/okio/-options/-companion/index.html @@ -0,0 +1,110 @@ + + + + + Companion + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Companion

+
+
+
object Companion
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun of(vararg byteStrings: ByteString): Options
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-options/-companion/of.html b/3.x/okio/okio/okio/-options/-companion/of.html new file mode 100644 index 0000000000..ab39808bfb --- /dev/null +++ b/3.x/okio/okio/okio/-options/-companion/of.html @@ -0,0 +1,84 @@ + + + + + of + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

of

+
+
+
+
fun of(vararg byteStrings: ByteString): Options
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-options/get.html b/3.x/okio/okio/okio/-options/get.html new file mode 100644 index 0000000000..f1ea076681 --- /dev/null +++ b/3.x/okio/okio/okio/-options/get.html @@ -0,0 +1,84 @@ + + + + + get + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

get

+
+
+
+
open operator override fun get(index: Int): ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-options/index.html b/3.x/okio/okio/okio/-options/index.html new file mode 100644 index 0000000000..49dfc3b3fe --- /dev/null +++ b/3.x/okio/okio/okio/-options/index.html @@ -0,0 +1,339 @@ + + + + + Options + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Options

+
+
+

An indexed set of values that may be read with BufferedSource.select.

Also consider TypedOptions to select a typed value T.

+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
object Companion
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override val size: Int
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open operator override fun contains(element: ByteString): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun containsAll(elements: Collection<ByteString>): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open operator override fun equals(other: Any?): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open operator override fun get(index: Int): ByteString
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun hashCode(): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun indexOf(element: ByteString): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun isEmpty(): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open operator override fun iterator(): Iterator<ByteString>
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun lastIndexOf(element: ByteString): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun listIterator(): ListIterator<ByteString>
open override fun listIterator(index: Int): ListIterator<ByteString>
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun subList(fromIndex: Int, toIndex: Int): List<ByteString>
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun toString(): String
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-options/size.html b/3.x/okio/okio/okio/-options/size.html new file mode 100644 index 0000000000..855294fe3c --- /dev/null +++ b/3.x/okio/okio/okio/-options/size.html @@ -0,0 +1,84 @@ + + + + + size + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

size

+
+
+
+
open override val size: Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/-companion/-d-i-r-e-c-t-o-r-y_-s-e-p-a-r-a-t-o-r.html b/3.x/okio/okio/okio/-path/-companion/-d-i-r-e-c-t-o-r-y_-s-e-p-a-r-a-t-o-r.html new file mode 100644 index 0000000000..f21e60d91d --- /dev/null +++ b/3.x/okio/okio/okio/-path/-companion/-d-i-r-e-c-t-o-r-y_-s-e-p-a-r-a-t-o-r.html @@ -0,0 +1,86 @@ + + + + + DIRECTORY_SEPARATOR + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

DIRECTORY_SEPARATOR

+
+
+
+

Either / (on UNIX-like systems including Android, iOS, and Linux) or \ (on Windows systems).

This separator is used by FileSystem.SYSTEM and possibly other file systems on the host system. Some file system implementations may not use this separator.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/-companion/index.html b/3.x/okio/okio/okio/-path/-companion/index.html new file mode 100644 index 0000000000..c7e1c432b4 --- /dev/null +++ b/3.x/okio/okio/okio/-path/-companion/index.html @@ -0,0 +1,150 @@ + + + + + Companion + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Companion

+
+
+
expect object Companion
actual object Companion
actual object Companion
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Either / (on UNIX-like systems including Android, iOS, and Linux) or \ (on Windows systems).

+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun File.toOkioPath(normalize: Boolean = false): Path
fun Path.toOkioPath(normalize: Boolean = false): Path
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun String.toPath(normalize: Boolean = false): Path

Returns the Path representation for this string.

actual fun String.toPath(normalize: Boolean): Path
actual fun String.toPath(normalize: Boolean): Path
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/-companion/to-okio-path.html b/3.x/okio/okio/okio/-path/-companion/to-okio-path.html new file mode 100644 index 0000000000..8306e5c7a6 --- /dev/null +++ b/3.x/okio/okio/okio/-path/-companion/to-okio-path.html @@ -0,0 +1,84 @@ + + + + + toOkioPath + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toOkioPath

+
+
+
+
fun File.toOkioPath(normalize: Boolean = false): Path
fun Path.toOkioPath(normalize: Boolean = false): Path
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/-companion/to-path.html b/3.x/okio/okio/okio/-path/-companion/to-path.html new file mode 100644 index 0000000000..6e8a92893e --- /dev/null +++ b/3.x/okio/okio/okio/-path/-companion/to-path.html @@ -0,0 +1,86 @@ + + + + + toPath + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toPath

+
+
+
+
expect fun String.toPath(normalize: Boolean = false): Path

Returns the Path representation for this string.

Set normalize to true to eagerly consume .. segments in your path. In all cases, leading .. on absolute paths will be removed.

"/Users/jesse/Documents/../notes.txt".toPath(normalize = false).toString() => "/Users/jesse/Documents/../notes.txt"
"/Users/jesse/Documents/../notes.txt".toPath(normalize = true).toString() => "/Users/jesse/notes.txt"
actual fun String.toPath(normalize: Boolean): Path
actual fun String.toPath(normalize: Boolean): Path
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/compare-to.html b/3.x/okio/okio/okio/-path/compare-to.html new file mode 100644 index 0000000000..4a4406f87c --- /dev/null +++ b/3.x/okio/okio/okio/-path/compare-to.html @@ -0,0 +1,86 @@ + + + + + compareTo + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

compareTo

+
+
+
+
expect open operator override fun compareTo(other: Path): Int
actual open operator override fun compareTo(other: Path): Int
actual open operator override fun compareTo(other: Path): Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/div.html b/3.x/okio/okio/okio/-path/div.html new file mode 100644 index 0000000000..fc371badb6 --- /dev/null +++ b/3.x/okio/okio/okio/-path/div.html @@ -0,0 +1,86 @@ + + + + + div + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

div

+
+
+
+
expect operator fun div(child: String): Path
expect operator fun div(child: ByteString): Path
expect operator fun div(child: Path): Path

Returns a path that resolves child relative to this path. Note that the result isn't guaranteed to be normalized even if this and child are both normalized themselves.

If child is an absolute path or hasVolumeLetter then this function is equivalent to child.toPath().

@JvmName(name = "resolve")
actual operator fun div(child: String): Path
@JvmName(name = "resolve")
actual operator fun div(child: ByteString): Path
@JvmName(name = "resolve")
actual operator fun div(child: Path): Path
actual operator fun div(child: String): Path
actual operator fun div(child: ByteString): Path
actual operator fun div(child: Path): Path
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/equals.html b/3.x/okio/okio/okio/-path/equals.html new file mode 100644 index 0000000000..8fb084b460 --- /dev/null +++ b/3.x/okio/okio/okio/-path/equals.html @@ -0,0 +1,86 @@ + + + + + equals + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

equals

+
+
+
+
expect open operator override fun equals(other: Any?): Boolean
actual open operator override fun equals(other: Any?): Boolean
actual open operator override fun equals(other: Any?): Boolean
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/hash-code.html b/3.x/okio/okio/okio/-path/hash-code.html new file mode 100644 index 0000000000..b2f33b9caa --- /dev/null +++ b/3.x/okio/okio/okio/-path/hash-code.html @@ -0,0 +1,86 @@ + + + + + hashCode + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hashCode

+
+
+
+
expect open override fun hashCode(): Int
actual open override fun hashCode(): Int
actual open override fun hashCode(): Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/index.html b/3.x/okio/okio/okio/-path/index.html new file mode 100644 index 0000000000..a05e1474d9 --- /dev/null +++ b/3.x/okio/okio/okio/-path/index.html @@ -0,0 +1,476 @@ + + + + + Path + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Path

+
+
+
expect class Path : Comparable<Path>

A hierarchical address on a file system. A path is an identifier only; a FileSystem is required to access the file that a path refers to, if any.

UNIX and Windows Paths

----------------------

Paths follow different rules on UNIX vs. Windows operating systems. On UNIX operating systems (including Linux, Android, macOS, and iOS), the / slash character separates path segments. On Windows, the \ backslash character separates path segments. The two platforms each have their own rules for path resolution. This class implements all rules on all platforms; for example you can model a Linux path in a native Windows application.

Absolute and Relative Paths

---------------------------

  • Absolute paths identify a location independent of any working directory. On UNIX, absolute paths are prefixed with a slash, /. On Windows, absolute paths are one of two forms. The first is a volume letter, a colon, and a backslash, like C:\. The second is called a Universal Naming Convention (UNC) path, and it is prefixed by two backslashes \\. The term ‘fully-qualified path’ is a synonym of ‘absolute path’.

  • Relative paths are everything else. On their own, relative paths do not identify a location on a file system; they are relative to the system's current working directory. Use FileSystem.canonicalize to convert a relative path to its absolute path on a particular file system.

There are some special cases when working with relative paths.

On Windows, each volume (like A:\ and C:\) has its own current working directory. A path prefixed with a volume letter and colon but no slash (like A:letter.doc) is relative to the working directory on the named volume. For example, if the working directory on A:\ is A:\jesse, then the path A:letter.doc resolves to A:\jesse\letter.doc.

The path string C:\Windows is an absolute path when following Windows rules and a relative path when following UNIX rules. For example, if the current working directory is /Users/jesse, then C:\Windows resolves to /Users/jesse/C:/Windows.

This class decides which rules to follow by inspecting the first slash character in the path string. If the path contains no slash characters, it uses the host platform's rules. Or you may explicitly specify which rules to use by specifying the directorySeparator parameter in toPath. Pass "/" to get UNIX rules and "\" to get Windows rules.

Path Traversal

--------------

After the optional path root (like / on UNIX, like X:\ or \\ on Windows), the remainder of the path is a sequence of segments separated by / or \ characters. Segments satisfy these rules:

  • Segments are always non-empty.

  • If the segment is ., then the full path must be ..

  • For normalized paths, if the segment is .., then the path must be relative. All .. segments precede all other segments. In all cases, a segment .. cannot be the first segment of an absolute path.

The only path that ends with / is the file system root, /. The dot path . is a relative path that resolves to whichever path it is resolved against.

The name is the last segment in a path. It is typically a file or directory name, like README.md or Desktop. The name may be another special value:

  • The empty string is the name of the file system root path (full path /).

  • . is the name of the identity relative path (full path .).

  • .. is the name of a path consisting of only .. segments (such as ../../..).

Comparing Paths

---------------

Path implements Comparable, equals, and hashCode. If two paths are equal then they operate on the same file on the file system.

Note that the converse is not true: if two paths are non-equal, they may still resolve to the same file on the file system. Here are some of the ways non-equal paths resolve to the same file:

  • Case differences. The default file system on macOS is case-insensitive. The paths /Users/jesse/notes.txt and /USERS/JESSE/NOTES.TXT are non-equal but these paths resolve to the same file.

  • Mounting differences. Volumes may be mounted at multiple paths. On macOS, /Users/jesse/notes.txt and /Volumes/Macintosh HD/Users/jesse/notes.txt typically resolve to the same file. On Windows, C:\project\notes.txt and \\localhost\c$\project\notes.txt typically resolve to the same file.

  • Hard links. UNIX file systems permit multiple paths to refer for same file. The paths may be wildly different, like /Users/jesse/bruce_wayne.vcard and /Users/jesse/batman.vcard, but changes via either path are reflected in both.

  • Symlinks. Symlinks permit multiple paths and directories to refer to the same file. On macOS /tmp is symlinked to /private/tmp, so /tmp/notes.txt and /private/tmp/notes.txt resolve to the same file.

To test whether two paths refer to the same file, try FileSystem.canonicalize first. This follows symlinks and looks up the preserved casing for case-insensitive case-preserved paths. This method does not guarantee a unique result, however. For example, each hard link to a file may return its own canonical path.

Paths are sorted in case-sensitive order.

Sample Paths

------------

+ + + + + + + + + + + + + + + +
Path Parent Root Name Notes
`/` null `/` (empty) root
`/home/jesse/notes.txt` `/home/jesse` `/` `notes.txt` absolute path
`project/notes.txt` `project` null `notes.txt` relative path
`../../project/notes.txt` `../../project` null `notes.txt` relative path with traversal
`../../..` null null `..` relative path with traversal
`.` null null `.` current working directory
`C:\` null `C:\` (empty) volume root (Windows)
`C:\Windows\notepad.exe` `C:\Windows` `C:\` `notepad.exe` volume absolute path (Windows)
`\` null `\` (empty) absolute path (Windows)
`\Windows\notepad.exe` `\Windows` `\` `notepad.exe` absolute path (Windows)
`C:` null null (empty) volume-relative path (Windows)
`C:project\notes.txt` `C:project` null `notes.txt` volume-relative path (Windows)
`\\server` null `\\server` `server` UNC server (Windows)
`\\server\project\notes.txt` `\\server\project` `\\server` `notes.txt` UNC absolute path (Windows)
actual class Path : Comparable<Path>
actual class Path : Comparable<Path>
+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect object Companion
actual object Companion
actual object Companion
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect val isAbsolute: Boolean

This is true if root is not null.

actual val isAbsolute: Boolean
actual val isAbsolute: Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect val isRelative: Boolean

This is true if root is null.

actual val isRelative: Boolean
actual val isRelative: Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect val isRoot: Boolean

Returns true if this == this.root. That is, this is an absolute path with no parent.

actual val isRoot: Boolean
actual val isRoot: Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect val name: String
@get:JvmName(name = "name")
actual val name: String
actual val name: String
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect val nameBytes: ByteString
@get:JvmName(name = "nameBytes")
actual val nameBytes: ByteString
actual val nameBytes: ByteString
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect val parent: Path?

Returns the path immediately enclosing this path.

@get:JvmName(name = "parent")
actual val parent: Path?
actual val parent: Path?
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect val root: Path?

This is the root path if this is an absolute path, or null if it is a relative path. UNIX paths have a single root, /. Each volume on Windows is its own root, like C:\ and D:\. The path to the current volume \ is its own root. Windows UNC paths like \\server are also roots.

actual val root: Path?
actual val root: Path?
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect val segments: List<String>

The components of this path that are usually delimited by slashes. If the root is not null it precedes these segments. If this path is a root its segments list is empty.

actual val segments: List<String>
actual val segments: List<String>
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect val volumeLetter: Char?

This is the volume letter like "C" on Windows paths that starts with a volume letter. For example, on the path "C:\Windows" this returns "C". This property is null if this is not a Windows path, or if it doesn't have a volume letter.

@get:JvmName(name = "volumeLetter")
actual val volumeLetter: Char?
actual val volumeLetter: Char?
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open operator override fun compareTo(other: Path): Int
actual open operator override fun compareTo(other: Path): Int
actual open operator override fun compareTo(other: Path): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect operator fun div(child: String): Path
expect operator fun div(child: ByteString): Path
expect operator fun div(child: Path): Path

Returns a path that resolves child relative to this path. Note that the result isn't guaranteed to be normalized even if this and child are both normalized themselves.

@JvmName(name = "resolve")
actual operator fun div(child: String): Path
@JvmName(name = "resolve")
actual operator fun div(child: ByteString): Path
@JvmName(name = "resolve")
actual operator fun div(child: Path): Path
actual operator fun div(child: String): Path
actual operator fun div(child: ByteString): Path
actual operator fun div(child: Path): Path
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open operator override fun equals(other: Any?): Boolean
actual open operator override fun equals(other: Any?): Boolean
actual open operator override fun equals(other: Any?): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun hashCode(): Int
actual open override fun hashCode(): Int
actual open override fun hashCode(): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun normalized(): Path

Returns the normalized version of this path. This has the same effect as this.toString().toPath(normalize = true).

actual fun normalized(): Path
actual fun normalized(): Path
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun relativeTo(other: Path): Path

Returns this path relative to other. This effectively inverts the resolve operator, /. For any two paths a and b that have the same root, a / (b.relativeTo(a)) is equal to b. If both paths don't use the same slash, the resolved path will use the slash of the other path.

actual fun relativeTo(other: Path): Path
actual fun relativeTo(other: Path): Path
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect fun resolve(child: String, normalize: Boolean = false): Path
expect fun resolve(child: ByteString, normalize: Boolean = false): Path
expect fun resolve(child: Path, normalize: Boolean = false): Path

Returns a path that resolves child relative to this path.

actual fun resolve(child: String, normalize: Boolean): Path
actual fun resolve(child: ByteString, normalize: Boolean): Path
actual fun resolve(child: Path, normalize: Boolean): Path
actual fun resolve(child: String, normalize: Boolean): Path
actual fun resolve(child: ByteString, normalize: Boolean): Path
actual fun resolve(child: Path, normalize: Boolean): Path
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun toFile(): File
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open override fun toString(): String
actual open override fun toString(): String
actual open override fun toString(): String
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/is-absolute.html b/3.x/okio/okio/okio/-path/is-absolute.html new file mode 100644 index 0000000000..b4c0997471 --- /dev/null +++ b/3.x/okio/okio/okio/-path/is-absolute.html @@ -0,0 +1,86 @@ + + + + + isAbsolute + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

isAbsolute

+
+
+
+
expect val isAbsolute: Boolean

This is true if root is not null.

actual val isAbsolute: Boolean
actual val isAbsolute: Boolean
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/is-relative.html b/3.x/okio/okio/okio/-path/is-relative.html new file mode 100644 index 0000000000..fe26174205 --- /dev/null +++ b/3.x/okio/okio/okio/-path/is-relative.html @@ -0,0 +1,86 @@ + + + + + isRelative + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

isRelative

+
+
+
+
expect val isRelative: Boolean

This is true if root is null.

actual val isRelative: Boolean
actual val isRelative: Boolean
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/is-root.html b/3.x/okio/okio/okio/-path/is-root.html new file mode 100644 index 0000000000..04908fd6c9 --- /dev/null +++ b/3.x/okio/okio/okio/-path/is-root.html @@ -0,0 +1,86 @@ + + + + + isRoot + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

isRoot

+
+
+
+
expect val isRoot: Boolean

Returns true if this == this.root. That is, this is an absolute path with no parent.

actual val isRoot: Boolean
actual val isRoot: Boolean
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/name-bytes.html b/3.x/okio/okio/okio/-path/name-bytes.html new file mode 100644 index 0000000000..820f172008 --- /dev/null +++ b/3.x/okio/okio/okio/-path/name-bytes.html @@ -0,0 +1,86 @@ + + + + + nameBytes + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

nameBytes

+
+
+
+
expect val nameBytes: ByteString
@get:JvmName(name = "nameBytes")
actual val nameBytes: ByteString
actual val nameBytes: ByteString
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/name.html b/3.x/okio/okio/okio/-path/name.html new file mode 100644 index 0000000000..1fead93d5b --- /dev/null +++ b/3.x/okio/okio/okio/-path/name.html @@ -0,0 +1,86 @@ + + + + + name + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

name

+
+
+
+
expect val name: String
@get:JvmName(name = "name")
actual val name: String
actual val name: String
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/normalized.html b/3.x/okio/okio/okio/-path/normalized.html new file mode 100644 index 0000000000..86e2b6a3b9 --- /dev/null +++ b/3.x/okio/okio/okio/-path/normalized.html @@ -0,0 +1,86 @@ + + + + + normalized + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

normalized

+
+
+
+
expect fun normalized(): Path

Returns the normalized version of this path. This has the same effect as this.toString().toPath(normalize = true).

actual fun normalized(): Path
actual fun normalized(): Path
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/parent.html b/3.x/okio/okio/okio/-path/parent.html new file mode 100644 index 0000000000..bec9bbce1a --- /dev/null +++ b/3.x/okio/okio/okio/-path/parent.html @@ -0,0 +1,86 @@ + + + + + parent + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

parent

+
+
+
+
expect val parent: Path?

Returns the path immediately enclosing this path.

This returns null if this has no parent. That includes these paths:

  • The file system root (/)

  • The identity relative path (.)

  • A Windows volume root (like C:\)

  • A Windows Universal Naming Convention (UNC) root path (\\server)

  • A reference to the current working directory on a Windows volume (C:).

  • A series of relative paths (like .. and ../..).

@get:JvmName(name = "parent")
actual val parent: Path?
actual val parent: Path?
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/relative-to.html b/3.x/okio/okio/okio/-path/relative-to.html new file mode 100644 index 0000000000..c08e532223 --- /dev/null +++ b/3.x/okio/okio/okio/-path/relative-to.html @@ -0,0 +1,86 @@ + + + + + relativeTo + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

relativeTo

+
+
+
+
expect fun relativeTo(other: Path): Path

Returns this path relative to other. This effectively inverts the resolve operator, /. For any two paths a and b that have the same root, a / (b.relativeTo(a)) is equal to b. If both paths don't use the same slash, the resolved path will use the slash of the other path.

Throws

if this path and the other path are not both absolute paths or both relative paths, or if they are both absolute paths but of different roots (C: vs D:, or C: vs \\server, etc.). It will also throw if the relative path is impossible to resolve. For instance, it is impossible to resolve the path ../a relative to ../../b.

actual fun relativeTo(other: Path): Path
actual fun relativeTo(other: Path): Path
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/resolve.html b/3.x/okio/okio/okio/-path/resolve.html new file mode 100644 index 0000000000..7f74ae29b0 --- /dev/null +++ b/3.x/okio/okio/okio/-path/resolve.html @@ -0,0 +1,86 @@ + + + + + resolve + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

resolve

+
+
+
+
expect fun resolve(child: String, normalize: Boolean = false): Path
expect fun resolve(child: ByteString, normalize: Boolean = false): Path
expect fun resolve(child: Path, normalize: Boolean = false): Path

Returns a path that resolves child relative to this path.

Set normalize to true to eagerly consume .. segments on the resolved path. In all cases, leading .. on absolute paths will be removed. If normalize is false, note that the result isn't guaranteed to be normalized even if this and child are both normalized themselves.

If child is an absolute path or hasVolumeLetter then this function is equivalent to child.toPath(normalize).

actual fun resolve(child: String, normalize: Boolean): Path
actual fun resolve(child: ByteString, normalize: Boolean): Path
actual fun resolve(child: Path, normalize: Boolean): Path
actual fun resolve(child: String, normalize: Boolean): Path
actual fun resolve(child: ByteString, normalize: Boolean): Path
actual fun resolve(child: Path, normalize: Boolean): Path
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/root.html b/3.x/okio/okio/okio/-path/root.html new file mode 100644 index 0000000000..b2ebb68570 --- /dev/null +++ b/3.x/okio/okio/okio/-path/root.html @@ -0,0 +1,86 @@ + + + + + root + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

root

+
+
+
+
expect val root: Path?

This is the root path if this is an absolute path, or null if it is a relative path. UNIX paths have a single root, /. Each volume on Windows is its own root, like C:\ and D:\. The path to the current volume \ is its own root. Windows UNC paths like \\server are also roots.

actual val root: Path?
actual val root: Path?
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/segments-bytes.html b/3.x/okio/okio/okio/-path/segments-bytes.html new file mode 100644 index 0000000000..8ff1ea96a5 --- /dev/null +++ b/3.x/okio/okio/okio/-path/segments-bytes.html @@ -0,0 +1,86 @@ + + + + + segmentsBytes + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

segmentsBytes

+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/segments.html b/3.x/okio/okio/okio/-path/segments.html new file mode 100644 index 0000000000..afa539691a --- /dev/null +++ b/3.x/okio/okio/okio/-path/segments.html @@ -0,0 +1,86 @@ + + + + + segments + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

segments

+
+
+
+
expect val segments: List<String>

The components of this path that are usually delimited by slashes. If the root is not null it precedes these segments. If this path is a root its segments list is empty.

actual val segments: List<String>
actual val segments: List<String>
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/to-file.html b/3.x/okio/okio/okio/-path/to-file.html new file mode 100644 index 0000000000..4b05b3b142 --- /dev/null +++ b/3.x/okio/okio/okio/-path/to-file.html @@ -0,0 +1,84 @@ + + + + + toFile + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toFile

+
+
+
+
fun toFile(): File
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/to-nio-path.html b/3.x/okio/okio/okio/-path/to-nio-path.html new file mode 100644 index 0000000000..bc9d7a13c1 --- /dev/null +++ b/3.x/okio/okio/okio/-path/to-nio-path.html @@ -0,0 +1,84 @@ + + + + + toNioPath + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toNioPath

+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/to-string.html b/3.x/okio/okio/okio/-path/to-string.html new file mode 100644 index 0000000000..f9af6289a7 --- /dev/null +++ b/3.x/okio/okio/okio/-path/to-string.html @@ -0,0 +1,86 @@ + + + + + toString + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

toString

+
+
+
+
expect open override fun toString(): String
actual open override fun toString(): String
actual open override fun toString(): String
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-path/volume-letter.html b/3.x/okio/okio/okio/-path/volume-letter.html new file mode 100644 index 0000000000..e28a569a7b --- /dev/null +++ b/3.x/okio/okio/okio/-path/volume-letter.html @@ -0,0 +1,86 @@ + + + + + volumeLetter + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

volumeLetter

+
+
+
+
expect val volumeLetter: Char?

This is the volume letter like "C" on Windows paths that starts with a volume letter. For example, on the path "C:\Windows" this returns "C". This property is null if this is not a Windows path, or if it doesn't have a volume letter.

Note that paths that start with a volume letter are not necessarily absolute paths. For example, the path "C:notepad.exe" is relative to whatever the current working directory is on the C: drive.

@get:JvmName(name = "volumeLetter")
actual val volumeLetter: Char?
actual val volumeLetter: Char?
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-pipe/-pipe.html b/3.x/okio/okio/okio/-pipe/-pipe.html new file mode 100644 index 0000000000..197bacce0a --- /dev/null +++ b/3.x/okio/okio/okio/-pipe/-pipe.html @@ -0,0 +1,84 @@ + + + + + Pipe + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Pipe

+
+
+
+
constructor(maxBufferSize: Long)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-pipe/cancel.html b/3.x/okio/okio/okio/-pipe/cancel.html new file mode 100644 index 0000000000..04bb9dc8be --- /dev/null +++ b/3.x/okio/okio/okio/-pipe/cancel.html @@ -0,0 +1,84 @@ + + + + + cancel + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

cancel

+
+
+
+
fun cancel()

Fail any in-flight and future operations. After canceling:

Closing the source and the sink will complete normally even after a pipe has been canceled. If this sink has been folded, closing it will close the folded sink. This operation may block.

This operation may be called by any thread at any time. It is safe to call concurrently while operating on the source or the sink.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-pipe/condition.html b/3.x/okio/okio/okio/-pipe/condition.html new file mode 100644 index 0000000000..5da5b4437a --- /dev/null +++ b/3.x/okio/okio/okio/-pipe/condition.html @@ -0,0 +1,84 @@ + + + + + condition + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

condition

+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-pipe/fold.html b/3.x/okio/okio/okio/-pipe/fold.html new file mode 100644 index 0000000000..2e7238f9b7 --- /dev/null +++ b/3.x/okio/okio/okio/-pipe/fold.html @@ -0,0 +1,84 @@ + + + + + fold + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

fold

+
+
+
+
fun fold(sink: Sink)

Writes any buffered contents of this pipe to sink, then replace this pipe's source with sink. This pipe's source is closed and attempts to read it will throw an IllegalStateException.

This method must not be called while concurrently accessing this pipe's source. It is safe, however, to call this while concurrently writing this pipe's sink.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-pipe/index.html b/3.x/okio/okio/okio/-pipe/index.html new file mode 100644 index 0000000000..3fc7cf0c09 --- /dev/null +++ b/3.x/okio/okio/okio/-pipe/index.html @@ -0,0 +1,220 @@ + + + + + Pipe + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Pipe

+
+
+
class Pipe(maxBufferSize: Long)

A source and a sink that are attached. The sink's output is the source's input. Typically each is accessed by its own thread: a producer thread writes data to the sink and a consumer thread reads data from the source.

This class uses a buffer to decouple source and sink. This buffer has a user-specified maximum size. When a producer thread outruns its consumer the buffer fills up and eventually writes to the sink will block until the consumer has caught up. Symmetrically, if a consumer outruns its producer reads block until there is data to be read. Limits on the amount of time spent waiting for the other party can be configured with timeouts on the source and the sink.

When the sink is closed, source reads will continue to complete normally until the buffer has been exhausted. At that point reads will return -1, indicating the end of the stream. But if the source is closed first, writes to the sink will immediately fail with an IOException.

A pipe may be canceled to immediately fail writes to the sink and reads from the source.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
constructor(maxBufferSize: Long)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
@get:JvmName(name = "sink")
val sink: Sink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
@get:JvmName(name = "source")
val source: Source
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun cancel()

Fail any in-flight and future operations. After canceling:

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun fold(sink: Sink)

Writes any buffered contents of this pipe to sink, then replace this pipe's source with sink. This pipe's source is closed and attempts to read it will throw an IllegalStateException.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-pipe/lock.html b/3.x/okio/okio/okio/-pipe/lock.html new file mode 100644 index 0000000000..8842c182ab --- /dev/null +++ b/3.x/okio/okio/okio/-pipe/lock.html @@ -0,0 +1,84 @@ + + + + + lock + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

lock

+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-pipe/sink.html b/3.x/okio/okio/okio/-pipe/sink.html new file mode 100644 index 0000000000..5f95aea95d --- /dev/null +++ b/3.x/okio/okio/okio/-pipe/sink.html @@ -0,0 +1,84 @@ + + + + + sink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sink

+
+
+
+
@get:JvmName(name = "sink")
val sink: Sink
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-pipe/source.html b/3.x/okio/okio/okio/-pipe/source.html new file mode 100644 index 0000000000..4ad10762c2 --- /dev/null +++ b/3.x/okio/okio/okio/-pipe/source.html @@ -0,0 +1,84 @@ + + + + + source + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

source

+
+
+
+
@get:JvmName(name = "source")
val source: Source
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-protocol-exception/-protocol-exception.html b/3.x/okio/okio/okio/-protocol-exception/-protocol-exception.html new file mode 100644 index 0000000000..573802321e --- /dev/null +++ b/3.x/okio/okio/okio/-protocol-exception/-protocol-exception.html @@ -0,0 +1,85 @@ + + + + + ProtocolException + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

ProtocolException

+
+
+
+
expect constructor(message: String)
actual constructor(message: String)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-protocol-exception/index.html b/3.x/okio/okio/okio/-protocol-exception/index.html new file mode 100644 index 0000000000..352faae335 --- /dev/null +++ b/3.x/okio/okio/okio/-protocol-exception/index.html @@ -0,0 +1,150 @@ + + + + + ProtocolException + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

ProtocolException

+
+
+
expect class ProtocolException(message: String) : IOException
actual class ProtocolException(message: String) : IOException
+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect constructor(message: String)
actual constructor(message: String)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+
cause
+ +
Link copied to clipboard
+
+
+
+
+
+
open val cause: Throwable?
open val cause: Throwable?
+
+
+
+
+ +
+
+
+
message
+ +
Link copied to clipboard
+
+
+
+
+
+
open val message: String?
open val message: String?
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-s-y-s-t-e-m.html b/3.x/okio/okio/okio/-s-y-s-t-e-m.html new file mode 100644 index 0000000000..a468bdb981 --- /dev/null +++ b/3.x/okio/okio/okio/-s-y-s-t-e-m.html @@ -0,0 +1,84 @@ + + + + + SYSTEM + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

SYSTEM

+
+
+
+
expect val FileSystem.Companion.SYSTEM: FileSystem
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-sink/close.html b/3.x/okio/okio/okio/-sink/close.html new file mode 100644 index 0000000000..74285804b2 --- /dev/null +++ b/3.x/okio/okio/okio/-sink/close.html @@ -0,0 +1,86 @@ + + + + + close + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

close

+
+
+
+
expect abstract override fun close()

Pushes all buffered bytes to their final destination and releases the resources held by this sink. It is an error to write a closed sink. It is safe to close a sink more than once.

actual abstract override fun close()
actual abstract override fun close()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-sink/flush.html b/3.x/okio/okio/okio/-sink/flush.html new file mode 100644 index 0000000000..139ba2b9c5 --- /dev/null +++ b/3.x/okio/okio/okio/-sink/flush.html @@ -0,0 +1,86 @@ + + + + + flush + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

flush

+
+
+
+
expect abstract fun flush()

Pushes all buffered bytes to their final destination.

actual abstract override fun flush()
actual abstract fun flush()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-sink/index.html b/3.x/okio/okio/okio/-sink/index.html new file mode 100644 index 0000000000..7e74bca3cf --- /dev/null +++ b/3.x/okio/okio/okio/-sink/index.html @@ -0,0 +1,249 @@ + + + + + Sink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Sink

+
+
+
expect interface Sink : Closeable

Receives a stream of bytes. Use this interface to write data wherever it's needed: to the network, storage, or a buffer in memory. Sinks may be layered to transform received data, such as to compress, encrypt, throttle, or add protocol framing.

Most application code shouldn't operate on a sink directly, but rather on a BufferedSink which is both more efficient and more convenient. Use buffer to wrap any sink with a buffer.

Sinks are easy to test: just use a Buffer in your tests, and read from it to confirm it received the data that was expected.

Comparison with OutputStream

This interface is functionally equivalent to java.io.OutputStream.

OutputStream requires multiple layers when emitted data is heterogeneous: a DataOutputStream for primitive values, a BufferedOutputStream for buffering, and OutputStreamWriter for charset encoding. This library uses BufferedSink for all of the above.

Sink is also easier to layer: there is no java.io.OutputStream.write method that is awkward to implement efficiently.

Interop with OutputStream

Use sink to adapt an OutputStream to a sink. Use BufferedSink.outputStream to adapt a sink to an OutputStream.

Inheritors

actual interface Sink : Closeable

Inheritors

+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a new sink that buffers writes to sink. The returned sink will batch writes to sink. Use this wherever you write to a sink to get an ergonomic and efficient access to data.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that uses cipher to encrypt or decrypt this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract override fun close()

Pushes all buffered bytes to their final destination and releases the resources held by this sink. It is an error to write a closed sink. It is safe to close a sink more than once.

actual abstract override fun close()
actual abstract override fun close()
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Sink.deflate(deflater: Deflater = Deflater()): DeflaterSink

Returns an DeflaterSink that DEFLATE-compresses data to this Sink while writing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun flush()

Pushes all buffered bytes to their final destination.

actual abstract override fun flush()
actual abstract fun flush()
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Sink.gzip(): GzipSink

Returns a GzipSink that gzip-compresses to this Sink while writing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that uses digest to hash this.

Returns a sink that uses mac to hash this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun timeout(): Timeout

Returns the timeout for this sink.

actual abstract fun timeout(): Timeout
actual abstract fun timeout(): Timeout
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract fun write(source: Buffer, byteCount: Long)

Removes byteCount bytes from source and appends them to this.

actual abstract fun write(source: Buffer, byteCount: Long)
actual abstract fun write(source: Buffer, byteCount: Long)
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-sink/timeout.html b/3.x/okio/okio/okio/-sink/timeout.html new file mode 100644 index 0000000000..eaf1b05bec --- /dev/null +++ b/3.x/okio/okio/okio/-sink/timeout.html @@ -0,0 +1,86 @@ + + + + + timeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

timeout

+
+
+
+
expect abstract fun timeout(): Timeout

Returns the timeout for this sink.

actual abstract fun timeout(): Timeout
actual abstract fun timeout(): Timeout
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-sink/write.html b/3.x/okio/okio/okio/-sink/write.html new file mode 100644 index 0000000000..c9906376d1 --- /dev/null +++ b/3.x/okio/okio/okio/-sink/write.html @@ -0,0 +1,86 @@ + + + + + write + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

write

+
+
+
+
expect abstract fun write(source: Buffer, byteCount: Long)

Removes byteCount bytes from source and appends them to this.

actual abstract fun write(source: Buffer, byteCount: Long)
actual abstract fun write(source: Buffer, byteCount: Long)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-source/close.html b/3.x/okio/okio/okio/-source/close.html new file mode 100644 index 0000000000..c7cc43ba5d --- /dev/null +++ b/3.x/okio/okio/okio/-source/close.html @@ -0,0 +1,84 @@ + + + + + close + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

close

+
+
+
+
abstract override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-source/index.html b/3.x/okio/okio/okio/-source/index.html new file mode 100644 index 0000000000..5cc30f4f07 --- /dev/null +++ b/3.x/okio/okio/okio/-source/index.html @@ -0,0 +1,231 @@ + + + + + Source + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Source

+
+
+
interface Source : Closeable

Supplies a stream of bytes. Use this interface to read data from wherever it's located: from the network, storage, or a buffer in memory. Sources may be layered to transform supplied data, such as to decompress, decrypt, or remove protocol framing.

Most applications shouldn't operate on a source directly, but rather on a BufferedSource which is both more efficient and more convenient. Use buffer to wrap any source with a buffer.

Sources are easy to test: just use a Buffer in your tests, and fill it with the data your application is to read.

Comparison with InputStream

This interface is functionally equivalent to java.io.InputStream.

InputStream requires multiple layers when consumed data is heterogeneous: a DataInputStream for primitive values, a BufferedInputStream for buffering, and InputStreamReader for strings. This library uses BufferedSource for all of the above.

Source avoids the impossible-to-implement java.io.InputStream.available method. Instead callers specify how many bytes they require.

Source omits the unsafe-to-compose java.io.InputStream.mark state that's tracked by InputStream; instead, callers just buffer what they need.

When implementing a source, you don't need to worry about the java.io.InputStream.read method that is awkward to implement efficiently and returns one of 257 possible values.

And source has a stronger skip method: BufferedSource.skip won't return prematurely.

Interop with InputStream

Use source to adapt an InputStream to a source. Use BufferedSource.inputStream to adapt a source to an InputStream.

Inheritors

+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a new source that buffers reads from source. The returned source will perform bulk reads into its in-memory buffer. Use this wherever you read a source to get an ergonomic and efficient access to data.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a source that uses cipher to encrypt or decrypt this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
abstract override fun close()

Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Source.gzip(): GzipSource

Returns a GzipSource that gzip-decompresses this Source while reading.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a source that uses digest to hash this.

Returns a source that uses mac to hash this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Source.inflate(inflater: Inflater = Inflater()): InflaterSource

Returns an InflaterSource that DEFLATE-decompresses this Source while reading.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
abstract fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
abstract fun timeout(): Timeout

Returns the timeout for this source.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-source/read.html b/3.x/okio/okio/okio/-source/read.html new file mode 100644 index 0000000000..618af571a2 --- /dev/null +++ b/3.x/okio/okio/okio/-source/read.html @@ -0,0 +1,84 @@ + + + + + read + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

read

+
+
+
+
abstract fun read(sink: Buffer, byteCount: Long): Long

Removes at least 1, and up to byteCount bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-source/timeout.html b/3.x/okio/okio/okio/-source/timeout.html new file mode 100644 index 0000000000..a5d6c012da --- /dev/null +++ b/3.x/okio/okio/okio/-source/timeout.html @@ -0,0 +1,84 @@ + + + + + timeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

timeout

+
+
+
+
abstract fun timeout(): Timeout

Returns the timeout for this source.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-throttler/-throttler.html b/3.x/okio/okio/okio/-throttler/-throttler.html new file mode 100644 index 0000000000..8506f49a54 --- /dev/null +++ b/3.x/okio/okio/okio/-throttler/-throttler.html @@ -0,0 +1,84 @@ + + + + + Throttler + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Throttler

+
+
+
+
constructor()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-throttler/bytes-per-second.html b/3.x/okio/okio/okio/-throttler/bytes-per-second.html new file mode 100644 index 0000000000..7a670006e8 --- /dev/null +++ b/3.x/okio/okio/okio/-throttler/bytes-per-second.html @@ -0,0 +1,84 @@ + + + + + bytesPerSecond + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

bytesPerSecond

+
+
+
+
fun bytesPerSecond(bytesPerSecond: Long, waitByteCount: Long = this.waitByteCount, maxByteCount: Long = this.maxByteCount)

Sets the rate at which bytes will be allocated. Use 0 for no limit.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-throttler/condition.html b/3.x/okio/okio/okio/-throttler/condition.html new file mode 100644 index 0000000000..6ed98d860e --- /dev/null +++ b/3.x/okio/okio/okio/-throttler/condition.html @@ -0,0 +1,84 @@ + + + + + condition + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

condition

+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-throttler/index.html b/3.x/okio/okio/okio/-throttler/index.html new file mode 100644 index 0000000000..c417c070f7 --- /dev/null +++ b/3.x/okio/okio/okio/-throttler/index.html @@ -0,0 +1,203 @@ + + + + + Throttler + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Throttler

+
+
+
class Throttler

Enables limiting of Source and Sink throughput. Attach to this throttler via source and sink and set the desired throughput via bytesPerSecond. Multiple Sources and Sinks can be attached to a single Throttler and they will be throttled as a group, where their combined throughput will not exceed the desired throughput. The same Source or Sink can be attached to multiple Throttlers and its throughput will not exceed the desired throughput of any of the Throttlers.

This class has these tuning parameters:

  • bytesPerSecond: Maximum sustained throughput. Use 0 for no limit.

  • waitByteCount: When the requested byte count is greater than this many bytes and isn't immediately available, only wait until we can allocate at least this many bytes. Use this to set the ideal byte count during sustained throughput.

  • maxByteCount: Maximum number of bytes to allocate on any call. This is also the number of bytes that will be returned before any waiting.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
constructor()
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun bytesPerSecond(bytesPerSecond: Long, waitByteCount: Long = this.waitByteCount, maxByteCount: Long = this.maxByteCount)

Sets the rate at which bytes will be allocated. Use 0 for no limit.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun sink(sink: Sink): Sink

Create a Sink which honors this Throttler.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun source(source: Source): Source

Create a Source which honors this Throttler.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-throttler/lock.html b/3.x/okio/okio/okio/-throttler/lock.html new file mode 100644 index 0000000000..869ea97f0a --- /dev/null +++ b/3.x/okio/okio/okio/-throttler/lock.html @@ -0,0 +1,84 @@ + + + + + lock + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

lock

+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-throttler/sink.html b/3.x/okio/okio/okio/-throttler/sink.html new file mode 100644 index 0000000000..c91e90b1da --- /dev/null +++ b/3.x/okio/okio/okio/-throttler/sink.html @@ -0,0 +1,84 @@ + + + + + sink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sink

+
+
+
+
fun sink(sink: Sink): Sink

Create a Sink which honors this Throttler.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-throttler/source.html b/3.x/okio/okio/okio/-throttler/source.html new file mode 100644 index 0000000000..b96cd369e8 --- /dev/null +++ b/3.x/okio/okio/okio/-throttler/source.html @@ -0,0 +1,84 @@ + + + + + source + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

source

+
+
+
+
fun source(source: Source): Source

Create a Source which honors this Throttler.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-timeout/-companion/-n-o-n-e.html b/3.x/okio/okio/okio/-timeout/-companion/-n-o-n-e.html new file mode 100644 index 0000000000..e868530ab4 --- /dev/null +++ b/3.x/okio/okio/okio/-timeout/-companion/-n-o-n-e.html @@ -0,0 +1,86 @@ + + + + + NONE + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

NONE

+
+
+
+
expect val NONE: Timeout

An empty timeout that neither tracks nor detects timeouts. Use this when timeouts aren't necessary, such as in implementations whose operations do not block.

actual val NONE: Timeout
actual val NONE: Timeout
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-timeout/-companion/index.html b/3.x/okio/okio/okio/-timeout/-companion/index.html new file mode 100644 index 0000000000..731f0239ef --- /dev/null +++ b/3.x/okio/okio/okio/-timeout/-companion/index.html @@ -0,0 +1,150 @@ + + + + + Companion + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Companion

+
+
+
expect object Companion
actual object Companion
actual object Companion
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect val NONE: Timeout

An empty timeout that neither tracks nor detects timeouts. Use this when timeouts aren't necessary, such as in implementations whose operations do not block.

actual val NONE: Timeout
actual val NONE: Timeout
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun minTimeout(aNanos: Long, bNanos: Long): Long
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun Timeout.timeout(timeout: Long, unit: DurationUnit): Timeout
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-timeout/-companion/min-timeout.html b/3.x/okio/okio/okio/-timeout/-companion/min-timeout.html new file mode 100644 index 0000000000..9428fd080b --- /dev/null +++ b/3.x/okio/okio/okio/-timeout/-companion/min-timeout.html @@ -0,0 +1,84 @@ + + + + + minTimeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

minTimeout

+
+
+
+
fun minTimeout(aNanos: Long, bNanos: Long): Long
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-timeout/-companion/timeout.html b/3.x/okio/okio/okio/-timeout/-companion/timeout.html new file mode 100644 index 0000000000..cc6bb64036 --- /dev/null +++ b/3.x/okio/okio/okio/-timeout/-companion/timeout.html @@ -0,0 +1,84 @@ + + + + + timeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

timeout

+
+
+
+
fun Timeout.timeout(timeout: Long, unit: DurationUnit): Timeout
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-timeout/-timeout.html b/3.x/okio/okio/okio/-timeout/-timeout.html new file mode 100644 index 0000000000..ed87dacdd3 --- /dev/null +++ b/3.x/okio/okio/okio/-timeout/-timeout.html @@ -0,0 +1,85 @@ + + + + + Timeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Timeout

+
+
+
+
constructor()
constructor()
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-timeout/await-signal.html b/3.x/okio/okio/okio/-timeout/await-signal.html new file mode 100644 index 0000000000..984c682f15 --- /dev/null +++ b/3.x/okio/okio/okio/-timeout/await-signal.html @@ -0,0 +1,84 @@ + + + + + awaitSignal + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

awaitSignal

+
+
+
+
open fun awaitSignal(condition: Condition)

Waits on monitor until it is signaled. Throws InterruptedIOException if either the thread is interrupted or if this timeout elapses before monitor is signaled. The caller must hold the lock that monitor is bound to.

Here's a sample class that uses awaitSignal() to await a specific state. Note that the call is made within a loop to avoid unnecessary waiting and to mitigate spurious notifications.

class Dice {
Random random = new Random();
int latestTotal;

ReentrantLock lock = new ReentrantLock();
Condition condition = lock.newCondition();

public void roll() {
lock.withLock {
latestTotal = 2 + random.nextInt(6) + random.nextInt(6);
System.out.println("Rolled " + latestTotal);
condition.signalAll();
}
}

public void rollAtFixedRate(int period, TimeUnit timeUnit) {
Executors.newScheduledThreadPool(0).scheduleAtFixedRate(new Runnable() {
public void run() {
roll();
}
}, 0, period, timeUnit);
}

public void awaitTotal(Timeout timeout, int total)
throws InterruptedIOException {
lock.withLock {
while (latestTotal != total) {
timeout.awaitSignal(this);
}
}
}
}
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-timeout/cancel.html b/3.x/okio/okio/okio/-timeout/cancel.html new file mode 100644 index 0000000000..2cd4642c0b --- /dev/null +++ b/3.x/okio/okio/okio/-timeout/cancel.html @@ -0,0 +1,84 @@ + + + + + cancel + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

cancel

+
+
+
+
open fun cancel()

Prevent all current applications of this timeout from firing. Use this when a time-limited operation should no longer be time-limited because the nature of the operation has changed.

This function does not mutate the deadlineNanoTime or timeoutNanos properties of this timeout. It only applies to active operations that are limited by this timeout, and applies by allowing those operations to run indefinitely.

Subclasses that override this method must call super.cancel().

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-timeout/clear-deadline.html b/3.x/okio/okio/okio/-timeout/clear-deadline.html new file mode 100644 index 0000000000..a14beea145 --- /dev/null +++ b/3.x/okio/okio/okio/-timeout/clear-deadline.html @@ -0,0 +1,84 @@ + + + + + clearDeadline + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

clearDeadline

+
+
+
+

Clears the deadline.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-timeout/clear-timeout.html b/3.x/okio/okio/okio/-timeout/clear-timeout.html new file mode 100644 index 0000000000..b917977d98 --- /dev/null +++ b/3.x/okio/okio/okio/-timeout/clear-timeout.html @@ -0,0 +1,84 @@ + + + + + clearTimeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

clearTimeout

+
+
+
+
open fun clearTimeout(): Timeout

Clears the timeout. Operating system timeouts may still apply.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-timeout/deadline-nano-time.html b/3.x/okio/okio/okio/-timeout/deadline-nano-time.html new file mode 100644 index 0000000000..401ad85886 --- /dev/null +++ b/3.x/okio/okio/okio/-timeout/deadline-nano-time.html @@ -0,0 +1,84 @@ + + + + + deadlineNanoTime + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

deadlineNanoTime

+
+
+
+

Returns the nano time when the deadline will be reached.

Throws

if no deadline is set.


open fun deadlineNanoTime(deadlineNanoTime: Long): Timeout

Sets the nano time when the deadline will be reached. All operations must complete before this time. Use a deadline to set a maximum bound on the time spent on a sequence of operations.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-timeout/deadline.html b/3.x/okio/okio/okio/-timeout/deadline.html new file mode 100644 index 0000000000..cd190d31a6 --- /dev/null +++ b/3.x/okio/okio/okio/-timeout/deadline.html @@ -0,0 +1,84 @@ + + + + + deadline + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

deadline

+
+
+
+
fun deadline(duration: Long, unit: TimeUnit): Timeout

Set a deadline of now plus duration time.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-timeout/has-deadline.html b/3.x/okio/okio/okio/-timeout/has-deadline.html new file mode 100644 index 0000000000..b1af79b488 --- /dev/null +++ b/3.x/okio/okio/okio/-timeout/has-deadline.html @@ -0,0 +1,84 @@ + + + + + hasDeadline + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hasDeadline

+
+
+
+
open fun hasDeadline(): Boolean

Returns true if a deadline is enabled.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-timeout/index.html b/3.x/okio/okio/okio/-timeout/index.html new file mode 100644 index 0000000000..3475f21646 --- /dev/null +++ b/3.x/okio/okio/okio/-timeout/index.html @@ -0,0 +1,358 @@ + + + + + Timeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Timeout

+
+
+
expect open class Timeout

A policy on how much time to spend on a task before giving up. When a task times out, it is left in an unspecified state and should be abandoned. For example, if reading from a source times out, that source should be closed and the read should be retried later. If writing to a sink times out, the same rules apply: close the sink and retry later.

Timeouts and Deadlines

This class offers two complementary controls to define a timeout policy.

Timeouts specify the maximum time to wait for a single operation to complete. Timeouts are typically used to detect problems like network partitions. For example, if a remote peer doesn't return any data for ten seconds, we may assume that the peer is unavailable.

Deadlines specify the maximum time to spend on a job, composed of one or more operations. Use deadlines to set an upper bound on the time invested on a job. For example, a battery-conscious app may limit how much time it spends pre-loading content.

actual open class Timeout

Inheritors

actual open class Timeout
+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
constructor()
constructor()
+
+
+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect object Companion
actual object Companion
actual object Companion
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open fun awaitSignal(condition: Condition)

Waits on monitor until it is signaled. Throws InterruptedIOException if either the thread is interrupted or if this timeout elapses before monitor is signaled. The caller must hold the lock that monitor is bound to.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open fun cancel()

Prevent all current applications of this timeout from firing. Use this when a time-limited operation should no longer be time-limited because the nature of the operation has changed.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Clears the deadline.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open fun clearTimeout(): Timeout

Clears the timeout. Operating system timeouts may still apply.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun deadline(duration: Long, unit: TimeUnit): Timeout

Set a deadline of now plus duration time.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns the nano time when the deadline will be reached.

open fun deadlineNanoTime(deadlineNanoTime: Long): Timeout

Sets the nano time when the deadline will be reached. All operations must complete before this time. Use a deadline to set a maximum bound on the time spent on a sequence of operations.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open fun hasDeadline(): Boolean

Returns true if a deadline is enabled.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun <T> intersectWith(other: Timeout, block: () -> T): T

Applies the minimum intersection between this timeout and other, run block, then finally rollback this timeout's values.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open fun throwIfReached()

Throws an InterruptedIOException if the deadline has been reached or if the current thread has been interrupted. This method doesn't detect timeouts; that should be implemented to asynchronously abort an in-progress operation.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open fun timeout(timeout: Long, unit: TimeUnit): Timeout

Wait at most timeout time before aborting an operation. Using a per-operation timeout means that as long as forward progress is being made, no sequence of operations will fail.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun Timeout.timeout(timeout: Long, unit: DurationUnit): Timeout
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open fun timeoutNanos(): Long

Returns the timeout in nanoseconds, or 0 for no timeout.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open fun waitUntilNotified(monitor: Any)

Waits on monitor until it is notified. Throws InterruptedIOException if either the thread is interrupted or if this timeout elapses before monitor is notified. The caller must be synchronized on monitor.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-timeout/intersect-with.html b/3.x/okio/okio/okio/-timeout/intersect-with.html new file mode 100644 index 0000000000..9d15216a0f --- /dev/null +++ b/3.x/okio/okio/okio/-timeout/intersect-with.html @@ -0,0 +1,84 @@ + + + + + intersectWith + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

intersectWith

+
+
+
+
inline fun <T> intersectWith(other: Timeout, block: () -> T): T

Applies the minimum intersection between this timeout and other, run block, then finally rollback this timeout's values.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-timeout/throw-if-reached.html b/3.x/okio/okio/okio/-timeout/throw-if-reached.html new file mode 100644 index 0000000000..effcfc1dab --- /dev/null +++ b/3.x/okio/okio/okio/-timeout/throw-if-reached.html @@ -0,0 +1,84 @@ + + + + + throwIfReached + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

throwIfReached

+
+
+
+
open fun throwIfReached()

Throws an InterruptedIOException if the deadline has been reached or if the current thread has been interrupted. This method doesn't detect timeouts; that should be implemented to asynchronously abort an in-progress operation.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-timeout/timeout-nanos.html b/3.x/okio/okio/okio/-timeout/timeout-nanos.html new file mode 100644 index 0000000000..9ce20f1745 --- /dev/null +++ b/3.x/okio/okio/okio/-timeout/timeout-nanos.html @@ -0,0 +1,84 @@ + + + + + timeoutNanos + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

timeoutNanos

+
+
+
+
open fun timeoutNanos(): Long

Returns the timeout in nanoseconds, or 0 for no timeout.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-timeout/timeout.html b/3.x/okio/okio/okio/-timeout/timeout.html new file mode 100644 index 0000000000..bff2aab4ae --- /dev/null +++ b/3.x/okio/okio/okio/-timeout/timeout.html @@ -0,0 +1,84 @@ + + + + + timeout + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

timeout

+
+
+
+
open fun timeout(timeout: Long, unit: TimeUnit): Timeout

Wait at most timeout time before aborting an operation. Using a per-operation timeout means that as long as forward progress is being made, no sequence of operations will fail.

If timeout == 0, operations will run indefinitely. (Operating system timeouts may still apply.)

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-timeout/wait-until-notified.html b/3.x/okio/okio/okio/-timeout/wait-until-notified.html new file mode 100644 index 0000000000..507ad3afbe --- /dev/null +++ b/3.x/okio/okio/okio/-timeout/wait-until-notified.html @@ -0,0 +1,84 @@ + + + + + waitUntilNotified + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

waitUntilNotified

+
+
+
+
open fun waitUntilNotified(monitor: Any)

Waits on monitor until it is notified. Throws InterruptedIOException if either the thread is interrupted or if this timeout elapses before monitor is notified. The caller must be synchronized on monitor.

Here's a sample class that uses waitUntilNotified() to await a specific state. Note that the call is made within a loop to avoid unnecessary waiting and to mitigate spurious notifications.

class Dice {
Random random = new Random();
int latestTotal;

public synchronized void roll() {
latestTotal = 2 + random.nextInt(6) + random.nextInt(6);
System.out.println("Rolled " + latestTotal);
notifyAll();
}

public void rollAtFixedRate(int period, TimeUnit timeUnit) {
Executors.newScheduledThreadPool(0).scheduleAtFixedRate(new Runnable() {
public void run() {
roll();
}
}, 0, period, timeUnit);
}

public synchronized void awaitTotal(Timeout timeout, int total)
throws InterruptedIOException {
while (latestTotal != total) {
timeout.waitUntilNotified(this);
}
}
}
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-typed-options/-companion/index.html b/3.x/okio/okio/okio/-typed-options/-companion/index.html new file mode 100644 index 0000000000..4512bd4e88 --- /dev/null +++ b/3.x/okio/okio/okio/-typed-options/-companion/index.html @@ -0,0 +1,110 @@ + + + + + Companion + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Companion

+
+
+
object Companion
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun <T : Any> of(values: Iterable<T>, encode: (T) -> ByteString): TypedOptions<T>
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-typed-options/-companion/of.html b/3.x/okio/okio/okio/-typed-options/-companion/of.html new file mode 100644 index 0000000000..c0098dbc1d --- /dev/null +++ b/3.x/okio/okio/okio/-typed-options/-companion/of.html @@ -0,0 +1,84 @@ + + + + + of + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

of

+
+
+
+
inline fun <T : Any> of(values: Iterable<T>, encode: (T) -> ByteString): TypedOptions<T>
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-typed-options/-typed-options.html b/3.x/okio/okio/okio/-typed-options/-typed-options.html new file mode 100644 index 0000000000..7051d5fae1 --- /dev/null +++ b/3.x/okio/okio/okio/-typed-options/-typed-options.html @@ -0,0 +1,84 @@ + + + + + TypedOptions + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

TypedOptions

+
+
+
+
constructor(list: List<T>, options: Options)
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-typed-options/get.html b/3.x/okio/okio/okio/-typed-options/get.html new file mode 100644 index 0000000000..55572f66c8 --- /dev/null +++ b/3.x/okio/okio/okio/-typed-options/get.html @@ -0,0 +1,84 @@ + + + + + get + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

get

+
+
+
+
open operator override fun get(index: Int): T
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-typed-options/index.html b/3.x/okio/okio/okio/-typed-options/index.html new file mode 100644 index 0000000000..6b6874513a --- /dev/null +++ b/3.x/okio/okio/okio/-typed-options/index.html @@ -0,0 +1,360 @@ + + + + + TypedOptions + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

TypedOptions

+
+
+
class TypedOptions<T : Any>(list: List<T>, options: Options) : AbstractList<T> , RandomAccess

A list of values that may be read with BufferedSource.select.

Also consider Options to select an integer index.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
constructor(list: List<T>, options: Options)
+
+
+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
object Companion
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override val size: Int
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open operator override fun contains(element: T): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun containsAll(elements: Collection<T>): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open operator override fun equals(other: Any?): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open operator override fun get(index: Int): T
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun hashCode(): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun indexOf(element: T): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun isEmpty(): Boolean
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open operator override fun iterator(): Iterator<T>
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun lastIndexOf(element: T): Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun listIterator(): ListIterator<T>
open override fun listIterator(index: Int): ListIterator<T>
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun subList(fromIndex: Int, toIndex: Int): List<T>
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open override fun toString(): String
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-typed-options/size.html b/3.x/okio/okio/okio/-typed-options/size.html new file mode 100644 index 0000000000..ed9df0cafa --- /dev/null +++ b/3.x/okio/okio/okio/-typed-options/size.html @@ -0,0 +1,84 @@ + + + + + size + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

size

+
+
+
+
open override val size: Int
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/-utf8.html b/3.x/okio/okio/okio/-utf8.html new file mode 100644 index 0000000000..7c6ca2dbf4 --- /dev/null +++ b/3.x/okio/okio/okio/-utf8.html @@ -0,0 +1,84 @@ + + + + + Utf8 + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Utf8

+
+
+
+
val Utf8: -DeprecatedUtf8
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/appending-sink.html b/3.x/okio/okio/okio/appending-sink.html new file mode 100644 index 0000000000..de433ed918 --- /dev/null +++ b/3.x/okio/okio/okio/appending-sink.html @@ -0,0 +1,84 @@ + + + + + appendingSink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

appendingSink

+
+
+
+

Returns a sink that writes to file.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/as-resource-file-system.html b/3.x/okio/okio/okio/as-resource-file-system.html new file mode 100644 index 0000000000..d719f85cc9 --- /dev/null +++ b/3.x/okio/okio/okio/as-resource-file-system.html @@ -0,0 +1,84 @@ + + + + + asResourceFileSystem + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

asResourceFileSystem

+
+ +
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/blackhole-sink.html b/3.x/okio/okio/okio/blackhole-sink.html new file mode 100644 index 0000000000..26556cb957 --- /dev/null +++ b/3.x/okio/okio/okio/blackhole-sink.html @@ -0,0 +1,84 @@ + + + + + blackholeSink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

blackholeSink

+
+
+
+
@JvmName(name = "blackhole")
fun blackholeSink(): Sink

Returns a sink that writes nowhere.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/buffer.html b/3.x/okio/okio/okio/buffer.html new file mode 100644 index 0000000000..dcfec546d9 --- /dev/null +++ b/3.x/okio/okio/okio/buffer.html @@ -0,0 +1,84 @@ + + + + + buffer + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

buffer

+
+
+
+

Returns a new source that buffers reads from source. The returned source will perform bulk reads into its in-memory buffer. Use this wherever you read a source to get an ergonomic and efficient access to data.


Returns a new sink that buffers writes to sink. The returned sink will batch writes to sink. Use this wherever you write to a sink to get an ergonomic and efficient access to data.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/cipher-sink.html b/3.x/okio/okio/okio/cipher-sink.html new file mode 100644 index 0000000000..fdf8ead63c --- /dev/null +++ b/3.x/okio/okio/okio/cipher-sink.html @@ -0,0 +1,84 @@ + + + + + cipherSink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

cipherSink

+
+
+
+

Returns a sink that uses cipher to encrypt or decrypt this.

Throws

if cipher isn't a block cipher.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/cipher-source.html b/3.x/okio/okio/okio/cipher-source.html new file mode 100644 index 0000000000..ef69541610 --- /dev/null +++ b/3.x/okio/okio/okio/cipher-source.html @@ -0,0 +1,84 @@ + + + + + cipherSource + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

cipherSource

+
+
+
+

Returns a source that uses cipher to encrypt or decrypt this.

Throws

if cipher isn't a block cipher.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/deflate.html b/3.x/okio/okio/okio/deflate.html new file mode 100644 index 0000000000..24151c8148 --- /dev/null +++ b/3.x/okio/okio/okio/deflate.html @@ -0,0 +1,84 @@ + + + + + deflate + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

deflate

+
+
+
+
inline fun Sink.deflate(deflater: Deflater = Deflater()): DeflaterSink

Returns an DeflaterSink that DEFLATE-compresses data to this Sink while writing.

See also

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/gzip.html b/3.x/okio/okio/okio/gzip.html new file mode 100644 index 0000000000..8db35c5490 --- /dev/null +++ b/3.x/okio/okio/okio/gzip.html @@ -0,0 +1,84 @@ + + + + + gzip + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

gzip

+
+
+
+
inline fun Sink.gzip(): GzipSink

Returns a GzipSink that gzip-compresses to this Sink while writing.

See also


inline fun Source.gzip(): GzipSource

Returns a GzipSource that gzip-decompresses this Source while reading.

See also

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/hashing-sink.html b/3.x/okio/okio/okio/hashing-sink.html new file mode 100644 index 0000000000..a6de93b7e3 --- /dev/null +++ b/3.x/okio/okio/okio/hashing-sink.html @@ -0,0 +1,84 @@ + + + + + hashingSink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hashingSink

+
+
+
+

Returns a sink that uses mac to hash this.


Returns a sink that uses digest to hash this.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/hashing-source.html b/3.x/okio/okio/okio/hashing-source.html new file mode 100644 index 0000000000..9096669a89 --- /dev/null +++ b/3.x/okio/okio/okio/hashing-source.html @@ -0,0 +1,84 @@ + + + + + hashingSource + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hashingSource

+
+
+
+

Returns a source that uses mac to hash this.


Returns a source that uses digest to hash this.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/index.html b/3.x/okio/okio/okio/index.html new file mode 100644 index 0000000000..38a1c43a4e --- /dev/null +++ b/3.x/okio/okio/okio/index.html @@ -0,0 +1,1093 @@ + + + + + okio + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Package-level declarations

+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+ +
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open class AsyncTimeout : Timeout

This timeout uses a background thread to take action exactly when the timeout occurs. Use this to implement timeouts where they aren't supported natively, such as to sockets that are blocked on writing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

A collection of bytes in memory.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect sealed interface BufferedSink : Sink

A sink that keeps a buffer internally so that callers can do small writes without a performance penalty.

actual interface BufferedSink : Sink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect sealed interface BufferedSource : Source

A source that keeps a buffer internally so that callers can do small reads without a performance penalty. It also allows clients to read ahead, buffering as much as necessary before consuming input.

actual interface BufferedSource : Source
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual open class ByteString : Comparable<ByteString>
expect open class ByteString : Comparable<ByteString>

An immutable sequence of bytes.

actual open class ByteString : Comparable<ByteString>
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
class CipherSink(sink: BufferedSink, val cipher: Cipher) : Sink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
class CipherSource(source: BufferedSource, val cipher: Cipher) : Source
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect interface Closeable
actual typealias Closeable = java.io.Closeable
actual interface Closeable
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual typealias Deflater = java.util.zip.Deflater
expect class Deflater(level: Int, nowrap: Boolean)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect class DeflaterSink : Sink

A sink that uses DEFLATE to compress data written to another source.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open class EOFException(message: String?) : IOException
actual open class EOFException(message: String?) : IOException
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
abstract class FileHandle(val readWrite: Boolean) : Closeable

An open file for reading and writing; using either streaming and random access.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
class FileMetadata(val isRegularFile: Boolean = false, val isDirectory: Boolean = false, val symlinkTarget: Path? = null, val size: Long? = null, val createdAtMillis: Long? = null, val lastModifiedAtMillis: Long? = null, val lastAccessedAtMillis: Long? = null, extras: Map<KClass<*>, Any> = mapOf())

Description of a file or another object referenced by a path.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect class FileNotFoundException(message: String?) : IOException
actual open class FileNotFoundException(message: String?) : IOException
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract class FileSystem : Closeable

Read and write access to a hierarchical collection of files, addressed by paths. This is a natural interface to the current computer's local file system.

actual abstract class FileSystem : Closeable
actual abstract class FileSystem : Closeable
actual abstract class FileSystem : Closeable
actual abstract class FileSystem : Closeable
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
abstract class ForwardingFileSystem(val delegate: FileSystem) : FileSystem

A FileSystem that forwards calls to another, intended for subclassing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
abstract class ForwardingSink(val delegate: Sink) : Sink

A Sink which forwards calls to another. Useful for subclassing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect abstract class ForwardingSource(delegate: Source) : Source

A Source which forwards calls to another. Useful for subclassing.

actual abstract class ForwardingSource(val delegate: Source) : Source
actual abstract class ForwardingSource(val delegate: Source) : Source
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
open class ForwardingTimeout(var delegate: Timeout) : Timeout

A Timeout which forwards calls to another. Useful for subclassing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
class GzipSink(sink: Sink) : Sink

A sink that uses GZIP to compress written data to another sink.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
class GzipSource(source: Source) : Source

A source that uses GZIP to decompress data read from another source.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect class HashingSink : Sink

A sink that computes a hash of the full stream of bytes it has accepted. To use, create an instance with your preferred hash algorithm. Write all of the data to the sink and then call hash to compute the final hash value.

A sink that computes a hash of the full stream of bytes it has accepted. To use, create an instance with your preferred hash algorithm. Write all of the data to the sink and then call hash to compute the final hash value.

actual class HashingSink : Sink
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect class HashingSource : Source

A source that computes a hash of the full stream of bytes it has supplied. To use, create an instance with your preferred hash algorithm. Exhaust the source by reading all of its bytes and then call hash to compute the final hash value.

A source that computes a hash of the full stream of bytes it has supplied. To use, create an instance with your preferred hash algorithm. Exhaust the source by reading all of its bytes and then call hash to compute the final hash value.

actual class HashingSource : Source
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
actual typealias Inflater = java.util.zip.Inflater
expect class Inflater(nowrap: Boolean)
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect class InflaterSource : Source

A source that uses DEFLATE to decompress data read from another source.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open class IOException(message: String?, cause: Throwable?) : Exception
actual typealias IOException = java.io.IOException
actual open class IOException(message: String?, cause: Throwable?) : Exception
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect class Lock
actual typealias Lock = ReentrantLock
actual class Lock
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

An indexed set of values that may be read with BufferedSource.select.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect class Path : Comparable<Path>

A hierarchical address on a file system. A path is an identifier only; a FileSystem is required to access the file that a path refers to, if any.

actual class Path : Comparable<Path>
actual class Path : Comparable<Path>
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
class Pipe(maxBufferSize: Long)

A source and a sink that are attached. The sink's output is the source's input. Typically each is accessed by its own thread: a producer thread writes data to the sink and a consumer thread reads data from the source.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect class ProtocolException(message: String) : IOException
actual class ProtocolException(message: String) : IOException
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect interface Sink : Closeable

Receives a stream of bytes. Use this interface to write data wherever it's needed: to the network, storage, or a buffer in memory. Sinks may be layered to transform received data, such as to compress, encrypt, throttle, or add protocol framing.

actual interface Sink : Closeable, Flushable
actual interface Sink : Closeable
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
interface Source : Closeable

Supplies a stream of bytes. Use this interface to read data from wherever it's located: from the network, storage, or a buffer in memory. Sources may be layered to transform supplied data, such as to decompress, decrypt, or remove protocol framing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
class Throttler

Enables limiting of Source and Sink throughput. Attach to this throttler via source and sink and set the desired throughput via bytesPerSecond. Multiple Sources and Sinks can be attached to a single Throttler and they will be throttled as a group, where their combined throughput will not exceed the desired throughput. The same Source or Sink can be attached to multiple Throttlers and its throughput will not exceed the desired throughput of any of the Throttlers.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect open class Timeout

A policy on how much time to spend on a task before giving up. When a task times out, it is left in an unspecified state and should be abandoned. For example, if reading from a source times out, that source should be closed and the read should be retried later. If writing to a sink times out, the same rules apply: close the sink and retry later.

actual open class Timeout
actual open class Timeout
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
class TypedOptions<T : Any>(list: List<T>, options: Options) : AbstractList<T> , RandomAccess

A list of values that may be read with BufferedSource.select.

+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
val Okio: -DeprecatedOkio
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect val FileSystem.Companion.SYSTEM: FileSystem
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
val Utf8: -DeprecatedUtf8
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that writes to file.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+ +
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
@JvmName(name = "blackhole")
fun blackholeSink(): Sink

Returns a sink that writes nowhere.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a new sink that buffers writes to sink. The returned sink will batch writes to sink. Use this wherever you write to a sink to get an ergonomic and efficient access to data.

Returns a new source that buffers reads from source. The returned source will perform bulk reads into its in-memory buffer. Use this wherever you read a source to get an ergonomic and efficient access to data.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that uses cipher to encrypt or decrypt this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a source that uses cipher to encrypt or decrypt this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Sink.deflate(deflater: Deflater = Deflater()): DeflaterSink

Returns an DeflaterSink that DEFLATE-compresses data to this Sink while writing.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Sink.gzip(): GzipSink

Returns a GzipSink that gzip-compresses to this Sink while writing.

inline fun Source.gzip(): GzipSource

Returns a GzipSource that gzip-decompresses this Source while reading.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that uses digest to hash this.

Returns a sink that uses mac to hash this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a source that uses digest to hash this.

Returns a source that uses mac to hash this.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun Source.inflate(inflater: Inflater = Inflater()): InflaterSource

Returns an InflaterSource that DEFLATE-decompresses this Source while reading.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun FileSystem.openZip(zipPath: Path): FileSystem

Returns a new read-only file system.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
fun COpaquePointer.readByteString(count: Int): ByteString

Copy count bytes from the memory at this pointer into a ByteString.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a sink that writes to out.

Returns a sink that writes to socket. Prefer this over sink because this method honors timeouts. When the socket write times out, the socket is asynchronously closed by a watchdog thread.

fun File.sink(append: Boolean = false): Sink

Returns a sink that writes to file.

fun Path.sink(vararg options: OpenOption): Sink

Returns a sink that writes to path.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+

Returns a source that reads from file.

Returns a source that reads from in.

Returns a source that reads from socket. Prefer this over source because this method honors timeouts. When the socket read times out, the socket is asynchronously closed by a watchdog thread.

fun Path.source(vararg options: OpenOption): Source

Returns a source that reads from path.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
inline fun <T : Closeable?, R> T.use(block: (T) -> R): R

Execute block then close this. This will be closed even if block throws.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
@JvmName(name = "size")
fun String.utf8Size(beginIndex: Int = 0, endIndex: Int = length): Long

Returns the number of bytes used to encode the slice of string as UTF-8 when using BufferedSink.writeUtf8.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
expect inline fun <T> Lock.withLock(action: () -> T): T
actual inline fun <T> Lock.withLock(action: () -> T): T
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/inflate.html b/3.x/okio/okio/okio/inflate.html new file mode 100644 index 0000000000..29b648e764 --- /dev/null +++ b/3.x/okio/okio/okio/inflate.html @@ -0,0 +1,84 @@ + + + + + inflate + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

inflate

+
+
+
+
inline fun Source.inflate(inflater: Inflater = Inflater()): InflaterSource

Returns an InflaterSource that DEFLATE-decompresses this Source while reading.

See also

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/open-zip.html b/3.x/okio/okio/okio/open-zip.html new file mode 100644 index 0000000000..91e7c7056d --- /dev/null +++ b/3.x/okio/okio/okio/open-zip.html @@ -0,0 +1,84 @@ + + + + + openZip + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

openZip

+
+
+
+
fun FileSystem.openZip(zipPath: Path): FileSystem

Returns a new read-only file system.

This function processes the ZIP file's central directory and builds an index of its files and their offsets within the ZIP. If the ZIP file is changed after this function returns, this file system will be broken and may return inconsistent data or crash when it is accessed.

Closing the returned file system is not necessary and does nothing.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/read-byte-string.html b/3.x/okio/okio/okio/read-byte-string.html new file mode 100644 index 0000000000..a52c2febe7 --- /dev/null +++ b/3.x/okio/okio/okio/read-byte-string.html @@ -0,0 +1,84 @@ + + + + + readByteString + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

readByteString

+
+
+
+
fun COpaquePointer.readByteString(count: Int): ByteString

Copy count bytes from the memory at this pointer into a ByteString.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/sink.html b/3.x/okio/okio/okio/sink.html new file mode 100644 index 0000000000..5d296f3874 --- /dev/null +++ b/3.x/okio/okio/okio/sink.html @@ -0,0 +1,84 @@ + + + + + sink + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

sink

+
+
+
+

Returns a sink that writes to out.


Returns a sink that writes to socket. Prefer this over sink because this method honors timeouts. When the socket write times out, the socket is asynchronously closed by a watchdog thread.


fun File.sink(append: Boolean = false): Sink

Returns a sink that writes to file.


fun Path.sink(vararg options: OpenOption): Sink

Returns a sink that writes to path.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/source.html b/3.x/okio/okio/okio/source.html new file mode 100644 index 0000000000..701951ccb5 --- /dev/null +++ b/3.x/okio/okio/okio/source.html @@ -0,0 +1,84 @@ + + + + + source + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

source

+
+
+
+

Returns a source that reads from in.


Returns a source that reads from socket. Prefer this over source because this method honors timeouts. When the socket read times out, the socket is asynchronously closed by a watchdog thread.


Returns a source that reads from file.


fun Path.source(vararg options: OpenOption): Source

Returns a source that reads from path.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/use.html b/3.x/okio/okio/okio/use.html new file mode 100644 index 0000000000..ece43d7bab --- /dev/null +++ b/3.x/okio/okio/okio/use.html @@ -0,0 +1,84 @@ + + + + + use + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

use

+
+
+
+
inline fun <T : Closeable?, R> T.use(block: (T) -> R): R

Execute block then close this. This will be closed even if block throws.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/utf8-size.html b/3.x/okio/okio/okio/utf8-size.html new file mode 100644 index 0000000000..fdf57c4313 --- /dev/null +++ b/3.x/okio/okio/okio/utf8-size.html @@ -0,0 +1,84 @@ + + + + + utf8Size + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

utf8Size

+
+
+
+
@JvmName(name = "size")
fun String.utf8Size(beginIndex: Int = 0, endIndex: Int = length): Long

Returns the number of bytes used to encode the slice of string as UTF-8 when using BufferedSink.writeUtf8.

+
+ +
+
+
+ + diff --git a/3.x/okio/okio/okio/with-lock.html b/3.x/okio/okio/okio/with-lock.html new file mode 100644 index 0000000000..3d9f0afef0 --- /dev/null +++ b/3.x/okio/okio/okio/with-lock.html @@ -0,0 +1,85 @@ + + + + + withLock + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

withLock

+
+
+
+
expect inline fun <T> Lock.withLock(action: () -> T): T
actual inline fun <T> Lock.withLock(action: () -> T): T
+
+ +
+
+
+ + diff --git a/3.x/okio/okio/package-list b/3.x/okio/okio/package-list new file mode 100644 index 0000000000..3f371e51fb --- /dev/null +++ b/3.x/okio/okio/package-list @@ -0,0 +1,575 @@ +$dokka.format:html-v1 +$dokka.linkExtension:html +$dokka.location:okio////PointingToDeclaration/okio/okio/index.html +$dokka.location:okio//Okio/#/PointingToDeclaration/okio/okio/-okio.html +$dokka.location:okio//SYSTEM/okio.FileSystem.Companion#/PointingToDeclaration/okio/okio/-s-y-s-t-e-m.html +$dokka.location:okio//Utf8/#/PointingToDeclaration/okio/okio/-utf8.html +$dokka.location:okio//appendingSink/java.io.File#/PointingToDeclaration/okio/okio/appending-sink.html +$dokka.location:okio//asResourceFileSystem/java.lang.ClassLoader#/PointingToDeclaration/okio/okio/as-resource-file-system.html +$dokka.location:okio//blackholeSink/#/PointingToDeclaration/okio/okio/blackhole-sink.html +$dokka.location:okio//buffer/okio.Sink#/PointingToDeclaration/okio/okio/buffer.html +$dokka.location:okio//buffer/okio.Source#/PointingToDeclaration/okio/okio/buffer.html +$dokka.location:okio//cipherSink/okio.Sink#javax.crypto.Cipher/PointingToDeclaration/okio/okio/cipher-sink.html +$dokka.location:okio//cipherSource/okio.Source#javax.crypto.Cipher/PointingToDeclaration/okio/okio/cipher-source.html +$dokka.location:okio//deflate/okio.Sink#okio.Deflater/PointingToDeclaration/okio/okio/deflate.html +$dokka.location:okio//gzip/okio.Sink#/PointingToDeclaration/okio/okio/gzip.html +$dokka.location:okio//gzip/okio.Source#/PointingToDeclaration/okio/okio/gzip.html +$dokka.location:okio//hashingSink/okio.Sink#java.security.MessageDigest/PointingToDeclaration/okio/okio/hashing-sink.html +$dokka.location:okio//hashingSink/okio.Sink#javax.crypto.Mac/PointingToDeclaration/okio/okio/hashing-sink.html +$dokka.location:okio//hashingSource/okio.Source#java.security.MessageDigest/PointingToDeclaration/okio/okio/hashing-source.html +$dokka.location:okio//hashingSource/okio.Source#javax.crypto.Mac/PointingToDeclaration/okio/okio/hashing-source.html +$dokka.location:okio//inflate/okio.Source#okio.Inflater/PointingToDeclaration/okio/okio/inflate.html +$dokka.location:okio//openZip/okio.FileSystem#okio.Path/PointingToDeclaration/okio/okio/open-zip.html +$dokka.location:okio//readByteString/kotlinx.cinterop.CPointer[kotlinx.cinterop.CPointed]#kotlin.Int/PointingToDeclaration/okio/okio/read-byte-string.html +$dokka.location:okio//sink/java.io.File#kotlin.Boolean/PointingToDeclaration/okio/okio/sink.html +$dokka.location:okio//sink/java.io.OutputStream#/PointingToDeclaration/okio/okio/sink.html +$dokka.location:okio//sink/java.net.Socket#/PointingToDeclaration/okio/okio/sink.html +$dokka.location:okio//sink/java.nio.file.Path#kotlin.Array[java.nio.file.OpenOption]/PointingToDeclaration/okio/okio/sink.html +$dokka.location:okio//source/java.io.File#/PointingToDeclaration/okio/okio/source.html +$dokka.location:okio//source/java.io.InputStream#/PointingToDeclaration/okio/okio/source.html +$dokka.location:okio//source/java.net.Socket#/PointingToDeclaration/okio/okio/source.html +$dokka.location:okio//source/java.nio.file.Path#kotlin.Array[java.nio.file.OpenOption]/PointingToDeclaration/okio/okio/source.html +$dokka.location:okio//use/TypeParam(bounds=[okio.Closeable?])#kotlin.Function1[TypeParam(bounds=[okio.Closeable?]),TypeParam(bounds=[kotlin.Any?])]/PointingToDeclaration/okio/okio/use.html +$dokka.location:okio//utf8Size/kotlin.String#kotlin.Int#kotlin.Int/PointingToDeclaration/okio/okio/utf8-size.html +$dokka.location:okio//withLock/okio.Lock#kotlin.Function0[TypeParam(bounds=[kotlin.Any?])]/PointingToDeclaration/okio/okio/with-lock.html +$dokka.location:okio/ArrayIndexOutOfBoundsException///PointingToDeclaration/okio/okio/-array-index-out-of-bounds-exception/index.html +$dokka.location:okio/ArrayIndexOutOfBoundsException/ArrayIndexOutOfBoundsException/#kotlin.String?/PointingToDeclaration/okio/okio/-array-index-out-of-bounds-exception/-array-index-out-of-bounds-exception.html +$dokka.location:okio/AsyncTimeout///PointingToDeclaration/okio/okio/-async-timeout/index.html +$dokka.location:okio/AsyncTimeout/AsyncTimeout/#/PointingToDeclaration/okio/okio/-async-timeout/-async-timeout.html +$dokka.location:okio/AsyncTimeout/cancel/#/PointingToDeclaration/okio/okio/-async-timeout/cancel.html +$dokka.location:okio/AsyncTimeout/enter/#/PointingToDeclaration/okio/okio/-async-timeout/enter.html +$dokka.location:okio/AsyncTimeout/exit/#/PointingToDeclaration/okio/okio/-async-timeout/exit.html +$dokka.location:okio/AsyncTimeout/sink/#okio.Sink/PointingToDeclaration/okio/okio/-async-timeout/sink.html +$dokka.location:okio/AsyncTimeout/source/#okio.Source/PointingToDeclaration/okio/okio/-async-timeout/source.html +$dokka.location:okio/AsyncTimeout/withTimeout/#kotlin.Function0[TypeParam(bounds=[kotlin.Any?])]/PointingToDeclaration/okio/okio/-async-timeout/with-timeout.html +$dokka.location:okio/Buffer.UnsafeCursor///PointingToDeclaration/okio/okio/-buffer/-unsafe-cursor/index.html +$dokka.location:okio/Buffer.UnsafeCursor/UnsafeCursor/#/PointingToDeclaration/okio/okio/-buffer/-unsafe-cursor/-unsafe-cursor.html +$dokka.location:okio/Buffer.UnsafeCursor/buffer/#/PointingToDeclaration/okio/okio/-buffer/-unsafe-cursor/buffer.html +$dokka.location:okio/Buffer.UnsafeCursor/close/#/PointingToDeclaration/okio/okio/-buffer/-unsafe-cursor/close.html +$dokka.location:okio/Buffer.UnsafeCursor/data/#/PointingToDeclaration/okio/okio/-buffer/-unsafe-cursor/data.html +$dokka.location:okio/Buffer.UnsafeCursor/end/#/PointingToDeclaration/okio/okio/-buffer/-unsafe-cursor/end.html +$dokka.location:okio/Buffer.UnsafeCursor/expandBuffer/#kotlin.Int/PointingToDeclaration/okio/okio/-buffer/-unsafe-cursor/expand-buffer.html +$dokka.location:okio/Buffer.UnsafeCursor/next/#/PointingToDeclaration/okio/okio/-buffer/-unsafe-cursor/next.html +$dokka.location:okio/Buffer.UnsafeCursor/offset/#/PointingToDeclaration/okio/okio/-buffer/-unsafe-cursor/offset.html +$dokka.location:okio/Buffer.UnsafeCursor/readWrite/#/PointingToDeclaration/okio/okio/-buffer/-unsafe-cursor/read-write.html +$dokka.location:okio/Buffer.UnsafeCursor/resizeBuffer/#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/-unsafe-cursor/resize-buffer.html +$dokka.location:okio/Buffer.UnsafeCursor/seek/#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/-unsafe-cursor/seek.html +$dokka.location:okio/Buffer.UnsafeCursor/start/#/PointingToDeclaration/okio/okio/-buffer/-unsafe-cursor/start.html +$dokka.location:okio/Buffer///PointingToDeclaration/okio/okio/-buffer/index.html +$dokka.location:okio/Buffer/Buffer/#/PointingToDeclaration/okio/okio/-buffer/-buffer.html +$dokka.location:okio/Buffer/buffer/#/PointingToDeclaration/okio/okio/-buffer/buffer.html +$dokka.location:okio/Buffer/clear/#/PointingToDeclaration/okio/okio/-buffer/clear.html +$dokka.location:okio/Buffer/clone/#/PointingToDeclaration/okio/okio/-buffer/clone.html +$dokka.location:okio/Buffer/close/#/PointingToDeclaration/okio/okio/-buffer/close.html +$dokka.location:okio/Buffer/completeSegmentByteCount/#/PointingToDeclaration/okio/okio/-buffer/complete-segment-byte-count.html +$dokka.location:okio/Buffer/copy/#/PointingToDeclaration/okio/okio/-buffer/copy.html +$dokka.location:okio/Buffer/copyTo/#java.io.OutputStream#kotlin.Long#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/copy-to.html +$dokka.location:okio/Buffer/copyTo/#okio.Buffer#kotlin.Long#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/copy-to.html +$dokka.location:okio/Buffer/copyTo/#okio.Buffer#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/copy-to.html +$dokka.location:okio/Buffer/emit/#/PointingToDeclaration/okio/okio/-buffer/emit.html +$dokka.location:okio/Buffer/emitCompleteSegments/#/PointingToDeclaration/okio/okio/-buffer/emit-complete-segments.html +$dokka.location:okio/Buffer/equals/#kotlin.Any?/PointingToDeclaration/okio/okio/-buffer/[non-jvm]equals.html +$dokka.location:okio/Buffer/exhausted/#/PointingToDeclaration/okio/okio/-buffer/exhausted.html +$dokka.location:okio/Buffer/flush/#/PointingToDeclaration/okio/okio/-buffer/flush.html +$dokka.location:okio/Buffer/get/#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/get.html +$dokka.location:okio/Buffer/hashCode/#/PointingToDeclaration/okio/okio/-buffer/[non-jvm]hash-code.html +$dokka.location:okio/Buffer/hmacSha1/#okio.ByteString/PointingToDeclaration/okio/okio/-buffer/hmac-sha1.html +$dokka.location:okio/Buffer/hmacSha256/#okio.ByteString/PointingToDeclaration/okio/okio/-buffer/hmac-sha256.html +$dokka.location:okio/Buffer/hmacSha512/#okio.ByteString/PointingToDeclaration/okio/okio/-buffer/hmac-sha512.html +$dokka.location:okio/Buffer/indexOf/#kotlin.Byte#kotlin.Long#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/index-of.html +$dokka.location:okio/Buffer/indexOf/#kotlin.Byte#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/index-of.html +$dokka.location:okio/Buffer/indexOf/#kotlin.Byte/PointingToDeclaration/okio/okio/-buffer/index-of.html +$dokka.location:okio/Buffer/indexOf/#okio.ByteString#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/index-of.html +$dokka.location:okio/Buffer/indexOf/#okio.ByteString/PointingToDeclaration/okio/okio/-buffer/index-of.html +$dokka.location:okio/Buffer/indexOfElement/#okio.ByteString#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/index-of-element.html +$dokka.location:okio/Buffer/indexOfElement/#okio.ByteString/PointingToDeclaration/okio/okio/-buffer/index-of-element.html +$dokka.location:okio/Buffer/inputStream/#/PointingToDeclaration/okio/okio/-buffer/input-stream.html +$dokka.location:okio/Buffer/isOpen/#/PointingToDeclaration/okio/okio/-buffer/is-open.html +$dokka.location:okio/Buffer/md5/#/PointingToDeclaration/okio/okio/-buffer/md5.html +$dokka.location:okio/Buffer/outputStream/#/PointingToDeclaration/okio/okio/-buffer/output-stream.html +$dokka.location:okio/Buffer/peek/#/PointingToDeclaration/okio/okio/-buffer/peek.html +$dokka.location:okio/Buffer/rangeEquals/#kotlin.Long#okio.ByteString#kotlin.Int#kotlin.Int/PointingToDeclaration/okio/okio/-buffer/range-equals.html +$dokka.location:okio/Buffer/rangeEquals/#kotlin.Long#okio.ByteString/PointingToDeclaration/okio/okio/-buffer/range-equals.html +$dokka.location:okio/Buffer/read/#java.nio.ByteBuffer/PointingToDeclaration/okio/okio/-buffer/read.html +$dokka.location:okio/Buffer/read/#kotlin.ByteArray#kotlin.Int#kotlin.Int/PointingToDeclaration/okio/okio/-buffer/read.html +$dokka.location:okio/Buffer/read/#kotlin.ByteArray/PointingToDeclaration/okio/okio/-buffer/read.html +$dokka.location:okio/Buffer/read/#okio.Buffer#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/read.html +$dokka.location:okio/Buffer/readAll/#okio.Sink/PointingToDeclaration/okio/okio/-buffer/read-all.html +$dokka.location:okio/Buffer/readAndWriteUnsafe/#okio.Buffer.UnsafeCursor/PointingToDeclaration/okio/okio/-buffer/read-and-write-unsafe.html +$dokka.location:okio/Buffer/readByte/#/PointingToDeclaration/okio/okio/-buffer/read-byte.html +$dokka.location:okio/Buffer/readByteArray/#/PointingToDeclaration/okio/okio/-buffer/read-byte-array.html +$dokka.location:okio/Buffer/readByteArray/#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/read-byte-array.html +$dokka.location:okio/Buffer/readByteString/#/PointingToDeclaration/okio/okio/-buffer/read-byte-string.html +$dokka.location:okio/Buffer/readByteString/#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/read-byte-string.html +$dokka.location:okio/Buffer/readDecimalLong/#/PointingToDeclaration/okio/okio/-buffer/read-decimal-long.html +$dokka.location:okio/Buffer/readFrom/#java.io.InputStream#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/read-from.html +$dokka.location:okio/Buffer/readFrom/#java.io.InputStream/PointingToDeclaration/okio/okio/-buffer/read-from.html +$dokka.location:okio/Buffer/readFully/#kotlin.ByteArray/PointingToDeclaration/okio/okio/-buffer/read-fully.html +$dokka.location:okio/Buffer/readFully/#okio.Buffer#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/read-fully.html +$dokka.location:okio/Buffer/readHexadecimalUnsignedLong/#/PointingToDeclaration/okio/okio/-buffer/read-hexadecimal-unsigned-long.html +$dokka.location:okio/Buffer/readInt/#/PointingToDeclaration/okio/okio/-buffer/read-int.html +$dokka.location:okio/Buffer/readIntLe/#/PointingToDeclaration/okio/okio/-buffer/read-int-le.html +$dokka.location:okio/Buffer/readLong/#/PointingToDeclaration/okio/okio/-buffer/read-long.html +$dokka.location:okio/Buffer/readLongLe/#/PointingToDeclaration/okio/okio/-buffer/read-long-le.html +$dokka.location:okio/Buffer/readShort/#/PointingToDeclaration/okio/okio/-buffer/read-short.html +$dokka.location:okio/Buffer/readShortLe/#/PointingToDeclaration/okio/okio/-buffer/read-short-le.html +$dokka.location:okio/Buffer/readString/#java.nio.charset.Charset/PointingToDeclaration/okio/okio/-buffer/read-string.html +$dokka.location:okio/Buffer/readString/#kotlin.Long#java.nio.charset.Charset/PointingToDeclaration/okio/okio/-buffer/read-string.html +$dokka.location:okio/Buffer/readUnsafe/#okio.Buffer.UnsafeCursor/PointingToDeclaration/okio/okio/-buffer/read-unsafe.html +$dokka.location:okio/Buffer/readUtf8/#/PointingToDeclaration/okio/okio/-buffer/read-utf8.html +$dokka.location:okio/Buffer/readUtf8/#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/read-utf8.html +$dokka.location:okio/Buffer/readUtf8CodePoint/#/PointingToDeclaration/okio/okio/-buffer/read-utf8-code-point.html +$dokka.location:okio/Buffer/readUtf8Line/#/PointingToDeclaration/okio/okio/-buffer/read-utf8-line.html +$dokka.location:okio/Buffer/readUtf8LineStrict/#/PointingToDeclaration/okio/okio/-buffer/read-utf8-line-strict.html +$dokka.location:okio/Buffer/readUtf8LineStrict/#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/read-utf8-line-strict.html +$dokka.location:okio/Buffer/request/#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/request.html +$dokka.location:okio/Buffer/require/#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/require.html +$dokka.location:okio/Buffer/select/#okio.Options/PointingToDeclaration/okio/okio/-buffer/select.html +$dokka.location:okio/Buffer/select/#okio.TypedOptions[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/okio/okio/-buffer/select.html +$dokka.location:okio/Buffer/sha1/#/PointingToDeclaration/okio/okio/-buffer/sha1.html +$dokka.location:okio/Buffer/sha256/#/PointingToDeclaration/okio/okio/-buffer/sha256.html +$dokka.location:okio/Buffer/sha512/#/PointingToDeclaration/okio/okio/-buffer/sha512.html +$dokka.location:okio/Buffer/size/#/PointingToDeclaration/okio/okio/-buffer/size.html +$dokka.location:okio/Buffer/skip/#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/skip.html +$dokka.location:okio/Buffer/snapshot/#/PointingToDeclaration/okio/okio/-buffer/snapshot.html +$dokka.location:okio/Buffer/snapshot/#kotlin.Int/PointingToDeclaration/okio/okio/-buffer/snapshot.html +$dokka.location:okio/Buffer/timeout/#/PointingToDeclaration/okio/okio/-buffer/timeout.html +$dokka.location:okio/Buffer/toString/#/PointingToDeclaration/okio/okio/-buffer/[non-jvm]to-string.html +$dokka.location:okio/Buffer/write/#java.nio.ByteBuffer/PointingToDeclaration/okio/okio/-buffer/write.html +$dokka.location:okio/Buffer/write/#kotlin.ByteArray#kotlin.Int#kotlin.Int/PointingToDeclaration/okio/okio/-buffer/write.html +$dokka.location:okio/Buffer/write/#kotlin.ByteArray/PointingToDeclaration/okio/okio/-buffer/write.html +$dokka.location:okio/Buffer/write/#okio.Buffer#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/write.html +$dokka.location:okio/Buffer/write/#okio.ByteString#kotlin.Int#kotlin.Int/PointingToDeclaration/okio/okio/-buffer/write.html +$dokka.location:okio/Buffer/write/#okio.ByteString/PointingToDeclaration/okio/okio/-buffer/write.html +$dokka.location:okio/Buffer/write/#okio.Source#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/write.html +$dokka.location:okio/Buffer/writeAll/#okio.Source/PointingToDeclaration/okio/okio/-buffer/write-all.html +$dokka.location:okio/Buffer/writeByte/#kotlin.Int/PointingToDeclaration/okio/okio/-buffer/write-byte.html +$dokka.location:okio/Buffer/writeDecimalLong/#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/write-decimal-long.html +$dokka.location:okio/Buffer/writeHexadecimalUnsignedLong/#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/write-hexadecimal-unsigned-long.html +$dokka.location:okio/Buffer/writeInt/#kotlin.Int/PointingToDeclaration/okio/okio/-buffer/write-int.html +$dokka.location:okio/Buffer/writeIntLe/#kotlin.Int/PointingToDeclaration/okio/okio/-buffer/write-int-le.html +$dokka.location:okio/Buffer/writeLong/#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/write-long.html +$dokka.location:okio/Buffer/writeLongLe/#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/write-long-le.html +$dokka.location:okio/Buffer/writeShort/#kotlin.Int/PointingToDeclaration/okio/okio/-buffer/write-short.html +$dokka.location:okio/Buffer/writeShortLe/#kotlin.Int/PointingToDeclaration/okio/okio/-buffer/write-short-le.html +$dokka.location:okio/Buffer/writeString/#kotlin.String#java.nio.charset.Charset/PointingToDeclaration/okio/okio/-buffer/write-string.html +$dokka.location:okio/Buffer/writeString/#kotlin.String#kotlin.Int#kotlin.Int#java.nio.charset.Charset/PointingToDeclaration/okio/okio/-buffer/write-string.html +$dokka.location:okio/Buffer/writeTo/#java.io.OutputStream#kotlin.Long/PointingToDeclaration/okio/okio/-buffer/write-to.html +$dokka.location:okio/Buffer/writeUtf8/#kotlin.String#kotlin.Int#kotlin.Int/PointingToDeclaration/okio/okio/-buffer/write-utf8.html +$dokka.location:okio/Buffer/writeUtf8/#kotlin.String/PointingToDeclaration/okio/okio/-buffer/write-utf8.html +$dokka.location:okio/Buffer/writeUtf8CodePoint/#kotlin.Int/PointingToDeclaration/okio/okio/-buffer/write-utf8-code-point.html +$dokka.location:okio/BufferedSink///PointingToDeclaration/okio/okio/-buffered-sink/index.html +$dokka.location:okio/BufferedSink/buffer/#/PointingToDeclaration/okio/okio/-buffered-sink/buffer.html +$dokka.location:okio/BufferedSink/emit/#/PointingToDeclaration/okio/okio/-buffered-sink/emit.html +$dokka.location:okio/BufferedSink/emitCompleteSegments/#/PointingToDeclaration/okio/okio/-buffered-sink/emit-complete-segments.html +$dokka.location:okio/BufferedSink/flush/#/PointingToDeclaration/okio/okio/-buffered-sink/flush.html +$dokka.location:okio/BufferedSink/outputStream/#/PointingToDeclaration/okio/okio/-buffered-sink/output-stream.html +$dokka.location:okio/BufferedSink/write/#kotlin.ByteArray#kotlin.Int#kotlin.Int/PointingToDeclaration/okio/okio/-buffered-sink/write.html +$dokka.location:okio/BufferedSink/write/#kotlin.ByteArray/PointingToDeclaration/okio/okio/-buffered-sink/write.html +$dokka.location:okio/BufferedSink/write/#okio.ByteString#kotlin.Int#kotlin.Int/PointingToDeclaration/okio/okio/-buffered-sink/write.html +$dokka.location:okio/BufferedSink/write/#okio.ByteString/PointingToDeclaration/okio/okio/-buffered-sink/write.html +$dokka.location:okio/BufferedSink/write/#okio.Source#kotlin.Long/PointingToDeclaration/okio/okio/-buffered-sink/write.html +$dokka.location:okio/BufferedSink/writeAll/#okio.Source/PointingToDeclaration/okio/okio/-buffered-sink/write-all.html +$dokka.location:okio/BufferedSink/writeByte/#kotlin.Int/PointingToDeclaration/okio/okio/-buffered-sink/write-byte.html +$dokka.location:okio/BufferedSink/writeDecimalLong/#kotlin.Long/PointingToDeclaration/okio/okio/-buffered-sink/write-decimal-long.html +$dokka.location:okio/BufferedSink/writeHexadecimalUnsignedLong/#kotlin.Long/PointingToDeclaration/okio/okio/-buffered-sink/write-hexadecimal-unsigned-long.html +$dokka.location:okio/BufferedSink/writeInt/#kotlin.Int/PointingToDeclaration/okio/okio/-buffered-sink/write-int.html +$dokka.location:okio/BufferedSink/writeIntLe/#kotlin.Int/PointingToDeclaration/okio/okio/-buffered-sink/write-int-le.html +$dokka.location:okio/BufferedSink/writeLong/#kotlin.Long/PointingToDeclaration/okio/okio/-buffered-sink/write-long.html +$dokka.location:okio/BufferedSink/writeLongLe/#kotlin.Long/PointingToDeclaration/okio/okio/-buffered-sink/write-long-le.html +$dokka.location:okio/BufferedSink/writeShort/#kotlin.Int/PointingToDeclaration/okio/okio/-buffered-sink/write-short.html +$dokka.location:okio/BufferedSink/writeShortLe/#kotlin.Int/PointingToDeclaration/okio/okio/-buffered-sink/write-short-le.html +$dokka.location:okio/BufferedSink/writeString/#kotlin.String#java.nio.charset.Charset/PointingToDeclaration/okio/okio/-buffered-sink/write-string.html +$dokka.location:okio/BufferedSink/writeString/#kotlin.String#kotlin.Int#kotlin.Int#java.nio.charset.Charset/PointingToDeclaration/okio/okio/-buffered-sink/write-string.html +$dokka.location:okio/BufferedSink/writeUtf8/#kotlin.String#kotlin.Int#kotlin.Int/PointingToDeclaration/okio/okio/-buffered-sink/write-utf8.html +$dokka.location:okio/BufferedSink/writeUtf8/#kotlin.String/PointingToDeclaration/okio/okio/-buffered-sink/write-utf8.html +$dokka.location:okio/BufferedSink/writeUtf8CodePoint/#kotlin.Int/PointingToDeclaration/okio/okio/-buffered-sink/write-utf8-code-point.html +$dokka.location:okio/BufferedSource///PointingToDeclaration/okio/okio/-buffered-source/index.html +$dokka.location:okio/BufferedSource/buffer/#/PointingToDeclaration/okio/okio/-buffered-source/buffer.html +$dokka.location:okio/BufferedSource/exhausted/#/PointingToDeclaration/okio/okio/-buffered-source/exhausted.html +$dokka.location:okio/BufferedSource/indexOf/#kotlin.Byte#kotlin.Long#kotlin.Long/PointingToDeclaration/okio/okio/-buffered-source/index-of.html +$dokka.location:okio/BufferedSource/indexOf/#kotlin.Byte#kotlin.Long/PointingToDeclaration/okio/okio/-buffered-source/index-of.html +$dokka.location:okio/BufferedSource/indexOf/#kotlin.Byte/PointingToDeclaration/okio/okio/-buffered-source/index-of.html +$dokka.location:okio/BufferedSource/indexOf/#okio.ByteString#kotlin.Long/PointingToDeclaration/okio/okio/-buffered-source/index-of.html +$dokka.location:okio/BufferedSource/indexOf/#okio.ByteString/PointingToDeclaration/okio/okio/-buffered-source/index-of.html +$dokka.location:okio/BufferedSource/indexOfElement/#okio.ByteString#kotlin.Long/PointingToDeclaration/okio/okio/-buffered-source/index-of-element.html +$dokka.location:okio/BufferedSource/indexOfElement/#okio.ByteString/PointingToDeclaration/okio/okio/-buffered-source/index-of-element.html +$dokka.location:okio/BufferedSource/inputStream/#/PointingToDeclaration/okio/okio/-buffered-source/input-stream.html +$dokka.location:okio/BufferedSource/peek/#/PointingToDeclaration/okio/okio/-buffered-source/peek.html +$dokka.location:okio/BufferedSource/rangeEquals/#kotlin.Long#okio.ByteString#kotlin.Int#kotlin.Int/PointingToDeclaration/okio/okio/-buffered-source/range-equals.html +$dokka.location:okio/BufferedSource/rangeEquals/#kotlin.Long#okio.ByteString/PointingToDeclaration/okio/okio/-buffered-source/range-equals.html +$dokka.location:okio/BufferedSource/read/#kotlin.ByteArray#kotlin.Int#kotlin.Int/PointingToDeclaration/okio/okio/-buffered-source/read.html +$dokka.location:okio/BufferedSource/read/#kotlin.ByteArray/PointingToDeclaration/okio/okio/-buffered-source/read.html +$dokka.location:okio/BufferedSource/readAll/#okio.Sink/PointingToDeclaration/okio/okio/-buffered-source/read-all.html +$dokka.location:okio/BufferedSource/readByte/#/PointingToDeclaration/okio/okio/-buffered-source/read-byte.html +$dokka.location:okio/BufferedSource/readByteArray/#/PointingToDeclaration/okio/okio/-buffered-source/read-byte-array.html +$dokka.location:okio/BufferedSource/readByteArray/#kotlin.Long/PointingToDeclaration/okio/okio/-buffered-source/read-byte-array.html +$dokka.location:okio/BufferedSource/readByteString/#/PointingToDeclaration/okio/okio/-buffered-source/read-byte-string.html +$dokka.location:okio/BufferedSource/readByteString/#kotlin.Long/PointingToDeclaration/okio/okio/-buffered-source/read-byte-string.html +$dokka.location:okio/BufferedSource/readDecimalLong/#/PointingToDeclaration/okio/okio/-buffered-source/read-decimal-long.html +$dokka.location:okio/BufferedSource/readFully/#kotlin.ByteArray/PointingToDeclaration/okio/okio/-buffered-source/read-fully.html +$dokka.location:okio/BufferedSource/readFully/#okio.Buffer#kotlin.Long/PointingToDeclaration/okio/okio/-buffered-source/read-fully.html +$dokka.location:okio/BufferedSource/readHexadecimalUnsignedLong/#/PointingToDeclaration/okio/okio/-buffered-source/read-hexadecimal-unsigned-long.html +$dokka.location:okio/BufferedSource/readInt/#/PointingToDeclaration/okio/okio/-buffered-source/read-int.html +$dokka.location:okio/BufferedSource/readIntLe/#/PointingToDeclaration/okio/okio/-buffered-source/read-int-le.html +$dokka.location:okio/BufferedSource/readLong/#/PointingToDeclaration/okio/okio/-buffered-source/read-long.html +$dokka.location:okio/BufferedSource/readLongLe/#/PointingToDeclaration/okio/okio/-buffered-source/read-long-le.html +$dokka.location:okio/BufferedSource/readShort/#/PointingToDeclaration/okio/okio/-buffered-source/read-short.html +$dokka.location:okio/BufferedSource/readShortLe/#/PointingToDeclaration/okio/okio/-buffered-source/read-short-le.html +$dokka.location:okio/BufferedSource/readString/#java.nio.charset.Charset/PointingToDeclaration/okio/okio/-buffered-source/read-string.html +$dokka.location:okio/BufferedSource/readString/#kotlin.Long#java.nio.charset.Charset/PointingToDeclaration/okio/okio/-buffered-source/read-string.html +$dokka.location:okio/BufferedSource/readUtf8/#/PointingToDeclaration/okio/okio/-buffered-source/read-utf8.html +$dokka.location:okio/BufferedSource/readUtf8/#kotlin.Long/PointingToDeclaration/okio/okio/-buffered-source/read-utf8.html +$dokka.location:okio/BufferedSource/readUtf8CodePoint/#/PointingToDeclaration/okio/okio/-buffered-source/read-utf8-code-point.html +$dokka.location:okio/BufferedSource/readUtf8Line/#/PointingToDeclaration/okio/okio/-buffered-source/read-utf8-line.html +$dokka.location:okio/BufferedSource/readUtf8LineStrict/#/PointingToDeclaration/okio/okio/-buffered-source/read-utf8-line-strict.html +$dokka.location:okio/BufferedSource/readUtf8LineStrict/#kotlin.Long/PointingToDeclaration/okio/okio/-buffered-source/read-utf8-line-strict.html +$dokka.location:okio/BufferedSource/request/#kotlin.Long/PointingToDeclaration/okio/okio/-buffered-source/request.html +$dokka.location:okio/BufferedSource/require/#kotlin.Long/PointingToDeclaration/okio/okio/-buffered-source/require.html +$dokka.location:okio/BufferedSource/select/#okio.Options/PointingToDeclaration/okio/okio/-buffered-source/select.html +$dokka.location:okio/BufferedSource/select/#okio.TypedOptions[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/okio/okio/-buffered-source/select.html +$dokka.location:okio/BufferedSource/skip/#kotlin.Long/PointingToDeclaration/okio/okio/-buffered-source/skip.html +$dokka.location:okio/ByteString.Companion///PointingToDeclaration/okio/okio/-byte-string/-companion/index.html +$dokka.location:okio/ByteString.Companion/EMPTY/#/PointingToDeclaration/okio/okio/-byte-string/-companion/-e-m-p-t-y.html +$dokka.location:okio/ByteString.Companion/decodeBase64/kotlin.String#/PointingToDeclaration/okio/okio/-byte-string/-companion/decode-base64.html +$dokka.location:okio/ByteString.Companion/decodeHex/kotlin.String#/PointingToDeclaration/okio/okio/-byte-string/-companion/decode-hex.html +$dokka.location:okio/ByteString.Companion/encode/kotlin.String#java.nio.charset.Charset/PointingToDeclaration/okio/okio/-byte-string/-companion/encode.html +$dokka.location:okio/ByteString.Companion/encodeUtf8/kotlin.String#/PointingToDeclaration/okio/okio/-byte-string/-companion/encode-utf8.html +$dokka.location:okio/ByteString.Companion/of/#kotlin.ByteArray/PointingToDeclaration/okio/okio/-byte-string/-companion/of.html +$dokka.location:okio/ByteString.Companion/readByteString/java.io.InputStream#kotlin.Int/PointingToDeclaration/okio/okio/-byte-string/-companion/read-byte-string.html +$dokka.location:okio/ByteString.Companion/toByteString/[Error type: Unresolved type for NSData]#/PointingToDeclaration/okio/okio/-byte-string/-companion/to-byte-string.html +$dokka.location:okio/ByteString.Companion/toByteString/java.nio.ByteBuffer#/PointingToDeclaration/okio/okio/-byte-string/-companion/to-byte-string.html +$dokka.location:okio/ByteString.Companion/toByteString/kotlin.ByteArray#kotlin.Int#kotlin.Int/PointingToDeclaration/okio/okio/-byte-string/-companion/to-byte-string.html +$dokka.location:okio/ByteString///PointingToDeclaration/okio/okio/-byte-string/index.html +$dokka.location:okio/ByteString/asByteBuffer/#/PointingToDeclaration/okio/okio/-byte-string/as-byte-buffer.html +$dokka.location:okio/ByteString/base64/#/PointingToDeclaration/okio/okio/-byte-string/base64.html +$dokka.location:okio/ByteString/base64Url/#/PointingToDeclaration/okio/okio/-byte-string/base64-url.html +$dokka.location:okio/ByteString/compareTo/#okio.ByteString/PointingToDeclaration/okio/okio/-byte-string/compare-to.html +$dokka.location:okio/ByteString/copyInto/#kotlin.Int#kotlin.ByteArray#kotlin.Int#kotlin.Int/PointingToDeclaration/okio/okio/-byte-string/copy-into.html +$dokka.location:okio/ByteString/endsWith/#kotlin.ByteArray/PointingToDeclaration/okio/okio/-byte-string/ends-with.html +$dokka.location:okio/ByteString/endsWith/#okio.ByteString/PointingToDeclaration/okio/okio/-byte-string/ends-with.html +$dokka.location:okio/ByteString/equals/#kotlin.Any?/PointingToDeclaration/okio/okio/-byte-string/equals.html +$dokka.location:okio/ByteString/get/#kotlin.Int/PointingToDeclaration/okio/okio/-byte-string/get.html +$dokka.location:okio/ByteString/hashCode/#/PointingToDeclaration/okio/okio/-byte-string/hash-code.html +$dokka.location:okio/ByteString/hex/#/PointingToDeclaration/okio/okio/-byte-string/hex.html +$dokka.location:okio/ByteString/hmacSha1/#okio.ByteString/PointingToDeclaration/okio/okio/-byte-string/hmac-sha1.html +$dokka.location:okio/ByteString/hmacSha256/#okio.ByteString/PointingToDeclaration/okio/okio/-byte-string/hmac-sha256.html +$dokka.location:okio/ByteString/hmacSha512/#okio.ByteString/PointingToDeclaration/okio/okio/-byte-string/hmac-sha512.html +$dokka.location:okio/ByteString/indexOf/#kotlin.ByteArray#kotlin.Int/PointingToDeclaration/okio/okio/-byte-string/index-of.html +$dokka.location:okio/ByteString/indexOf/#okio.ByteString#kotlin.Int/PointingToDeclaration/okio/okio/-byte-string/index-of.html +$dokka.location:okio/ByteString/lastIndexOf/#kotlin.ByteArray#kotlin.Int/PointingToDeclaration/okio/okio/-byte-string/last-index-of.html +$dokka.location:okio/ByteString/lastIndexOf/#okio.ByteString#kotlin.Int/PointingToDeclaration/okio/okio/-byte-string/last-index-of.html +$dokka.location:okio/ByteString/md5/#/PointingToDeclaration/okio/okio/-byte-string/md5.html +$dokka.location:okio/ByteString/rangeEquals/#kotlin.Int#kotlin.ByteArray#kotlin.Int#kotlin.Int/PointingToDeclaration/okio/okio/-byte-string/range-equals.html +$dokka.location:okio/ByteString/rangeEquals/#kotlin.Int#okio.ByteString#kotlin.Int#kotlin.Int/PointingToDeclaration/okio/okio/-byte-string/range-equals.html +$dokka.location:okio/ByteString/sha1/#/PointingToDeclaration/okio/okio/-byte-string/sha1.html +$dokka.location:okio/ByteString/sha256/#/PointingToDeclaration/okio/okio/-byte-string/sha256.html +$dokka.location:okio/ByteString/sha512/#/PointingToDeclaration/okio/okio/-byte-string/sha512.html +$dokka.location:okio/ByteString/size/#/PointingToDeclaration/okio/okio/-byte-string/size.html +$dokka.location:okio/ByteString/startsWith/#kotlin.ByteArray/PointingToDeclaration/okio/okio/-byte-string/starts-with.html +$dokka.location:okio/ByteString/startsWith/#okio.ByteString/PointingToDeclaration/okio/okio/-byte-string/starts-with.html +$dokka.location:okio/ByteString/string/#java.nio.charset.Charset/PointingToDeclaration/okio/okio/-byte-string/string.html +$dokka.location:okio/ByteString/substring/#kotlin.Int#kotlin.Int/PointingToDeclaration/okio/okio/-byte-string/substring.html +$dokka.location:okio/ByteString/toAsciiLowercase/#/PointingToDeclaration/okio/okio/-byte-string/to-ascii-lowercase.html +$dokka.location:okio/ByteString/toAsciiUppercase/#/PointingToDeclaration/okio/okio/-byte-string/to-ascii-uppercase.html +$dokka.location:okio/ByteString/toByteArray/#/PointingToDeclaration/okio/okio/-byte-string/to-byte-array.html +$dokka.location:okio/ByteString/toString/#/PointingToDeclaration/okio/okio/-byte-string/to-string.html +$dokka.location:okio/ByteString/utf8/#/PointingToDeclaration/okio/okio/-byte-string/utf8.html +$dokka.location:okio/ByteString/write/#java.io.OutputStream/PointingToDeclaration/okio/okio/-byte-string/write.html +$dokka.location:okio/CipherSink///PointingToDeclaration/okio/okio/-cipher-sink/index.html +$dokka.location:okio/CipherSink/CipherSink/#okio.BufferedSink#javax.crypto.Cipher/PointingToDeclaration/okio/okio/-cipher-sink/-cipher-sink.html +$dokka.location:okio/CipherSink/cipher/#/PointingToDeclaration/okio/okio/-cipher-sink/cipher.html +$dokka.location:okio/CipherSink/close/#/PointingToDeclaration/okio/okio/-cipher-sink/close.html +$dokka.location:okio/CipherSink/flush/#/PointingToDeclaration/okio/okio/-cipher-sink/flush.html +$dokka.location:okio/CipherSink/timeout/#/PointingToDeclaration/okio/okio/-cipher-sink/timeout.html +$dokka.location:okio/CipherSink/write/#okio.Buffer#kotlin.Long/PointingToDeclaration/okio/okio/-cipher-sink/write.html +$dokka.location:okio/CipherSource///PointingToDeclaration/okio/okio/-cipher-source/index.html +$dokka.location:okio/CipherSource/CipherSource/#okio.BufferedSource#javax.crypto.Cipher/PointingToDeclaration/okio/okio/-cipher-source/-cipher-source.html +$dokka.location:okio/CipherSource/cipher/#/PointingToDeclaration/okio/okio/-cipher-source/cipher.html +$dokka.location:okio/CipherSource/close/#/PointingToDeclaration/okio/okio/-cipher-source/close.html +$dokka.location:okio/CipherSource/read/#okio.Buffer#kotlin.Long/PointingToDeclaration/okio/okio/-cipher-source/read.html +$dokka.location:okio/CipherSource/timeout/#/PointingToDeclaration/okio/okio/-cipher-source/timeout.html +$dokka.location:okio/Closeable///PointingToDeclaration/okio/okio/-closeable/index.html +$dokka.location:okio/Closeable/close/#/PointingToDeclaration/okio/okio/-closeable/close.html +$dokka.location:okio/Deflater///PointingToDeclaration/okio/okio/-deflater/index.html +$dokka.location:okio/Deflater/Deflater/#/PointingToDeclaration/okio/okio/-deflater/-deflater.html +$dokka.location:okio/Deflater/Deflater/#kotlin.Int#kotlin.Boolean/PointingToDeclaration/okio/okio/-deflater/-deflater.html +$dokka.location:okio/Deflater/end/#/PointingToDeclaration/okio/okio/-deflater/end.html +$dokka.location:okio/Deflater/getBytesRead/#/PointingToDeclaration/okio/okio/-deflater/get-bytes-read.html +$dokka.location:okio/DeflaterSink///PointingToDeclaration/okio/okio/-deflater-sink/index.html +$dokka.location:okio/DeflaterSink/DeflaterSink/#okio.Sink#okio.Deflater/PointingToDeclaration/okio/okio/-deflater-sink/-deflater-sink.html +$dokka.location:okio/DeflaterSink/close/#/PointingToDeclaration/okio/okio/-deflater-sink/close.html +$dokka.location:okio/DeflaterSink/flush/#/PointingToDeclaration/okio/okio/-deflater-sink/flush.html +$dokka.location:okio/DeflaterSink/timeout/#/PointingToDeclaration/okio/okio/-deflater-sink/timeout.html +$dokka.location:okio/DeflaterSink/write/#okio.Buffer#kotlin.Long/PointingToDeclaration/okio/okio/-deflater-sink/write.html +$dokka.location:okio/EOFException///PointingToDeclaration/okio/okio/-e-o-f-exception/index.html +$dokka.location:okio/EOFException/EOFException/#/PointingToDeclaration/okio/okio/-e-o-f-exception/-e-o-f-exception.html +$dokka.location:okio/EOFException/EOFException/#kotlin.String?/PointingToDeclaration/okio/okio/-e-o-f-exception/-e-o-f-exception.html +$dokka.location:okio/FileHandle///PointingToDeclaration/okio/okio/-file-handle/index.html +$dokka.location:okio/FileHandle/FileHandle/#kotlin.Boolean/PointingToDeclaration/okio/okio/-file-handle/-file-handle.html +$dokka.location:okio/FileHandle/appendingSink/#/PointingToDeclaration/okio/okio/-file-handle/appending-sink.html +$dokka.location:okio/FileHandle/close/#/PointingToDeclaration/okio/okio/-file-handle/close.html +$dokka.location:okio/FileHandle/flush/#/PointingToDeclaration/okio/okio/-file-handle/flush.html +$dokka.location:okio/FileHandle/lock/#/PointingToDeclaration/okio/okio/-file-handle/lock.html +$dokka.location:okio/FileHandle/position/#okio.Sink/PointingToDeclaration/okio/okio/-file-handle/position.html +$dokka.location:okio/FileHandle/position/#okio.Source/PointingToDeclaration/okio/okio/-file-handle/position.html +$dokka.location:okio/FileHandle/read/#kotlin.Long#kotlin.ByteArray#kotlin.Int#kotlin.Int/PointingToDeclaration/okio/okio/-file-handle/read.html +$dokka.location:okio/FileHandle/read/#kotlin.Long#okio.Buffer#kotlin.Long/PointingToDeclaration/okio/okio/-file-handle/read.html +$dokka.location:okio/FileHandle/readWrite/#/PointingToDeclaration/okio/okio/-file-handle/read-write.html +$dokka.location:okio/FileHandle/reposition/#okio.Sink#kotlin.Long/PointingToDeclaration/okio/okio/-file-handle/reposition.html +$dokka.location:okio/FileHandle/reposition/#okio.Source#kotlin.Long/PointingToDeclaration/okio/okio/-file-handle/reposition.html +$dokka.location:okio/FileHandle/resize/#kotlin.Long/PointingToDeclaration/okio/okio/-file-handle/resize.html +$dokka.location:okio/FileHandle/sink/#kotlin.Long/PointingToDeclaration/okio/okio/-file-handle/sink.html +$dokka.location:okio/FileHandle/size/#/PointingToDeclaration/okio/okio/-file-handle/size.html +$dokka.location:okio/FileHandle/source/#kotlin.Long/PointingToDeclaration/okio/okio/-file-handle/source.html +$dokka.location:okio/FileHandle/write/#kotlin.Long#kotlin.ByteArray#kotlin.Int#kotlin.Int/PointingToDeclaration/okio/okio/-file-handle/write.html +$dokka.location:okio/FileHandle/write/#kotlin.Long#okio.Buffer#kotlin.Long/PointingToDeclaration/okio/okio/-file-handle/write.html +$dokka.location:okio/FileMetadata///PointingToDeclaration/okio/okio/-file-metadata/index.html +$dokka.location:okio/FileMetadata/FileMetadata/#kotlin.Boolean#kotlin.Boolean#okio.Path?#kotlin.Long?#kotlin.Long?#kotlin.Long?#kotlin.Long?#kotlin.collections.Map[kotlin.reflect.KClass[*],kotlin.Any]/PointingToDeclaration/okio/okio/-file-metadata/-file-metadata.html +$dokka.location:okio/FileMetadata/copy/#kotlin.Boolean#kotlin.Boolean#okio.Path?#kotlin.Long?#kotlin.Long?#kotlin.Long?#kotlin.Long?#kotlin.collections.Map[kotlin.reflect.KClass[*],kotlin.Any]/PointingToDeclaration/okio/okio/-file-metadata/copy.html +$dokka.location:okio/FileMetadata/createdAtMillis/#/PointingToDeclaration/okio/okio/-file-metadata/created-at-millis.html +$dokka.location:okio/FileMetadata/extra/#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/okio/okio/-file-metadata/extra.html +$dokka.location:okio/FileMetadata/extras/#/PointingToDeclaration/okio/okio/-file-metadata/extras.html +$dokka.location:okio/FileMetadata/isDirectory/#/PointingToDeclaration/okio/okio/-file-metadata/is-directory.html +$dokka.location:okio/FileMetadata/isRegularFile/#/PointingToDeclaration/okio/okio/-file-metadata/is-regular-file.html +$dokka.location:okio/FileMetadata/lastAccessedAtMillis/#/PointingToDeclaration/okio/okio/-file-metadata/last-accessed-at-millis.html +$dokka.location:okio/FileMetadata/lastModifiedAtMillis/#/PointingToDeclaration/okio/okio/-file-metadata/last-modified-at-millis.html +$dokka.location:okio/FileMetadata/size/#/PointingToDeclaration/okio/okio/-file-metadata/size.html +$dokka.location:okio/FileMetadata/symlinkTarget/#/PointingToDeclaration/okio/okio/-file-metadata/symlink-target.html +$dokka.location:okio/FileMetadata/toString/#/PointingToDeclaration/okio/okio/-file-metadata/to-string.html +$dokka.location:okio/FileNotFoundException///PointingToDeclaration/okio/okio/-file-not-found-exception/index.html +$dokka.location:okio/FileNotFoundException/FileNotFoundException/#kotlin.String?/PointingToDeclaration/okio/okio/-file-not-found-exception/-file-not-found-exception.html +$dokka.location:okio/FileSystem.Companion///PointingToDeclaration/okio/okio/-file-system/-companion/index.html +$dokka.location:okio/FileSystem.Companion/RESOURCES/#/PointingToDeclaration/okio/okio/-file-system/-companion/-r-e-s-o-u-r-c-e-s.html +$dokka.location:okio/FileSystem.Companion/SYSTEM/#/PointingToDeclaration/okio/okio/-file-system/-companion/[native]-s-y-s-t-e-m.html +$dokka.location:okio/FileSystem.Companion/SYSTEM_TEMPORARY_DIRECTORY/#/PointingToDeclaration/okio/okio/-file-system/-companion/-s-y-s-t-e-m_-t-e-m-p-o-r-a-r-y_-d-i-r-e-c-t-o-r-y.html +$dokka.location:okio/FileSystem.Companion/asOkioFileSystem/java.nio.file.FileSystem#/PointingToDeclaration/okio/okio/-file-system/-companion/as-okio-file-system.html +$dokka.location:okio/FileSystem///PointingToDeclaration/okio/okio/-file-system/index.html +$dokka.location:okio/FileSystem/FileSystem/#/PointingToDeclaration/okio/okio/-file-system/-file-system.html +$dokka.location:okio/FileSystem/appendingSink/#okio.Path#kotlin.Boolean/PointingToDeclaration/okio/okio/-file-system/appending-sink.html +$dokka.location:okio/FileSystem/appendingSink/#okio.Path/PointingToDeclaration/okio/okio/-file-system/appending-sink.html +$dokka.location:okio/FileSystem/atomicMove/#okio.Path#okio.Path/PointingToDeclaration/okio/okio/-file-system/atomic-move.html +$dokka.location:okio/FileSystem/canonicalize/#okio.Path/PointingToDeclaration/okio/okio/-file-system/canonicalize.html +$dokka.location:okio/FileSystem/close/#/PointingToDeclaration/okio/okio/-file-system/close.html +$dokka.location:okio/FileSystem/copy/#okio.Path#okio.Path/PointingToDeclaration/okio/okio/-file-system/copy.html +$dokka.location:okio/FileSystem/createDirectories/#okio.Path#kotlin.Boolean/PointingToDeclaration/okio/okio/-file-system/create-directories.html +$dokka.location:okio/FileSystem/createDirectories/#okio.Path/PointingToDeclaration/okio/okio/-file-system/create-directories.html +$dokka.location:okio/FileSystem/createDirectory/#okio.Path#kotlin.Boolean/PointingToDeclaration/okio/okio/-file-system/create-directory.html +$dokka.location:okio/FileSystem/createDirectory/#okio.Path/PointingToDeclaration/okio/okio/-file-system/create-directory.html +$dokka.location:okio/FileSystem/createSymlink/#okio.Path#okio.Path/PointingToDeclaration/okio/okio/-file-system/create-symlink.html +$dokka.location:okio/FileSystem/delete/#okio.Path#kotlin.Boolean/PointingToDeclaration/okio/okio/-file-system/delete.html +$dokka.location:okio/FileSystem/delete/#okio.Path/PointingToDeclaration/okio/okio/-file-system/delete.html +$dokka.location:okio/FileSystem/deleteRecursively/#okio.Path#kotlin.Boolean/PointingToDeclaration/okio/okio/-file-system/delete-recursively.html +$dokka.location:okio/FileSystem/deleteRecursively/#okio.Path/PointingToDeclaration/okio/okio/-file-system/delete-recursively.html +$dokka.location:okio/FileSystem/exists/#okio.Path/PointingToDeclaration/okio/okio/-file-system/exists.html +$dokka.location:okio/FileSystem/list/#okio.Path/PointingToDeclaration/okio/okio/-file-system/list.html +$dokka.location:okio/FileSystem/listOrNull/#okio.Path/PointingToDeclaration/okio/okio/-file-system/list-or-null.html +$dokka.location:okio/FileSystem/listRecursively/#okio.Path#kotlin.Boolean/PointingToDeclaration/okio/okio/-file-system/list-recursively.html +$dokka.location:okio/FileSystem/listRecursively/#okio.Path/PointingToDeclaration/okio/okio/-file-system/list-recursively.html +$dokka.location:okio/FileSystem/metadata/#okio.Path/PointingToDeclaration/okio/okio/-file-system/metadata.html +$dokka.location:okio/FileSystem/metadataOrNull/#okio.Path/PointingToDeclaration/okio/okio/-file-system/metadata-or-null.html +$dokka.location:okio/FileSystem/openReadOnly/#okio.Path/PointingToDeclaration/okio/okio/-file-system/open-read-only.html +$dokka.location:okio/FileSystem/openReadWrite/#okio.Path#kotlin.Boolean#kotlin.Boolean/PointingToDeclaration/okio/okio/-file-system/open-read-write.html +$dokka.location:okio/FileSystem/openReadWrite/#okio.Path/PointingToDeclaration/okio/okio/-file-system/open-read-write.html +$dokka.location:okio/FileSystem/read/#okio.Path#kotlin.Function1[okio.BufferedSource,TypeParam(bounds=[kotlin.Any?])]/PointingToDeclaration/okio/okio/-file-system/read.html +$dokka.location:okio/FileSystem/sink/#okio.Path#kotlin.Boolean/PointingToDeclaration/okio/okio/-file-system/sink.html +$dokka.location:okio/FileSystem/sink/#okio.Path/PointingToDeclaration/okio/okio/-file-system/sink.html +$dokka.location:okio/FileSystem/source/#okio.Path/PointingToDeclaration/okio/okio/-file-system/source.html +$dokka.location:okio/FileSystem/write/#okio.Path#kotlin.Boolean#kotlin.Function1[okio.BufferedSink,TypeParam(bounds=[kotlin.Any?])]/PointingToDeclaration/okio/okio/-file-system/write.html +$dokka.location:okio/ForwardingFileSystem///PointingToDeclaration/okio/okio/-forwarding-file-system/index.html +$dokka.location:okio/ForwardingFileSystem/ForwardingFileSystem/#okio.FileSystem/PointingToDeclaration/okio/okio/-forwarding-file-system/-forwarding-file-system.html +$dokka.location:okio/ForwardingFileSystem/appendingSink/#okio.Path#kotlin.Boolean/PointingToDeclaration/okio/okio/-forwarding-file-system/appending-sink.html +$dokka.location:okio/ForwardingFileSystem/atomicMove/#okio.Path#okio.Path/PointingToDeclaration/okio/okio/-forwarding-file-system/atomic-move.html +$dokka.location:okio/ForwardingFileSystem/canonicalize/#okio.Path/PointingToDeclaration/okio/okio/-forwarding-file-system/canonicalize.html +$dokka.location:okio/ForwardingFileSystem/close/#/PointingToDeclaration/okio/okio/-forwarding-file-system/close.html +$dokka.location:okio/ForwardingFileSystem/createDirectory/#okio.Path#kotlin.Boolean/PointingToDeclaration/okio/okio/-forwarding-file-system/create-directory.html +$dokka.location:okio/ForwardingFileSystem/createSymlink/#okio.Path#okio.Path/PointingToDeclaration/okio/okio/-forwarding-file-system/create-symlink.html +$dokka.location:okio/ForwardingFileSystem/delegate/#/PointingToDeclaration/okio/okio/-forwarding-file-system/delegate.html +$dokka.location:okio/ForwardingFileSystem/delete/#okio.Path#kotlin.Boolean/PointingToDeclaration/okio/okio/-forwarding-file-system/delete.html +$dokka.location:okio/ForwardingFileSystem/list/#okio.Path/PointingToDeclaration/okio/okio/-forwarding-file-system/list.html +$dokka.location:okio/ForwardingFileSystem/listOrNull/#okio.Path/PointingToDeclaration/okio/okio/-forwarding-file-system/list-or-null.html +$dokka.location:okio/ForwardingFileSystem/listRecursively/#okio.Path#kotlin.Boolean/PointingToDeclaration/okio/okio/-forwarding-file-system/list-recursively.html +$dokka.location:okio/ForwardingFileSystem/metadataOrNull/#okio.Path/PointingToDeclaration/okio/okio/-forwarding-file-system/metadata-or-null.html +$dokka.location:okio/ForwardingFileSystem/onPathParameter/#okio.Path#kotlin.String#kotlin.String/PointingToDeclaration/okio/okio/-forwarding-file-system/on-path-parameter.html +$dokka.location:okio/ForwardingFileSystem/onPathResult/#okio.Path#kotlin.String/PointingToDeclaration/okio/okio/-forwarding-file-system/on-path-result.html +$dokka.location:okio/ForwardingFileSystem/openReadOnly/#okio.Path/PointingToDeclaration/okio/okio/-forwarding-file-system/open-read-only.html +$dokka.location:okio/ForwardingFileSystem/openReadWrite/#okio.Path#kotlin.Boolean#kotlin.Boolean/PointingToDeclaration/okio/okio/-forwarding-file-system/open-read-write.html +$dokka.location:okio/ForwardingFileSystem/sink/#okio.Path#kotlin.Boolean/PointingToDeclaration/okio/okio/-forwarding-file-system/sink.html +$dokka.location:okio/ForwardingFileSystem/source/#okio.Path/PointingToDeclaration/okio/okio/-forwarding-file-system/source.html +$dokka.location:okio/ForwardingFileSystem/toString/#/PointingToDeclaration/okio/okio/-forwarding-file-system/to-string.html +$dokka.location:okio/ForwardingSink///PointingToDeclaration/okio/okio/-forwarding-sink/index.html +$dokka.location:okio/ForwardingSink/ForwardingSink/#okio.Sink/PointingToDeclaration/okio/okio/-forwarding-sink/-forwarding-sink.html +$dokka.location:okio/ForwardingSink/close/#/PointingToDeclaration/okio/okio/-forwarding-sink/close.html +$dokka.location:okio/ForwardingSink/delegate/#/PointingToDeclaration/okio/okio/-forwarding-sink/delegate.html +$dokka.location:okio/ForwardingSink/flush/#/PointingToDeclaration/okio/okio/-forwarding-sink/flush.html +$dokka.location:okio/ForwardingSink/timeout/#/PointingToDeclaration/okio/okio/-forwarding-sink/timeout.html +$dokka.location:okio/ForwardingSink/toString/#/PointingToDeclaration/okio/okio/-forwarding-sink/to-string.html +$dokka.location:okio/ForwardingSink/write/#okio.Buffer#kotlin.Long/PointingToDeclaration/okio/okio/-forwarding-sink/write.html +$dokka.location:okio/ForwardingSource///PointingToDeclaration/okio/okio/-forwarding-source/index.html +$dokka.location:okio/ForwardingSource/ForwardingSource/#okio.Source/PointingToDeclaration/okio/okio/-forwarding-source/-forwarding-source.html +$dokka.location:okio/ForwardingSource/close/#/PointingToDeclaration/okio/okio/-forwarding-source/close.html +$dokka.location:okio/ForwardingSource/delegate/#/PointingToDeclaration/okio/okio/-forwarding-source/delegate.html +$dokka.location:okio/ForwardingSource/read/#okio.Buffer#kotlin.Long/PointingToDeclaration/okio/okio/-forwarding-source/read.html +$dokka.location:okio/ForwardingSource/timeout/#/PointingToDeclaration/okio/okio/-forwarding-source/timeout.html +$dokka.location:okio/ForwardingSource/toString/#/PointingToDeclaration/okio/okio/-forwarding-source/to-string.html +$dokka.location:okio/ForwardingTimeout///PointingToDeclaration/okio/okio/-forwarding-timeout/index.html +$dokka.location:okio/ForwardingTimeout/ForwardingTimeout/#okio.Timeout/PointingToDeclaration/okio/okio/-forwarding-timeout/-forwarding-timeout.html +$dokka.location:okio/ForwardingTimeout/awaitSignal/#java.util.concurrent.locks.Condition/PointingToDeclaration/okio/okio/-forwarding-timeout/await-signal.html +$dokka.location:okio/ForwardingTimeout/cancel/#/PointingToDeclaration/okio/okio/-forwarding-timeout/cancel.html +$dokka.location:okio/ForwardingTimeout/clearDeadline/#/PointingToDeclaration/okio/okio/-forwarding-timeout/clear-deadline.html +$dokka.location:okio/ForwardingTimeout/clearTimeout/#/PointingToDeclaration/okio/okio/-forwarding-timeout/clear-timeout.html +$dokka.location:okio/ForwardingTimeout/deadlineNanoTime/#/PointingToDeclaration/okio/okio/-forwarding-timeout/deadline-nano-time.html +$dokka.location:okio/ForwardingTimeout/deadlineNanoTime/#kotlin.Long/PointingToDeclaration/okio/okio/-forwarding-timeout/deadline-nano-time.html +$dokka.location:okio/ForwardingTimeout/delegate/#/PointingToDeclaration/okio/okio/-forwarding-timeout/delegate.html +$dokka.location:okio/ForwardingTimeout/hasDeadline/#/PointingToDeclaration/okio/okio/-forwarding-timeout/has-deadline.html +$dokka.location:okio/ForwardingTimeout/setDelegate/#okio.Timeout/PointingToDeclaration/okio/okio/-forwarding-timeout/set-delegate.html +$dokka.location:okio/ForwardingTimeout/throwIfReached/#/PointingToDeclaration/okio/okio/-forwarding-timeout/throw-if-reached.html +$dokka.location:okio/ForwardingTimeout/timeout/#kotlin.Long#java.util.concurrent.TimeUnit/PointingToDeclaration/okio/okio/-forwarding-timeout/timeout.html +$dokka.location:okio/ForwardingTimeout/timeoutNanos/#/PointingToDeclaration/okio/okio/-forwarding-timeout/timeout-nanos.html +$dokka.location:okio/ForwardingTimeout/waitUntilNotified/#kotlin.Any/PointingToDeclaration/okio/okio/-forwarding-timeout/wait-until-notified.html +$dokka.location:okio/GzipSink///PointingToDeclaration/okio/okio/-gzip-sink/index.html +$dokka.location:okio/GzipSink/GzipSink/#okio.Sink/PointingToDeclaration/okio/okio/-gzip-sink/-gzip-sink.html +$dokka.location:okio/GzipSink/close/#/PointingToDeclaration/okio/okio/-gzip-sink/close.html +$dokka.location:okio/GzipSink/deflater/#/PointingToDeclaration/okio/okio/-gzip-sink/deflater.html +$dokka.location:okio/GzipSink/flush/#/PointingToDeclaration/okio/okio/-gzip-sink/flush.html +$dokka.location:okio/GzipSink/timeout/#/PointingToDeclaration/okio/okio/-gzip-sink/timeout.html +$dokka.location:okio/GzipSink/write/#okio.Buffer#kotlin.Long/PointingToDeclaration/okio/okio/-gzip-sink/write.html +$dokka.location:okio/GzipSource///PointingToDeclaration/okio/okio/-gzip-source/index.html +$dokka.location:okio/GzipSource/GzipSource/#okio.Source/PointingToDeclaration/okio/okio/-gzip-source/-gzip-source.html +$dokka.location:okio/GzipSource/close/#/PointingToDeclaration/okio/okio/-gzip-source/close.html +$dokka.location:okio/GzipSource/read/#okio.Buffer#kotlin.Long/PointingToDeclaration/okio/okio/-gzip-source/read.html +$dokka.location:okio/GzipSource/timeout/#/PointingToDeclaration/okio/okio/-gzip-source/timeout.html +$dokka.location:okio/HashingSink.Companion///PointingToDeclaration/okio/okio/-hashing-sink/-companion/index.html +$dokka.location:okio/HashingSink.Companion/hmacSha1/#okio.Sink#okio.ByteString/PointingToDeclaration/okio/okio/-hashing-sink/-companion/hmac-sha1.html +$dokka.location:okio/HashingSink.Companion/hmacSha256/#okio.Sink#okio.ByteString/PointingToDeclaration/okio/okio/-hashing-sink/-companion/hmac-sha256.html +$dokka.location:okio/HashingSink.Companion/hmacSha512/#okio.Sink#okio.ByteString/PointingToDeclaration/okio/okio/-hashing-sink/-companion/hmac-sha512.html +$dokka.location:okio/HashingSink.Companion/md5/#okio.Sink/PointingToDeclaration/okio/okio/-hashing-sink/-companion/md5.html +$dokka.location:okio/HashingSink.Companion/sha1/#okio.Sink/PointingToDeclaration/okio/okio/-hashing-sink/-companion/sha1.html +$dokka.location:okio/HashingSink.Companion/sha256/#okio.Sink/PointingToDeclaration/okio/okio/-hashing-sink/-companion/sha256.html +$dokka.location:okio/HashingSink.Companion/sha512/#okio.Sink/PointingToDeclaration/okio/okio/-hashing-sink/-companion/sha512.html +$dokka.location:okio/HashingSink///PointingToDeclaration/okio/okio/-hashing-sink/index.html +$dokka.location:okio/HashingSink/close/#/PointingToDeclaration/okio/okio/-hashing-sink/close.html +$dokka.location:okio/HashingSink/flush/#/PointingToDeclaration/okio/okio/-hashing-sink/flush.html +$dokka.location:okio/HashingSink/hash/#/PointingToDeclaration/okio/okio/-hashing-sink/hash.html +$dokka.location:okio/HashingSink/timeout/#/PointingToDeclaration/okio/okio/-hashing-sink/timeout.html +$dokka.location:okio/HashingSink/write/#okio.Buffer#kotlin.Long/PointingToDeclaration/okio/okio/-hashing-sink/write.html +$dokka.location:okio/HashingSource.Companion///PointingToDeclaration/okio/okio/-hashing-source/-companion/index.html +$dokka.location:okio/HashingSource.Companion/hmacSha1/#okio.Source#okio.ByteString/PointingToDeclaration/okio/okio/-hashing-source/-companion/hmac-sha1.html +$dokka.location:okio/HashingSource.Companion/hmacSha256/#okio.Source#okio.ByteString/PointingToDeclaration/okio/okio/-hashing-source/-companion/hmac-sha256.html +$dokka.location:okio/HashingSource.Companion/hmacSha512/#okio.Source#okio.ByteString/PointingToDeclaration/okio/okio/-hashing-source/-companion/hmac-sha512.html +$dokka.location:okio/HashingSource.Companion/md5/#okio.Source/PointingToDeclaration/okio/okio/-hashing-source/-companion/md5.html +$dokka.location:okio/HashingSource.Companion/sha1/#okio.Source/PointingToDeclaration/okio/okio/-hashing-source/-companion/sha1.html +$dokka.location:okio/HashingSource.Companion/sha256/#okio.Source/PointingToDeclaration/okio/okio/-hashing-source/-companion/sha256.html +$dokka.location:okio/HashingSource.Companion/sha512/#okio.Source/PointingToDeclaration/okio/okio/-hashing-source/-companion/sha512.html +$dokka.location:okio/HashingSource///PointingToDeclaration/okio/okio/-hashing-source/index.html +$dokka.location:okio/HashingSource/close/#/PointingToDeclaration/okio/okio/-hashing-source/close.html +$dokka.location:okio/HashingSource/hash/#/PointingToDeclaration/okio/okio/-hashing-source/hash.html +$dokka.location:okio/HashingSource/read/#okio.Buffer#kotlin.Long/PointingToDeclaration/okio/okio/-hashing-source/read.html +$dokka.location:okio/HashingSource/timeout/#/PointingToDeclaration/okio/okio/-hashing-source/timeout.html +$dokka.location:okio/IOException///PointingToDeclaration/okio/okio/-i-o-exception/index.html +$dokka.location:okio/IOException/IOException/#/PointingToDeclaration/okio/okio/-i-o-exception/-i-o-exception.html +$dokka.location:okio/IOException/IOException/#kotlin.String?#kotlin.Throwable?/PointingToDeclaration/okio/okio/-i-o-exception/-i-o-exception.html +$dokka.location:okio/IOException/IOException/#kotlin.String?/PointingToDeclaration/okio/okio/-i-o-exception/-i-o-exception.html +$dokka.location:okio/Inflater///PointingToDeclaration/okio/okio/-inflater/index.html +$dokka.location:okio/Inflater/Inflater/#/PointingToDeclaration/okio/okio/-inflater/-inflater.html +$dokka.location:okio/Inflater/Inflater/#kotlin.Boolean/PointingToDeclaration/okio/okio/-inflater/-inflater.html +$dokka.location:okio/Inflater/end/#/PointingToDeclaration/okio/okio/-inflater/end.html +$dokka.location:okio/Inflater/getBytesWritten/#/PointingToDeclaration/okio/okio/-inflater/get-bytes-written.html +$dokka.location:okio/InflaterSource///PointingToDeclaration/okio/okio/-inflater-source/index.html +$dokka.location:okio/InflaterSource/InflaterSource/#okio.Source#okio.Inflater/PointingToDeclaration/okio/okio/-inflater-source/-inflater-source.html +$dokka.location:okio/InflaterSource/close/#/PointingToDeclaration/okio/okio/-inflater-source/close.html +$dokka.location:okio/InflaterSource/read/#okio.Buffer#kotlin.Long/PointingToDeclaration/okio/okio/-inflater-source/read.html +$dokka.location:okio/InflaterSource/timeout/#/PointingToDeclaration/okio/okio/-inflater-source/timeout.html +$dokka.location:okio/Lock.Companion///PointingToDeclaration/okio/okio/-lock/-companion/index.html +$dokka.location:okio/Lock.Companion/instance/#/PointingToDeclaration/okio/okio/-lock/-companion/instance.html +$dokka.location:okio/Lock///PointingToDeclaration/okio/okio/-lock/index.html +$dokka.location:okio/Lock/Lock/#/PointingToDeclaration/okio/okio/-lock/-lock.html +$dokka.location:okio/Options.Companion///PointingToDeclaration/okio/okio/-options/-companion/index.html +$dokka.location:okio/Options.Companion/of/#kotlin.Array[okio.ByteString]/PointingToDeclaration/okio/okio/-options/-companion/of.html +$dokka.location:okio/Options///PointingToDeclaration/okio/okio/-options/index.html +$dokka.location:okio/Options/get/#kotlin.Int/PointingToDeclaration/okio/okio/-options/get.html +$dokka.location:okio/Options/size/#/PointingToDeclaration/okio/okio/-options/size.html +$dokka.location:okio/Path.Companion///PointingToDeclaration/okio/okio/-path/-companion/index.html +$dokka.location:okio/Path.Companion/DIRECTORY_SEPARATOR/#/PointingToDeclaration/okio/okio/-path/-companion/-d-i-r-e-c-t-o-r-y_-s-e-p-a-r-a-t-o-r.html +$dokka.location:okio/Path.Companion/toOkioPath/java.io.File#kotlin.Boolean/PointingToDeclaration/okio/okio/-path/-companion/to-okio-path.html +$dokka.location:okio/Path.Companion/toOkioPath/java.nio.file.Path#kotlin.Boolean/PointingToDeclaration/okio/okio/-path/-companion/to-okio-path.html +$dokka.location:okio/Path.Companion/toPath/kotlin.String#kotlin.Boolean/PointingToDeclaration/okio/okio/-path/-companion/to-path.html +$dokka.location:okio/Path///PointingToDeclaration/okio/okio/-path/index.html +$dokka.location:okio/Path/compareTo/#okio.Path/PointingToDeclaration/okio/okio/-path/compare-to.html +$dokka.location:okio/Path/div/#kotlin.String/PointingToDeclaration/okio/okio/-path/div.html +$dokka.location:okio/Path/div/#okio.ByteString/PointingToDeclaration/okio/okio/-path/div.html +$dokka.location:okio/Path/div/#okio.Path/PointingToDeclaration/okio/okio/-path/div.html +$dokka.location:okio/Path/equals/#kotlin.Any?/PointingToDeclaration/okio/okio/-path/equals.html +$dokka.location:okio/Path/hashCode/#/PointingToDeclaration/okio/okio/-path/hash-code.html +$dokka.location:okio/Path/isAbsolute/#/PointingToDeclaration/okio/okio/-path/is-absolute.html +$dokka.location:okio/Path/isRelative/#/PointingToDeclaration/okio/okio/-path/is-relative.html +$dokka.location:okio/Path/isRoot/#/PointingToDeclaration/okio/okio/-path/is-root.html +$dokka.location:okio/Path/name/#/PointingToDeclaration/okio/okio/-path/name.html +$dokka.location:okio/Path/nameBytes/#/PointingToDeclaration/okio/okio/-path/name-bytes.html +$dokka.location:okio/Path/normalized/#/PointingToDeclaration/okio/okio/-path/normalized.html +$dokka.location:okio/Path/parent/#/PointingToDeclaration/okio/okio/-path/parent.html +$dokka.location:okio/Path/relativeTo/#okio.Path/PointingToDeclaration/okio/okio/-path/relative-to.html +$dokka.location:okio/Path/resolve/#kotlin.String#kotlin.Boolean/PointingToDeclaration/okio/okio/-path/resolve.html +$dokka.location:okio/Path/resolve/#okio.ByteString#kotlin.Boolean/PointingToDeclaration/okio/okio/-path/resolve.html +$dokka.location:okio/Path/resolve/#okio.Path#kotlin.Boolean/PointingToDeclaration/okio/okio/-path/resolve.html +$dokka.location:okio/Path/root/#/PointingToDeclaration/okio/okio/-path/root.html +$dokka.location:okio/Path/segments/#/PointingToDeclaration/okio/okio/-path/segments.html +$dokka.location:okio/Path/segmentsBytes/#/PointingToDeclaration/okio/okio/-path/segments-bytes.html +$dokka.location:okio/Path/toFile/#/PointingToDeclaration/okio/okio/-path/to-file.html +$dokka.location:okio/Path/toNioPath/#/PointingToDeclaration/okio/okio/-path/to-nio-path.html +$dokka.location:okio/Path/toString/#/PointingToDeclaration/okio/okio/-path/to-string.html +$dokka.location:okio/Path/volumeLetter/#/PointingToDeclaration/okio/okio/-path/volume-letter.html +$dokka.location:okio/Pipe///PointingToDeclaration/okio/okio/-pipe/index.html +$dokka.location:okio/Pipe/Pipe/#kotlin.Long/PointingToDeclaration/okio/okio/-pipe/-pipe.html +$dokka.location:okio/Pipe/cancel/#/PointingToDeclaration/okio/okio/-pipe/cancel.html +$dokka.location:okio/Pipe/condition/#/PointingToDeclaration/okio/okio/-pipe/condition.html +$dokka.location:okio/Pipe/fold/#okio.Sink/PointingToDeclaration/okio/okio/-pipe/fold.html +$dokka.location:okio/Pipe/lock/#/PointingToDeclaration/okio/okio/-pipe/lock.html +$dokka.location:okio/Pipe/sink/#/PointingToDeclaration/okio/okio/-pipe/sink.html +$dokka.location:okio/Pipe/source/#/PointingToDeclaration/okio/okio/-pipe/source.html +$dokka.location:okio/ProtocolException///PointingToDeclaration/okio/okio/-protocol-exception/index.html +$dokka.location:okio/ProtocolException/ProtocolException/#kotlin.String/PointingToDeclaration/okio/okio/-protocol-exception/-protocol-exception.html +$dokka.location:okio/Sink///PointingToDeclaration/okio/okio/-sink/index.html +$dokka.location:okio/Sink/close/#/PointingToDeclaration/okio/okio/-sink/close.html +$dokka.location:okio/Sink/flush/#/PointingToDeclaration/okio/okio/-sink/flush.html +$dokka.location:okio/Sink/timeout/#/PointingToDeclaration/okio/okio/-sink/timeout.html +$dokka.location:okio/Sink/write/#okio.Buffer#kotlin.Long/PointingToDeclaration/okio/okio/-sink/write.html +$dokka.location:okio/Source///PointingToDeclaration/okio/okio/-source/index.html +$dokka.location:okio/Source/close/#/PointingToDeclaration/okio/okio/-source/close.html +$dokka.location:okio/Source/read/#okio.Buffer#kotlin.Long/PointingToDeclaration/okio/okio/-source/read.html +$dokka.location:okio/Source/timeout/#/PointingToDeclaration/okio/okio/-source/timeout.html +$dokka.location:okio/Throttler///PointingToDeclaration/okio/okio/-throttler/index.html +$dokka.location:okio/Throttler/Throttler/#/PointingToDeclaration/okio/okio/-throttler/-throttler.html +$dokka.location:okio/Throttler/bytesPerSecond/#kotlin.Long#kotlin.Long#kotlin.Long/PointingToDeclaration/okio/okio/-throttler/bytes-per-second.html +$dokka.location:okio/Throttler/condition/#/PointingToDeclaration/okio/okio/-throttler/condition.html +$dokka.location:okio/Throttler/lock/#/PointingToDeclaration/okio/okio/-throttler/lock.html +$dokka.location:okio/Throttler/sink/#okio.Sink/PointingToDeclaration/okio/okio/-throttler/sink.html +$dokka.location:okio/Throttler/source/#okio.Source/PointingToDeclaration/okio/okio/-throttler/source.html +$dokka.location:okio/Timeout.Companion///PointingToDeclaration/okio/okio/-timeout/-companion/index.html +$dokka.location:okio/Timeout.Companion/NONE/#/PointingToDeclaration/okio/okio/-timeout/-companion/-n-o-n-e.html +$dokka.location:okio/Timeout.Companion/minTimeout/#kotlin.Long#kotlin.Long/PointingToDeclaration/okio/okio/-timeout/-companion/min-timeout.html +$dokka.location:okio/Timeout.Companion/timeout/okio.Timeout#kotlin.Long#kotlin.time.DurationUnit/PointingToDeclaration/okio/okio/-timeout/-companion/timeout.html +$dokka.location:okio/Timeout.Companion/timeout/okio.Timeout#kotlin.time.Duration/PointingToDeclaration/okio/okio/-timeout/-companion/timeout.html +$dokka.location:okio/Timeout///PointingToDeclaration/okio/okio/-timeout/index.html +$dokka.location:okio/Timeout/Timeout/#/PointingToDeclaration/okio/okio/-timeout/-timeout.html +$dokka.location:okio/Timeout/awaitSignal/#java.util.concurrent.locks.Condition/PointingToDeclaration/okio/okio/-timeout/await-signal.html +$dokka.location:okio/Timeout/cancel/#/PointingToDeclaration/okio/okio/-timeout/cancel.html +$dokka.location:okio/Timeout/clearDeadline/#/PointingToDeclaration/okio/okio/-timeout/clear-deadline.html +$dokka.location:okio/Timeout/clearTimeout/#/PointingToDeclaration/okio/okio/-timeout/clear-timeout.html +$dokka.location:okio/Timeout/deadline/#kotlin.Long#java.util.concurrent.TimeUnit/PointingToDeclaration/okio/okio/-timeout/deadline.html +$dokka.location:okio/Timeout/deadlineNanoTime/#/PointingToDeclaration/okio/okio/-timeout/deadline-nano-time.html +$dokka.location:okio/Timeout/deadlineNanoTime/#kotlin.Long/PointingToDeclaration/okio/okio/-timeout/deadline-nano-time.html +$dokka.location:okio/Timeout/hasDeadline/#/PointingToDeclaration/okio/okio/-timeout/has-deadline.html +$dokka.location:okio/Timeout/intersectWith/#okio.Timeout#kotlin.Function0[TypeParam(bounds=[kotlin.Any?])]/PointingToDeclaration/okio/okio/-timeout/intersect-with.html +$dokka.location:okio/Timeout/throwIfReached/#/PointingToDeclaration/okio/okio/-timeout/throw-if-reached.html +$dokka.location:okio/Timeout/timeout/#kotlin.Long#java.util.concurrent.TimeUnit/PointingToDeclaration/okio/okio/-timeout/timeout.html +$dokka.location:okio/Timeout/timeoutNanos/#/PointingToDeclaration/okio/okio/-timeout/timeout-nanos.html +$dokka.location:okio/Timeout/waitUntilNotified/#kotlin.Any/PointingToDeclaration/okio/okio/-timeout/wait-until-notified.html +$dokka.location:okio/TypedOptions.Companion///PointingToDeclaration/okio/okio/-typed-options/-companion/index.html +$dokka.location:okio/TypedOptions.Companion/of/#kotlin.collections.Iterable[TypeParam(bounds=[kotlin.Any])]#kotlin.Function1[TypeParam(bounds=[kotlin.Any]),okio.ByteString]/PointingToDeclaration/okio/okio/-typed-options/-companion/of.html +$dokka.location:okio/TypedOptions///PointingToDeclaration/okio/okio/-typed-options/index.html +$dokka.location:okio/TypedOptions/TypedOptions/#kotlin.collections.List[TypeParam(bounds=[kotlin.Any])]#okio.Options/PointingToDeclaration/okio/okio/-typed-options/-typed-options.html +$dokka.location:okio/TypedOptions/get/#kotlin.Int/PointingToDeclaration/okio/okio/-typed-options/get.html +$dokka.location:okio/TypedOptions/size/#/PointingToDeclaration/okio/okio/-typed-options/size.html +okio + diff --git a/3.x/okio/scripts/clipboard.js b/3.x/okio/scripts/clipboard.js new file mode 100644 index 0000000000..7a4f33c598 --- /dev/null +++ b/3.x/okio/scripts/clipboard.js @@ -0,0 +1,56 @@ +/* + * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. + */ + +window.addEventListener('load', () => { + document.querySelectorAll('span.copy-icon').forEach(element => { + element.addEventListener('click', (el) => copyElementsContentToClipboard(element)); + }) + + document.querySelectorAll('span.anchor-icon').forEach(element => { + element.addEventListener('click', (el) => { + if(element.hasAttribute('pointing-to')){ + const location = hrefWithoutCurrentlyUsedAnchor() + '#' + element.getAttribute('pointing-to') + copyTextToClipboard(element, location) + } + }); + }) +}) + +const copyElementsContentToClipboard = (element) => { + const selection = window.getSelection(); + const range = document.createRange(); + range.selectNodeContents(element.parentNode.parentNode); + selection.removeAllRanges(); + selection.addRange(range); + + copyAndShowPopup(element, () => selection.removeAllRanges()) +} + +const copyTextToClipboard = (element, text) => { + var textarea = document.createElement("textarea"); + textarea.textContent = text; + textarea.style.position = "fixed"; + document.body.appendChild(textarea); + textarea.select(); + + copyAndShowPopup(element, () => document.body.removeChild(textarea)) +} + +const copyAndShowPopup = (element, after) => { + try { + document.execCommand('copy'); + element.nextElementSibling.classList.add('active-popup'); + setTimeout(() => { + element.nextElementSibling.classList.remove('active-popup'); + }, 1200); + } catch (e) { + console.error('Failed to write to clipboard:', e) + } + finally { + if(after) after() + } +} + +const hrefWithoutCurrentlyUsedAnchor = () => window.location.href.split('#')[0] + diff --git a/3.x/okio/scripts/main.js b/3.x/okio/scripts/main.js new file mode 100644 index 0000000000..ba6c347392 --- /dev/null +++ b/3.x/okio/scripts/main.js @@ -0,0 +1,44 @@ +(()=>{var e={8527:e=>{e.exports=''},5570:e=>{e.exports=''},107:e=>{e.exports=''},7224:e=>{e.exports=''},538:e=>{e.exports=''},1924:(e,n,t)=>{"use strict";var r=t(210),o=t(5559),i=o(r("String.prototype.indexOf"));e.exports=function(e,n){var t=r(e,!!n);return"function"==typeof t&&i(e,".prototype.")>-1?o(t):t}},5559:(e,n,t)=>{"use strict";var r=t(8612),o=t(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),l=o("%Reflect.apply%",!0)||r.call(a,i),c=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),s=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var n=l(r,a,arguments);if(c&&u){var t=c(n,"length");t.configurable&&u(n,"length",{value:1+s(0,e.length-(arguments.length-1))})}return n};var f=function(){return l(r,i,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},4184:(e,n)=>{var t; +/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],n=0;n{"use strict";e.exports=function(e,n){var t=this,r=t.constructor;return t.options=Object.assign({storeInstancesGlobally:!0},n||{}),t.callbacks={},t.directMap={},t.sequenceLevels={},t.resetTimer=null,t.ignoreNextKeyup=!1,t.ignoreNextKeypress=!1,t.nextExpectedAction=!1,t.element=e,t.addEvents(),t.options.storeInstancesGlobally&&r.instances.push(t),t},e.exports.prototype.bind=t(2207),e.exports.prototype.bindMultiple=t(3396),e.exports.prototype.unbind=t(9208),e.exports.prototype.trigger=t(9855),e.exports.prototype.reset=t(6214),e.exports.prototype.stopCallback=t(3450),e.exports.prototype.handleKey=t(3067),e.exports.prototype.addEvents=t(718),e.exports.prototype.bindSingle=t(8763),e.exports.prototype.getKeyInfo=t(5825),e.exports.prototype.pickBestAction=t(8608),e.exports.prototype.getReverseMap=t(3956),e.exports.prototype.getMatches=t(3373),e.exports.prototype.resetSequences=t(3346),e.exports.prototype.fireCallback=t(2684),e.exports.prototype.bindSequence=t(7103),e.exports.prototype.resetSequenceTimer=t(7309),e.exports.prototype.detach=t(7554),e.exports.instances=[],e.exports.reset=t(1822),e.exports.REVERSE_MAP=null},718:(e,n,t)=>{"use strict";e.exports=function(){var e=this,n=t(4323),r=e.element;e.eventHandler=t(9646).bind(e),n(r,"keypress",e.eventHandler),n(r,"keydown",e.eventHandler),n(r,"keyup",e.eventHandler)}},2207:e=>{"use strict";e.exports=function(e,n,t){return e=e instanceof Array?e:[e],this.bindMultiple(e,n,t),this}},3396:e=>{"use strict";e.exports=function(e,n,t){for(var r=0;r{"use strict";e.exports=function(e,n,r,o){var i=this;function a(n){return function(){i.nextExpectedAction=n,++i.sequenceLevels[e],i.resetSequenceTimer()}}function l(n){var a;i.fireCallback(r,n,e),"keyup"!==o&&(a=t(6770),i.ignoreNextKeyup=a(n)),setTimeout((function(){i.resetSequences()}),10)}i.sequenceLevels[e]=0;for(var c=0;c{"use strict";e.exports=function(e,n,t,r,o){var i=this;i.directMap[e+":"+t]=n;var a,l=(e=e.replace(/\s+/g," ")).split(" ");l.length>1?i.bindSequence(e,l,n,t):(a=i.getKeyInfo(e,t),i.callbacks[a.key]=i.callbacks[a.key]||[],i.getMatches(a.key,a.modifiers,{type:a.action},r,e,o),i.callbacks[a.key][r?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:r,level:o,combo:e}))}},7554:(e,n,t)=>{var r=t(4323).off;e.exports=function(){var e=this,n=e.element;r(n,"keypress",e.eventHandler),r(n,"keydown",e.eventHandler),r(n,"keyup",e.eventHandler)}},4323:e=>{function n(e,n,t,r){return!e.addEventListener&&(n="on"+n),(e.addEventListener||e.attachEvent).call(e,n,t,r),t}e.exports=n,e.exports.on=n,e.exports.off=function(e,n,t,r){return!e.removeEventListener&&(n="on"+n),(e.removeEventListener||e.detachEvent).call(e,n,t,r),t}},2684:(e,n,t)=>{"use strict";e.exports=function(e,n,r,o){this.stopCallback(n,n.target||n.srcElement,r,o)||!1===e(n,r)&&(t(1350)(n),t(6103)(n))}},5825:(e,n,t)=>{"use strict";e.exports=function(e,n){var r,o,i,a,l,c,u=[];for(r=t(4520)(e),a=t(7549),l=t(5355),c=t(8581),i=0;i{"use strict";e.exports=function(e,n,r,o,i,a){var l,c,u,s,f=this,p=[],d=r.type;"keypress"!==d||r.code&&"Arrow"===r.code.slice(0,5)||(f.callbacks["any-character"]||[]).forEach((function(e){p.push(e)}));if(!f.callbacks[e])return p;for(u=t(8581),"keyup"===d&&u(e)&&(n=[e]),l=0;l{"use strict";e.exports=function(){var e,n=this.constructor;if(!n.REVERSE_MAP)for(var r in n.REVERSE_MAP={},e=t(4766))r>95&&r<112||e.hasOwnProperty(r)&&(n.REVERSE_MAP[e[r]]=r);return n.REVERSE_MAP}},3067:(e,n,t)=>{"use strict";e.exports=function(e,n,r){var o,i,a,l,c=this,u={},s=0,f=!1;for(o=c.getMatches(e,n,r),i=0;i{"use strict";e.exports=function(e){var n,r=this;"number"!=typeof e.which&&(e.which=e.keyCode);var o=t(6770)(e);void 0!==o&&("keyup"!==e.type||r.ignoreNextKeyup!==o?(n=t(4610),r.handleKey(o,n(e),e)):r.ignoreNextKeyup=!1)}},5532:e=>{"use strict";e.exports=function(e,n){return e.sort().join(",")===n.sort().join(",")}},8608:e=>{"use strict";e.exports=function(e,n,t){return t||(t=this.getReverseMap()[e]?"keydown":"keypress"),"keypress"===t&&n.length&&(t="keydown"),t}},6214:e=>{"use strict";e.exports=function(){return this.callbacks={},this.directMap={},this}},7309:e=>{"use strict";e.exports=function(){var e=this;clearTimeout(e.resetTimer),e.resetTimer=setTimeout((function(){e.resetSequences()}),1e3)}},3346:e=>{"use strict";e.exports=function(e){var n=this;e=e||{};var t,r=!1;for(t in n.sequenceLevels)e[t]?r=!0:n.sequenceLevels[t]=0;r||(n.nextExpectedAction=!1)}},3450:e=>{"use strict";e.exports=function(e,n){if((" "+n.className+" ").indexOf(" combokeys ")>-1)return!1;var t=n.tagName.toLowerCase();return"input"===t||"select"===t||"textarea"===t||n.isContentEditable}},9855:e=>{"use strict";e.exports=function(e,n){return this.directMap[e+":"+n]&&this.directMap[e+":"+n]({},e),this}},9208:e=>{"use strict";e.exports=function(e,n){return this.bind(e,(function(){}),n)}},1822:e=>{"use strict";e.exports=function(){this.instances.forEach((function(e){e.reset()}))}},6770:(e,n,t)=>{"use strict";e.exports=function(e){var n,r;if(n=t(4766),r=t(5295),"keypress"===e.type){var o=String.fromCharCode(e.which);return e.shiftKey||(o=o.toLowerCase()),o}return void 0!==n[e.which]?n[e.which]:void 0!==r[e.which]?r[e.which]:String.fromCharCode(e.which).toLowerCase()}},4610:e=>{"use strict";e.exports=function(e){var n=[];return e.shiftKey&&n.push("shift"),e.altKey&&n.push("alt"),e.ctrlKey&&n.push("ctrl"),e.metaKey&&n.push("meta"),n}},8581:e=>{"use strict";e.exports=function(e){return"shift"===e||"ctrl"===e||"alt"===e||"meta"===e}},4520:e=>{"use strict";e.exports=function(e){return"+"===e?["+"]:e.split("+")}},1350:e=>{"use strict";e.exports=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}},5355:e=>{"use strict";e.exports={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"}},7549:e=>{"use strict";e.exports={option:"alt",command:"meta",return:"enter",escape:"esc",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"}},5295:e=>{"use strict";e.exports={106:"*",107:"plus",109:"minus",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}},4766:e=>{"use strict";e.exports={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",173:"minus",187:"plus",189:"minus",224:"meta"};for(var n=1;n<20;++n)e.exports[111+n]="f"+n;for(n=0;n<=9;++n)e.exports[n+96]=n},6103:e=>{"use strict";e.exports=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}},3362:()=>{var e;!function(){var e=Math.PI,n=2*e,t=e/180,r=document.createElement("div");document.head.appendChild(r);var o=self.ConicGradient=function(e){o.all.push(this),e=e||{},this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.repeating=!!e.repeating,this.size=e.size||Math.max(innerWidth,innerHeight),this.canvas.width=this.canvas.height=this.size;var n=e.stops;this.stops=(n||"").split(/\s*,(?![^(]*\))\s*/),this.from=0;for(var t=0;t0){var i=this.stops[0].clone();i.pos=0,this.stops.unshift(i)}if(void 0===this.stops[this.stops.length-1].pos)this.stops[this.stops.length-1].pos=1;else if(!this.repeating&&this.stops[this.stops.length-1].pos<1){var a=this.stops[this.stops.length-1].clone();a.pos=1,this.stops.push(a)}if(this.stops.forEach((function(e,n){if(void 0===e.pos){for(var t=n+1;this[t];t++)if(void 0!==this[t].pos){e.pos=this[n-1].pos+(this[t].pos-this[n-1].pos)/(t-n+1);break}}else n>0&&(e.pos=Math.max(e.pos,this[n-1].pos))}),this.stops),this.repeating){var l=(n=this.stops.slice())[n.length-1].pos-n[0].pos;for(t=0;this.stops[this.stops.length-1].pos<1&&t<1e4;t++)for(var c=0;c'},get png(){return this.canvas.toDataURL()},get r(){return Math.sqrt(2)*this.size/2},paint:function(){var e,n,r,o=this.context,i=this.r,a=this.size/2,l=0,c=this.stops[l];o.translate(this.size/2,this.size/2),o.rotate(-90*t),o.rotate(this.from*t),o.translate(-this.size/2,-this.size/2);for(var u=0;u<360;){if(u/360+1e-5>=c.pos){do{e=c,l++,c=this.stops[l]}while(c&&c!=e&&c.pos===e.pos);if(!c)break;var s=e.color+""==c.color+""&&e!=c;n=e.color.map((function(e,n){return c.color[n]-e}))}r=(u/360-e.pos)/(c.pos-e.pos);var f=s?c.color:n.map((function(n,t){var o=n*r+e.color[t];return t<3?255&o:o}));if(o.fillStyle="rgba("+f.join(",")+")",o.beginPath(),o.moveTo(a,a),s)var p=360*(c.pos-e.pos);else p=.5;var d=u*t,h=(d=Math.min(360*t,d))+p*t;h=Math.min(360*t,h+.02),o.arc(a,a,i,d,h),o.closePath(),o.fill(),u+=p}}},o.ColorStop=function(e,t){if(this.gradient=e,t){var r=t.match(/^(.+?)(?:\s+([\d.]+)(%|deg|turn|grad|rad)?)?(?:\s+([\d.]+)(%|deg|turn|grad|rad)?)?\s*$/);if(this.color=o.ColorStop.colorToRGBA(r[1]),r[2]){var i=r[3];"%"==i||"0"===r[2]&&!i?this.pos=r[2]/100:"turn"==i?this.pos=+r[2]:"deg"==i?this.pos=r[2]/360:"grad"==i?this.pos=r[2]/400:"rad"==i&&(this.pos=r[2]/n)}r[4]&&(this.next=new o.ColorStop(e,r[1]+" "+r[4]+r[5]))}},o.ColorStop.prototype={clone:function(){var e=new o.ColorStop(this.gradient);return e.color=this.color,e.pos=this.pos,e},toString:function(){return"rgba("+this.color.join(", ")+") "+100*this.pos+"%"}},o.ColorStop.colorToRGBA=function(e){if(!Array.isArray(e)&&-1==e.indexOf("from")){r.style.color=e;var n=getComputedStyle(r).color.match(/rgba?\(([\d.]+), ([\d.]+), ([\d.]+)(?:, ([\d.]+))?\)/);return n&&(n.shift(),(n=n.map((function(e){return+e})))[3]=isNaN(n[3])?1:n[3]),n||[0,0,0,0]}return e}}(),self.StyleFix&&((e=document.createElement("p")).style.backgroundImage="conic-gradient(white, black)",e.style.backgroundImage=PrefixFree.prefix+"conic-gradient(white, black)",e.style.backgroundImage||StyleFix.register((function(e,n){return e.indexOf("conic-gradient")>-1&&(e=e.replace(/(?:repeating-)?conic-gradient\(\s*((?:\([^()]+\)|[^;()}])+?)\)/g,(function(e,n){return new ConicGradient({stops:n,repeating:e.indexOf("repeating-")>-1})}))),e})))},9662:(e,n,t)=>{var r=t(7854),o=t(614),i=t(6330),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a function")}},9483:(e,n,t)=>{var r=t(7854),o=t(4411),i=t(6330),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a constructor")}},6077:(e,n,t)=>{var r=t(7854),o=t(614),i=r.String,a=r.TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw a("Can't set "+i(e)+" as a prototype")}},1223:(e,n,t)=>{var r=t(5112),o=t(30),i=t(3070),a=r("unscopables"),l=Array.prototype;null==l[a]&&i.f(l,a,{configurable:!0,value:o(null)}),e.exports=function(e){l[a][e]=!0}},1530:(e,n,t)=>{"use strict";var r=t(8710).charAt;e.exports=function(e,n,t){return n+(t?r(e,n).length:1)}},5787:(e,n,t)=>{var r=t(7854),o=t(7976),i=r.TypeError;e.exports=function(e,n){if(o(n,e))return e;throw i("Incorrect invocation")}},9670:(e,n,t)=>{var r=t(7854),o=t(111),i=r.String,a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not an object")}},7556:(e,n,t)=>{var r=t(7293);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},8533:(e,n,t)=>{"use strict";var r=t(2092).forEach,o=t(9341)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},8457:(e,n,t)=>{"use strict";var r=t(7854),o=t(9974),i=t(6916),a=t(7908),l=t(3411),c=t(7659),u=t(4411),s=t(6244),f=t(6135),p=t(8554),d=t(1246),h=r.Array;e.exports=function(e){var n=a(e),t=u(this),r=arguments.length,g=r>1?arguments[1]:void 0,v=void 0!==g;v&&(g=o(g,r>2?arguments[2]:void 0));var A,b,m,y,E,_,C=d(n),w=0;if(!C||this==h&&c(C))for(A=s(n),b=t?new this(A):h(A);A>w;w++)_=v?g(n[w],w):n[w],f(b,w,_);else for(E=(y=p(n,C)).next,b=t?new this:[];!(m=i(E,y)).done;w++)_=v?l(y,g,[m.value,w],!0):m.value,f(b,w,_);return b.length=w,b}},1318:(e,n,t)=>{var r=t(5656),o=t(1400),i=t(6244),a=function(e){return function(n,t,a){var l,c=r(n),u=i(c),s=o(a,u);if(e&&t!=t){for(;u>s;)if((l=c[s++])!=l)return!0}else for(;u>s;s++)if((e||s in c)&&c[s]===t)return e||s||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2092:(e,n,t)=>{var r=t(9974),o=t(1702),i=t(8361),a=t(7908),l=t(6244),c=t(5417),u=o([].push),s=function(e){var n=1==e,t=2==e,o=3==e,s=4==e,f=6==e,p=7==e,d=5==e||f;return function(h,g,v,A){for(var b,m,y=a(h),E=i(y),_=r(g,v),C=l(E),w=0,x=A||c,k=n?x(h,C):t||p?x(h,0):void 0;C>w;w++)if((d||w in E)&&(m=_(b=E[w],w,y),e))if(n)k[w]=m;else if(m)switch(e){case 3:return!0;case 5:return b;case 6:return w;case 2:u(k,b)}else switch(e){case 4:return!1;case 7:u(k,b)}return f?-1:o||s?s:k}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},1194:(e,n,t)=>{var r=t(7293),o=t(5112),i=t(7392),a=o("species");e.exports=function(e){return i>=51||!r((function(){var n=[];return(n.constructor={})[a]=function(){return{foo:1}},1!==n[e](Boolean).foo}))}},9341:(e,n,t)=>{"use strict";var r=t(7293);e.exports=function(e,n){var t=[][e];return!!t&&r((function(){t.call(null,n||function(){throw 1},1)}))}},3671:(e,n,t)=>{var r=t(7854),o=t(9662),i=t(7908),a=t(8361),l=t(6244),c=r.TypeError,u=function(e){return function(n,t,r,u){o(t);var s=i(n),f=a(s),p=l(s),d=e?p-1:0,h=e?-1:1;if(r<2)for(;;){if(d in f){u=f[d],d+=h;break}if(d+=h,e?d<0:p<=d)throw c("Reduce of empty array with no initial value")}for(;e?d>=0:p>d;d+=h)d in f&&(u=t(u,f[d],d,s));return u}};e.exports={left:u(!1),right:u(!0)}},206:(e,n,t)=>{var r=t(1702);e.exports=r([].slice)},4362:(e,n,t)=>{var r=t(206),o=Math.floor,i=function(e,n){var t=e.length,c=o(t/2);return t<8?a(e,n):l(e,i(r(e,0,c),n),i(r(e,c),n),n)},a=function(e,n){for(var t,r,o=e.length,i=1;i0;)e[r]=e[--r];r!==i++&&(e[r]=t)}return e},l=function(e,n,t,r){for(var o=n.length,i=t.length,a=0,l=0;a{var r=t(7854),o=t(3157),i=t(4411),a=t(111),l=t(5112)("species"),c=r.Array;e.exports=function(e){var n;return o(e)&&(n=e.constructor,(i(n)&&(n===c||o(n.prototype))||a(n)&&null===(n=n[l]))&&(n=void 0)),void 0===n?c:n}},5417:(e,n,t)=>{var r=t(7475);e.exports=function(e,n){return new(r(e))(0===n?0:n)}},3411:(e,n,t)=>{var r=t(9670),o=t(9212);e.exports=function(e,n,t,i){try{return i?n(r(t)[0],t[1]):n(t)}catch(n){o(e,"throw",n)}}},7072:(e,n,t)=>{var r=t(5112)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,n){if(!n&&!o)return!1;var t=!1;try{var i={};i[r]=function(){return{next:function(){return{done:t=!0}}}},e(i)}catch(e){}return t}},4326:(e,n,t)=>{var r=t(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},648:(e,n,t)=>{var r=t(7854),o=t(1694),i=t(614),a=t(4326),l=t(5112)("toStringTag"),c=r.Object,u="Arguments"==a(function(){return arguments}());e.exports=o?a:function(e){var n,t,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,n){try{return e[n]}catch(e){}}(n=c(e),l))?t:u?a(n):"Object"==(r=a(n))&&i(n.callee)?"Arguments":r}},5631:(e,n,t)=>{"use strict";var r=t(3070).f,o=t(30),i=t(2248),a=t(9974),l=t(5787),c=t(408),u=t(654),s=t(6340),f=t(9781),p=t(2423).fastKey,d=t(9909),h=d.set,g=d.getterFor;e.exports={getConstructor:function(e,n,t,u){var s=e((function(e,r){l(e,d),h(e,{type:n,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&c(r,e[u],{that:e,AS_ENTRIES:t})})),d=s.prototype,v=g(n),A=function(e,n,t){var r,o,i=v(e),a=b(e,n);return a?a.value=t:(i.last=a={index:o=p(n,!0),key:n,value:t,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},b=function(e,n){var t,r=v(e),o=p(n);if("F"!==o)return r.index[o];for(t=r.first;t;t=t.next)if(t.key==n)return t};return i(d,{clear:function(){for(var e=v(this),n=e.index,t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),delete n[t.index],t=t.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var n=this,t=v(n),r=b(n,e);if(r){var o=r.next,i=r.previous;delete t.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),t.first==r&&(t.first=o),t.last==r&&(t.last=i),f?t.size--:n.size--}return!!r},forEach:function(e){for(var n,t=v(this),r=a(e,arguments.length>1?arguments[1]:void 0);n=n?n.next:t.first;)for(r(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function(e){return!!b(this,e)}}),i(d,t?{get:function(e){var n=b(this,e);return n&&n.value},set:function(e,n){return A(this,0===e?0:e,n)}}:{add:function(e){return A(this,e=0===e?0:e,e)}}),f&&r(d,"size",{get:function(){return v(this).size}}),s},setStrong:function(e,n,t){var r=n+" Iterator",o=g(n),i=g(r);u(e,n,(function(e,n){h(this,{type:r,target:e,state:o(e),kind:n,last:void 0})}),(function(){for(var e=i(this),n=e.kind,t=e.last;t&&t.removed;)t=t.previous;return e.target&&(e.last=t=t?t.next:e.state.first)?"keys"==n?{value:t.key,done:!1}:"values"==n?{value:t.value,done:!1}:{value:[t.key,t.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),t?"entries":"values",!t,!0),s(n)}}},9320:(e,n,t)=>{"use strict";var r=t(1702),o=t(2248),i=t(2423).getWeakData,a=t(9670),l=t(111),c=t(5787),u=t(408),s=t(2092),f=t(2597),p=t(9909),d=p.set,h=p.getterFor,g=s.find,v=s.findIndex,A=r([].splice),b=0,m=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},E=function(e,n){return g(e.entries,(function(e){return e[0]===n}))};y.prototype={get:function(e){var n=E(this,e);if(n)return n[1]},has:function(e){return!!E(this,e)},set:function(e,n){var t=E(this,e);t?t[1]=n:this.entries.push([e,n])},delete:function(e){var n=v(this.entries,(function(n){return n[0]===e}));return~n&&A(this.entries,n,1),!!~n}},e.exports={getConstructor:function(e,n,t,r){var s=e((function(e,o){c(e,p),d(e,{type:n,id:b++,frozen:void 0}),null!=o&&u(o,e[r],{that:e,AS_ENTRIES:t})})),p=s.prototype,g=h(n),v=function(e,n,t){var r=g(e),o=i(a(n),!0);return!0===o?m(r).set(n,t):o[r.id]=t,e};return o(p,{delete:function(e){var n=g(this);if(!l(e))return!1;var t=i(e);return!0===t?m(n).delete(e):t&&f(t,n.id)&&delete t[n.id]},has:function(e){var n=g(this);if(!l(e))return!1;var t=i(e);return!0===t?m(n).has(e):t&&f(t,n.id)}}),o(p,t?{get:function(e){var n=g(this);if(l(e)){var t=i(e);return!0===t?m(n).get(e):t?t[n.id]:void 0}},set:function(e,n){return v(this,e,n)}}:{add:function(e){return v(this,e,!0)}}),s}}},7710:(e,n,t)=>{"use strict";var r=t(2109),o=t(7854),i=t(1702),a=t(4705),l=t(1320),c=t(2423),u=t(408),s=t(5787),f=t(614),p=t(111),d=t(7293),h=t(7072),g=t(8003),v=t(9587);e.exports=function(e,n,t){var A=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),m=A?"set":"add",y=o[e],E=y&&y.prototype,_=y,C={},w=function(e){var n=i(E[e]);l(E,e,"add"==e?function(e){return n(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!p(e))&&n(this,0===e?0:e)}:"get"==e?function(e){return b&&!p(e)?void 0:n(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!p(e))&&n(this,0===e?0:e)}:function(e,t){return n(this,0===e?0:e,t),this})};if(a(e,!f(y)||!(b||E.forEach&&!d((function(){(new y).entries().next()})))))_=t.getConstructor(n,e,A,m),c.enable();else if(a(e,!0)){var x=new _,k=x[m](b?{}:-0,1)!=x,S=d((function(){x.has(1)})),O=h((function(e){new y(e)})),B=!b&&d((function(){for(var e=new y,n=5;n--;)e[m](n,n);return!e.has(-0)}));O||((_=n((function(e,n){s(e,E);var t=v(new y,e,_);return null!=n&&u(n,t[m],{that:t,AS_ENTRIES:A}),t}))).prototype=E,E.constructor=_),(S||B)&&(w("delete"),w("has"),A&&w("get")),(B||k)&&w(m),b&&E.clear&&delete E.clear}return C[e]=_,r({global:!0,forced:_!=y},C),g(_,e),b||t.setStrong(_,e,A),_}},9920:(e,n,t)=>{var r=t(2597),o=t(3887),i=t(1236),a=t(3070);e.exports=function(e,n){for(var t=o(n),l=a.f,c=i.f,u=0;u{var r=t(5112)("match");e.exports=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[r]=!1,"/./"[e](n)}catch(e){}}return!1}},8544:(e,n,t)=>{var r=t(7293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4230:(e,n,t)=>{var r=t(1702),o=t(4488),i=t(1340),a=/"/g,l=r("".replace);e.exports=function(e,n,t,r){var c=i(o(e)),u="<"+n;return""!==t&&(u+=" "+t+'="'+l(i(r),a,""")+'"'),u+">"+c+""}},4994:(e,n,t)=>{"use strict";var r=t(3383).IteratorPrototype,o=t(30),i=t(9114),a=t(8003),l=t(7497),c=function(){return this};e.exports=function(e,n,t){var u=n+" Iterator";return e.prototype=o(r,{next:i(1,t)}),a(e,u,!1,!0),l[u]=c,e}},8880:(e,n,t)=>{var r=t(9781),o=t(3070),i=t(9114);e.exports=r?function(e,n,t){return o.f(e,n,i(1,t))}:function(e,n,t){return e[n]=t,e}},9114:e=>{e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},6135:(e,n,t)=>{"use strict";var r=t(4948),o=t(3070),i=t(9114);e.exports=function(e,n,t){var a=r(n);a in e?o.f(e,a,i(0,t)):e[a]=t}},8709:(e,n,t)=>{"use strict";var r=t(7854),o=t(9670),i=t(2140),a=r.TypeError;e.exports=function(e){if(o(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw a("Incorrect hint");return i(this,e)}},654:(e,n,t)=>{"use strict";var r=t(2109),o=t(6916),i=t(1913),a=t(6530),l=t(614),c=t(4994),u=t(9518),s=t(7674),f=t(8003),p=t(8880),d=t(1320),h=t(5112),g=t(7497),v=t(3383),A=a.PROPER,b=a.CONFIGURABLE,m=v.IteratorPrototype,y=v.BUGGY_SAFARI_ITERATORS,E=h("iterator"),_="keys",C="values",w="entries",x=function(){return this};e.exports=function(e,n,t,a,h,v,k){c(t,n,a);var S,O,B,I=function(e){if(e===h&&R)return R;if(!y&&e in j)return j[e];switch(e){case _:case C:case w:return function(){return new t(this,e)}}return function(){return new t(this)}},T=n+" Iterator",P=!1,j=e.prototype,z=j[E]||j["@@iterator"]||h&&j[h],R=!y&&z||I(h),M="Array"==n&&j.entries||z;if(M&&(S=u(M.call(new e)))!==Object.prototype&&S.next&&(i||u(S)===m||(s?s(S,m):l(S[E])||d(S,E,x)),f(S,T,!0,!0),i&&(g[T]=x)),A&&h==C&&z&&z.name!==C&&(!i&&b?p(j,"name",C):(P=!0,R=function(){return o(z,this)})),h)if(O={values:I(C),keys:v?R:I(_),entries:I(w)},k)for(B in O)(y||P||!(B in j))&&d(j,B,O[B]);else r({target:n,proto:!0,forced:y||P},O);return i&&!k||j[E]===R||d(j,E,R,{name:h}),g[n]=R,O}},7235:(e,n,t)=>{var r=t(857),o=t(2597),i=t(6061),a=t(3070).f;e.exports=function(e){var n=r.Symbol||(r.Symbol={});o(n,e)||a(n,e,{value:i.f(e)})}},9781:(e,n,t)=>{var r=t(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(e,n,t)=>{var r=t(7854),o=t(111),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},8324:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:(e,n,t)=>{var r=t(317)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},8886:(e,n,t)=>{var r=t(8113).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},256:(e,n,t)=>{var r=t(8113);e.exports=/MSIE|Trident/.test(r)},5268:(e,n,t)=>{var r=t(4326),o=t(7854);e.exports="process"==r(o.process)},8113:(e,n,t)=>{var r=t(5005);e.exports=r("navigator","userAgent")||""},7392:(e,n,t)=>{var r,o,i=t(7854),a=t(8113),l=i.process,c=i.Deno,u=l&&l.versions||c&&c.version,s=u&&u.v8;s&&(o=(r=s.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},8008:(e,n,t)=>{var r=t(8113).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(e,n,t)=>{var r=t(7854),o=t(1236).f,i=t(8880),a=t(1320),l=t(3505),c=t(9920),u=t(4705);e.exports=function(e,n){var t,s,f,p,d,h=e.target,g=e.global,v=e.stat;if(t=g?r:v?r[h]||l(h,{}):(r[h]||{}).prototype)for(s in n){if(p=n[s],f=e.noTargetGet?(d=o(t,s))&&d.value:t[s],!u(g?s:h+(v?".":"#")+s,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;c(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),a(t,s,p,e)}}},7293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},7007:(e,n,t)=>{"use strict";t(4916);var r=t(1702),o=t(1320),i=t(2261),a=t(7293),l=t(5112),c=t(8880),u=l("species"),s=RegExp.prototype;e.exports=function(e,n,t,f){var p=l(e),d=!a((function(){var n={};return n[p]=function(){return 7},7!=""[e](n)})),h=d&&!a((function(){var n=!1,t=/a/;return"split"===e&&((t={}).constructor={},t.constructor[u]=function(){return t},t.flags="",t[p]=/./[p]),t.exec=function(){return n=!0,null},t[p](""),!n}));if(!d||!h||t){var g=r(/./[p]),v=n(p,""[e],(function(e,n,t,o,a){var l=r(e),c=n.exec;return c===i||c===s.exec?d&&!a?{done:!0,value:g(n,t,o)}:{done:!0,value:l(t,n,o)}:{done:!1}}));o(String.prototype,e,v[0]),o(s,p,v[1])}f&&c(s[p],"sham",!0)}},6677:(e,n,t)=>{var r=t(7293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:e=>{var n=Function.prototype,t=n.apply,r=n.bind,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(t):function(){return o.apply(t,arguments)})},9974:(e,n,t)=>{var r=t(1702),o=t(9662),i=r(r.bind);e.exports=function(e,n){return o(e),void 0===n?e:i?i(e,n):function(){return e.apply(n,arguments)}}},7065:(e,n,t)=>{"use strict";var r=t(7854),o=t(1702),i=t(9662),a=t(111),l=t(2597),c=t(206),u=r.Function,s=o([].concat),f=o([].join),p={},d=function(e,n,t){if(!l(p,n)){for(var r=[],o=0;o{var n=Function.prototype.call;e.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},6530:(e,n,t)=>{var r=t(9781),o=t(2597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,l=o(i,"name"),c=l&&"something"===function(){}.name,u=l&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:l,PROPER:c,CONFIGURABLE:u}},1702:e=>{var n=Function.prototype,t=n.bind,r=n.call,o=t&&t.bind(r);e.exports=t?function(e){return e&&o(r,e)}:function(e){return e&&function(){return r.apply(e,arguments)}}},5005:(e,n,t)=>{var r=t(7854),o=t(614),i=function(e){return o(e)?e:void 0};e.exports=function(e,n){return arguments.length<2?i(r[e]):r[e]&&r[e][n]}},1246:(e,n,t)=>{var r=t(648),o=t(8173),i=t(7497),a=t(5112)("iterator");e.exports=function(e){if(null!=e)return o(e,a)||o(e,"@@iterator")||i[r(e)]}},8554:(e,n,t)=>{var r=t(7854),o=t(6916),i=t(9662),a=t(9670),l=t(6330),c=t(1246),u=r.TypeError;e.exports=function(e,n){var t=arguments.length<2?c(e):n;if(i(t))return a(o(t,e));throw u(l(e)+" is not iterable")}},8173:(e,n,t)=>{var r=t(9662);e.exports=function(e,n){var t=e[n];return null==t?void 0:r(t)}},647:(e,n,t)=>{var r=t(1702),o=t(7908),i=Math.floor,a=r("".charAt),l=r("".replace),c=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,n,t,r,f,p){var d=t+e.length,h=r.length,g=s;return void 0!==f&&(f=o(f),g=u),l(p,g,(function(o,l){var u;switch(a(l,0)){case"$":return"$";case"&":return e;case"`":return c(n,0,t);case"'":return c(n,d);case"<":u=f[c(l,1,-1)];break;default:var s=+l;if(0===s)return o;if(s>h){var p=i(s/10);return 0===p?o:p<=h?void 0===r[p-1]?a(l,1):r[p-1]+a(l,1):o}u=r[s-1]}return void 0===u?"":u}))}},7854:(e,n,t)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t.g&&t.g)||function(){return this}()||Function("return this")()},2597:(e,n,t)=>{var r=t(1702),o=t(7908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,n){return i(o(e),n)}},3501:e=>{e.exports={}},490:(e,n,t)=>{var r=t(5005);e.exports=r("document","documentElement")},4664:(e,n,t)=>{var r=t(9781),o=t(7293),i=t(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:(e,n,t)=>{var r=t(7854),o=t(1702),i=t(7293),a=t(4326),l=r.Object,c=o("".split);e.exports=i((function(){return!l("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?c(e,""):l(e)}:l},9587:(e,n,t)=>{var r=t(614),o=t(111),i=t(7674);e.exports=function(e,n,t){var a,l;return i&&r(a=n.constructor)&&a!==t&&o(l=a.prototype)&&l!==t.prototype&&i(e,l),e}},2788:(e,n,t)=>{var r=t(1702),o=t(614),i=t(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},2423:(e,n,t)=>{var r=t(2109),o=t(1702),i=t(3501),a=t(111),l=t(2597),c=t(3070).f,u=t(8006),s=t(1156),f=t(2050),p=t(9711),d=t(6677),h=!1,g=p("meta"),v=0,A=function(e){c(e,g,{value:{objectID:"O"+v++,weakData:{}}})},b=e.exports={enable:function(){b.enable=function(){},h=!0;var e=u.f,n=o([].splice),t={};t[g]=1,e(t).length&&(u.f=function(t){for(var r=e(t),o=0,i=r.length;o{var r,o,i,a=t(8536),l=t(7854),c=t(1702),u=t(111),s=t(8880),f=t(2597),p=t(5465),d=t(6200),h=t(3501),g="Object already initialized",v=l.TypeError,A=l.WeakMap;if(a||p.state){var b=p.state||(p.state=new A),m=c(b.get),y=c(b.has),E=c(b.set);r=function(e,n){if(y(b,e))throw new v(g);return n.facade=e,E(b,e,n),n},o=function(e){return m(b,e)||{}},i=function(e){return y(b,e)}}else{var _=d("state");h[_]=!0,r=function(e,n){if(f(e,_))throw new v(g);return n.facade=e,s(e,_,n),n},o=function(e){return f(e,_)?e[_]:{}},i=function(e){return f(e,_)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(n){var t;if(!u(n)||(t=o(n)).type!==e)throw v("Incompatible receiver, "+e+" required");return t}}}},7659:(e,n,t)=>{var r=t(5112),o=t(7497),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},3157:(e,n,t)=>{var r=t(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:e=>{e.exports=function(e){return"function"==typeof e}},4411:(e,n,t)=>{var r=t(1702),o=t(7293),i=t(614),a=t(648),l=t(5005),c=t(2788),u=function(){},s=[],f=l("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=r(p.exec),h=!p.exec(u),g=function(e){if(!i(e))return!1;try{return f(u,s,e),!0}catch(e){return!1}};e.exports=!f||o((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return h||!!d(p,c(e))}:g},4705:(e,n,t)=>{var r=t(7293),o=t(614),i=/#|\.prototype\./,a=function(e,n){var t=c[l(e)];return t==s||t!=u&&(o(n)?r(n):!!n)},l=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",s=a.POLYFILL="P";e.exports=a},111:(e,n,t)=>{var r=t(614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},1913:e=>{e.exports=!1},7850:(e,n,t)=>{var r=t(111),o=t(4326),i=t(5112)("match");e.exports=function(e){var n;return r(e)&&(void 0!==(n=e[i])?!!n:"RegExp"==o(e))}},2190:(e,n,t)=>{var r=t(7854),o=t(5005),i=t(614),a=t(7976),l=t(3307),c=r.Object;e.exports=l?function(e){return"symbol"==typeof e}:function(e){var n=o("Symbol");return i(n)&&a(n.prototype,c(e))}},408:(e,n,t)=>{var r=t(7854),o=t(9974),i=t(6916),a=t(9670),l=t(6330),c=t(7659),u=t(6244),s=t(7976),f=t(8554),p=t(1246),d=t(9212),h=r.TypeError,g=function(e,n){this.stopped=e,this.result=n},v=g.prototype;e.exports=function(e,n,t){var r,A,b,m,y,E,_,C=t&&t.that,w=!(!t||!t.AS_ENTRIES),x=!(!t||!t.IS_ITERATOR),k=!(!t||!t.INTERRUPTED),S=o(n,C),O=function(e){return r&&d(r,"normal",e),new g(!0,e)},B=function(e){return w?(a(e),k?S(e[0],e[1],O):S(e[0],e[1])):k?S(e,O):S(e)};if(x)r=e;else{if(!(A=p(e)))throw h(l(e)+" is not iterable");if(c(A)){for(b=0,m=u(e);m>b;b++)if((y=B(e[b]))&&s(v,y))return y;return new g(!1)}r=f(e,A)}for(E=r.next;!(_=i(E,r)).done;){try{y=B(_.value)}catch(e){d(r,"throw",e)}if("object"==typeof y&&y&&s(v,y))return y}return new g(!1)}},9212:(e,n,t)=>{var r=t(6916),o=t(9670),i=t(8173);e.exports=function(e,n,t){var a,l;o(e);try{if(!(a=i(e,"return"))){if("throw"===n)throw t;return t}a=r(a,e)}catch(e){l=!0,a=e}if("throw"===n)throw t;if(l)throw a;return o(a),t}},3383:(e,n,t)=>{"use strict";var r,o,i,a=t(7293),l=t(614),c=t(30),u=t(9518),s=t(1320),f=t(5112),p=t(1913),d=f("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):h=!0),null==r||a((function(){var e={};return r[d].call(e)!==e}))?r={}:p&&(r=c(r)),l(r[d])||s(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},7497:e=>{e.exports={}},6244:(e,n,t)=>{var r=t(7466);e.exports=function(e){return r(e.length)}},133:(e,n,t)=>{var r=t(7392),o=t(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:(e,n,t)=>{var r=t(7854),o=t(614),i=t(2788),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},3929:(e,n,t)=>{var r=t(7854),o=t(7850),i=r.TypeError;e.exports=function(e){if(o(e))throw i("The method doesn't accept regular expressions");return e}},1574:(e,n,t)=>{"use strict";var r=t(9781),o=t(1702),i=t(6916),a=t(7293),l=t(1956),c=t(5181),u=t(5296),s=t(7908),f=t(8361),p=Object.assign,d=Object.defineProperty,h=o([].concat);e.exports=!p||a((function(){if(r&&1!==p({b:1},p(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},t=Symbol(),o="abcdefghijklmnopqrst";return e[t]=7,o.split("").forEach((function(e){n[e]=e})),7!=p({},e)[t]||l(p({},n)).join("")!=o}))?function(e,n){for(var t=s(e),o=arguments.length,a=1,p=c.f,d=u.f;o>a;)for(var g,v=f(arguments[a++]),A=p?h(l(v),p(v)):l(v),b=A.length,m=0;b>m;)g=A[m++],r&&!i(d,v,g)||(t[g]=v[g]);return t}:p},30:(e,n,t)=>{var r,o=t(9670),i=t(6048),a=t(748),l=t(3501),c=t(490),u=t(317),s=t(6200),f=s("IE_PROTO"),p=function(){},d=function(e){return" + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ +

404 - Not found

+ +
+
+ + + +
+ +
+ + + +
+
+
+
+ + + + + + + + + + \ No newline at end of file diff --git a/assets/images/favicon.png b/assets/images/favicon.png new file mode 100644 index 0000000000..1cf13b9f9d Binary files /dev/null and b/assets/images/favicon.png differ diff --git a/assets/javascripts/bundle.83f73b43.min.js b/assets/javascripts/bundle.83f73b43.min.js new file mode 100644 index 0000000000..43d8b70f69 --- /dev/null +++ b/assets/javascripts/bundle.83f73b43.min.js @@ -0,0 +1,16 @@ +"use strict";(()=>{var Wi=Object.create;var gr=Object.defineProperty;var Di=Object.getOwnPropertyDescriptor;var Vi=Object.getOwnPropertyNames,Vt=Object.getOwnPropertySymbols,Ni=Object.getPrototypeOf,yr=Object.prototype.hasOwnProperty,ao=Object.prototype.propertyIsEnumerable;var io=(e,t,r)=>t in e?gr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$=(e,t)=>{for(var r in t||(t={}))yr.call(t,r)&&io(e,r,t[r]);if(Vt)for(var r of Vt(t))ao.call(t,r)&&io(e,r,t[r]);return e};var so=(e,t)=>{var r={};for(var o in e)yr.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Vt)for(var o of Vt(e))t.indexOf(o)<0&&ao.call(e,o)&&(r[o]=e[o]);return r};var xr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var zi=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Vi(t))!yr.call(e,n)&&n!==r&&gr(e,n,{get:()=>t[n],enumerable:!(o=Di(t,n))||o.enumerable});return e};var Mt=(e,t,r)=>(r=e!=null?Wi(Ni(e)):{},zi(t||!e||!e.__esModule?gr(r,"default",{value:e,enumerable:!0}):r,e));var co=(e,t,r)=>new Promise((o,n)=>{var i=p=>{try{s(r.next(p))}catch(c){n(c)}},a=p=>{try{s(r.throw(p))}catch(c){n(c)}},s=p=>p.done?o(p.value):Promise.resolve(p.value).then(i,a);s((r=r.apply(e,t)).next())});var lo=xr((Er,po)=>{(function(e,t){typeof Er=="object"&&typeof po!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(Er,function(){"use strict";function e(r){var o=!0,n=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(k){return!!(k&&k!==document&&k.nodeName!=="HTML"&&k.nodeName!=="BODY"&&"classList"in k&&"contains"in k.classList)}function p(k){var ft=k.type,qe=k.tagName;return!!(qe==="INPUT"&&a[ft]&&!k.readOnly||qe==="TEXTAREA"&&!k.readOnly||k.isContentEditable)}function c(k){k.classList.contains("focus-visible")||(k.classList.add("focus-visible"),k.setAttribute("data-focus-visible-added",""))}function l(k){k.hasAttribute("data-focus-visible-added")&&(k.classList.remove("focus-visible"),k.removeAttribute("data-focus-visible-added"))}function f(k){k.metaKey||k.altKey||k.ctrlKey||(s(r.activeElement)&&c(r.activeElement),o=!0)}function u(k){o=!1}function d(k){s(k.target)&&(o||p(k.target))&&c(k.target)}function y(k){s(k.target)&&(k.target.classList.contains("focus-visible")||k.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(i),i=window.setTimeout(function(){n=!1},100),l(k.target))}function L(k){document.visibilityState==="hidden"&&(n&&(o=!0),X())}function X(){document.addEventListener("mousemove",J),document.addEventListener("mousedown",J),document.addEventListener("mouseup",J),document.addEventListener("pointermove",J),document.addEventListener("pointerdown",J),document.addEventListener("pointerup",J),document.addEventListener("touchmove",J),document.addEventListener("touchstart",J),document.addEventListener("touchend",J)}function te(){document.removeEventListener("mousemove",J),document.removeEventListener("mousedown",J),document.removeEventListener("mouseup",J),document.removeEventListener("pointermove",J),document.removeEventListener("pointerdown",J),document.removeEventListener("pointerup",J),document.removeEventListener("touchmove",J),document.removeEventListener("touchstart",J),document.removeEventListener("touchend",J)}function J(k){k.target.nodeName&&k.target.nodeName.toLowerCase()==="html"||(o=!1,te())}document.addEventListener("keydown",f,!0),document.addEventListener("mousedown",u,!0),document.addEventListener("pointerdown",u,!0),document.addEventListener("touchstart",u,!0),document.addEventListener("visibilitychange",L,!0),X(),r.addEventListener("focus",d,!0),r.addEventListener("blur",y,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var qr=xr((hy,On)=>{"use strict";/*! + * escape-html + * Copyright(c) 2012-2013 TJ Holowaychuk + * Copyright(c) 2015 Andreas Lubbe + * Copyright(c) 2015 Tiancheng "Timothy" Gu + * MIT Licensed + */var $a=/["'&<>]/;On.exports=Pa;function Pa(e){var t=""+e,r=$a.exec(t);if(!r)return t;var o,n="",i=0,a=0;for(i=r.index;i{/*! + * clipboard.js v2.0.11 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */(function(t,r){typeof It=="object"&&typeof Yr=="object"?Yr.exports=r():typeof define=="function"&&define.amd?define([],r):typeof It=="object"?It.ClipboardJS=r():t.ClipboardJS=r()})(It,function(){return function(){var e={686:function(o,n,i){"use strict";i.d(n,{default:function(){return Ui}});var a=i(279),s=i.n(a),p=i(370),c=i.n(p),l=i(817),f=i.n(l);function u(V){try{return document.execCommand(V)}catch(A){return!1}}var d=function(A){var M=f()(A);return u("cut"),M},y=d;function L(V){var A=document.documentElement.getAttribute("dir")==="rtl",M=document.createElement("textarea");M.style.fontSize="12pt",M.style.border="0",M.style.padding="0",M.style.margin="0",M.style.position="absolute",M.style[A?"right":"left"]="-9999px";var F=window.pageYOffset||document.documentElement.scrollTop;return M.style.top="".concat(F,"px"),M.setAttribute("readonly",""),M.value=V,M}var X=function(A,M){var F=L(A);M.container.appendChild(F);var D=f()(F);return u("copy"),F.remove(),D},te=function(A){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},F="";return typeof A=="string"?F=X(A,M):A instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(A==null?void 0:A.type)?F=X(A.value,M):(F=f()(A),u("copy")),F},J=te;function k(V){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?k=function(M){return typeof M}:k=function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},k(V)}var ft=function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=A.action,F=M===void 0?"copy":M,D=A.container,Y=A.target,$e=A.text;if(F!=="copy"&&F!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Y!==void 0)if(Y&&k(Y)==="object"&&Y.nodeType===1){if(F==="copy"&&Y.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(F==="cut"&&(Y.hasAttribute("readonly")||Y.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if($e)return J($e,{container:D});if(Y)return F==="cut"?y(Y):J(Y,{container:D})},qe=ft;function Fe(V){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fe=function(M){return typeof M}:Fe=function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},Fe(V)}function ki(V,A){if(!(V instanceof A))throw new TypeError("Cannot call a class as a function")}function no(V,A){for(var M=0;M0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof D.action=="function"?D.action:this.defaultAction,this.target=typeof D.target=="function"?D.target:this.defaultTarget,this.text=typeof D.text=="function"?D.text:this.defaultText,this.container=Fe(D.container)==="object"?D.container:document.body}},{key:"listenClick",value:function(D){var Y=this;this.listener=c()(D,"click",function($e){return Y.onClick($e)})}},{key:"onClick",value:function(D){var Y=D.delegateTarget||D.currentTarget,$e=this.action(Y)||"copy",Dt=qe({action:$e,container:this.container,target:this.target(Y),text:this.text(Y)});this.emit(Dt?"success":"error",{action:$e,text:Dt,trigger:Y,clearSelection:function(){Y&&Y.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(D){return vr("action",D)}},{key:"defaultTarget",value:function(D){var Y=vr("target",D);if(Y)return document.querySelector(Y)}},{key:"defaultText",value:function(D){return vr("text",D)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(D){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return J(D,Y)}},{key:"cut",value:function(D){return y(D)}},{key:"isSupported",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Y=typeof D=="string"?[D]:D,$e=!!document.queryCommandSupported;return Y.forEach(function(Dt){$e=$e&&!!document.queryCommandSupported(Dt)}),$e}}]),M}(s()),Ui=Fi},828:function(o){var n=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function a(s,p){for(;s&&s.nodeType!==n;){if(typeof s.matches=="function"&&s.matches(p))return s;s=s.parentNode}}o.exports=a},438:function(o,n,i){var a=i(828);function s(l,f,u,d,y){var L=c.apply(this,arguments);return l.addEventListener(u,L,y),{destroy:function(){l.removeEventListener(u,L,y)}}}function p(l,f,u,d,y){return typeof l.addEventListener=="function"?s.apply(null,arguments):typeof u=="function"?s.bind(null,document).apply(null,arguments):(typeof l=="string"&&(l=document.querySelectorAll(l)),Array.prototype.map.call(l,function(L){return s(L,f,u,d,y)}))}function c(l,f,u,d){return function(y){y.delegateTarget=a(y.target,f),y.delegateTarget&&d.call(l,y)}}o.exports=p},879:function(o,n){n.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},n.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||n.node(i[0]))},n.string=function(i){return typeof i=="string"||i instanceof String},n.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}},370:function(o,n,i){var a=i(879),s=i(438);function p(u,d,y){if(!u&&!d&&!y)throw new Error("Missing required arguments");if(!a.string(d))throw new TypeError("Second argument must be a String");if(!a.fn(y))throw new TypeError("Third argument must be a Function");if(a.node(u))return c(u,d,y);if(a.nodeList(u))return l(u,d,y);if(a.string(u))return f(u,d,y);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(u,d,y){return u.addEventListener(d,y),{destroy:function(){u.removeEventListener(d,y)}}}function l(u,d,y){return Array.prototype.forEach.call(u,function(L){L.addEventListener(d,y)}),{destroy:function(){Array.prototype.forEach.call(u,function(L){L.removeEventListener(d,y)})}}}function f(u,d,y){return s(document.body,u,d,y)}o.exports=p},817:function(o){function n(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var s=i.hasAttribute("readonly");s||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),s||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var p=window.getSelection(),c=document.createRange();c.selectNodeContents(i),p.removeAllRanges(),p.addRange(c),a=p.toString()}return a}o.exports=n},279:function(o){function n(){}n.prototype={on:function(i,a,s){var p=this.e||(this.e={});return(p[i]||(p[i]=[])).push({fn:a,ctx:s}),this},once:function(i,a,s){var p=this;function c(){p.off(i,c),a.apply(s,arguments)}return c._=a,this.on(i,c,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),p=0,c=s.length;for(p;p0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function N(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var o=r.call(e),n,i=[],a;try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i}function q(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,i;o1||p(d,L)})},y&&(n[d]=y(n[d])))}function p(d,y){try{c(o[d](y))}catch(L){u(i[0][3],L)}}function c(d){d.value instanceof nt?Promise.resolve(d.value.v).then(l,f):u(i[0][2],d)}function l(d){p("next",d)}function f(d){p("throw",d)}function u(d,y){d(y),i.shift(),i.length&&p(i[0][0],i[0][1])}}function uo(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof he=="function"?he(e):e[Symbol.iterator](),r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r);function o(i){r[i]=e[i]&&function(a){return new Promise(function(s,p){a=e[i](a),n(s,p,a.done,a.value)})}}function n(i,a,s,p){Promise.resolve(p).then(function(c){i({value:c,done:s})},a)}}function H(e){return typeof e=="function"}function ut(e){var t=function(o){Error.call(o),o.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var zt=ut(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription: +`+r.map(function(o,n){return n+1+") "+o.toString()}).join(` + `):"",this.name="UnsubscriptionError",this.errors=r}});function Qe(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ue=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,o,n,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=he(a),p=s.next();!p.done;p=s.next()){var c=p.value;c.remove(this)}}catch(L){t={error:L}}finally{try{p&&!p.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var l=this.initialTeardown;if(H(l))try{l()}catch(L){i=L instanceof zt?L.errors:[L]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var u=he(f),d=u.next();!d.done;d=u.next()){var y=d.value;try{ho(y)}catch(L){i=i!=null?i:[],L instanceof zt?i=q(q([],N(i)),N(L.errors)):i.push(L)}}}catch(L){o={error:L}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(o)throw o.error}}}if(i)throw new zt(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)ho(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Qe(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Qe(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var Tr=Ue.EMPTY;function qt(e){return e instanceof Ue||e&&"closed"in e&&H(e.remove)&&H(e.add)&&H(e.unsubscribe)}function ho(e){H(e)?e():e.unsubscribe()}var Pe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var dt={setTimeout:function(e,t){for(var r=[],o=2;o0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var o=this,n=this,i=n.hasError,a=n.isStopped,s=n.observers;return i||a?Tr:(this.currentObservers=null,s.push(r),new Ue(function(){o.currentObservers=null,Qe(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var o=this,n=o.hasError,i=o.thrownError,a=o.isStopped;n?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new j;return r.source=this,r},t.create=function(r,o){return new To(r,o)},t}(j);var To=function(e){oe(t,e);function t(r,o){var n=e.call(this)||this;return n.destination=r,n.source=o,n}return t.prototype.next=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,r)},t.prototype.error=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,r)},t.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},t.prototype._subscribe=function(r){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&n!==void 0?n:Tr},t}(g);var _r=function(e){oe(t,e);function t(r){var o=e.call(this)||this;return o._value=r,o}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var o=e.prototype._subscribe.call(this,r);return!o.closed&&r.next(this._value),o},t.prototype.getValue=function(){var r=this,o=r.hasError,n=r.thrownError,i=r._value;if(o)throw n;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t}(g);var At={now:function(){return(At.delegate||Date).now()},delegate:void 0};var Ct=function(e){oe(t,e);function t(r,o,n){r===void 0&&(r=1/0),o===void 0&&(o=1/0),n===void 0&&(n=At);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=o,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=o===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,o),i}return t.prototype.next=function(r){var o=this,n=o.isStopped,i=o._buffer,a=o._infiniteTimeWindow,s=o._timestampProvider,p=o._windowTime;n||(i.push(r),!a&&i.push(s.now()+p)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(r),n=this,i=n._infiniteTimeWindow,a=n._buffer,s=a.slice(),p=0;p0?e.prototype.schedule.call(this,r,o):(this.delay=o,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,o){return o>0||this.closed?e.prototype.execute.call(this,r,o):this._execute(r,o)},t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),n!=null&&n>0||n==null&&this.delay>0?e.prototype.requestAsyncId.call(this,r,o,n):(r.flush(this),0)},t}(gt);var Lo=function(e){oe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(yt);var kr=new Lo(Oo);var Mo=function(e){oe(t,e);function t(r,o){var n=e.call(this,r,o)||this;return n.scheduler=r,n.work=o,n}return t.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),n!==null&&n>0?e.prototype.requestAsyncId.call(this,r,o,n):(r.actions.push(this),r._scheduled||(r._scheduled=vt.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,o,n){var i;if(n===void 0&&(n=0),n!=null?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,o,n);var a=r.actions;o!=null&&((i=a[a.length-1])===null||i===void 0?void 0:i.id)!==o&&(vt.cancelAnimationFrame(o),r._scheduled=void 0)},t}(gt);var _o=function(e){oe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var o=this._scheduled;this._scheduled=void 0;var n=this.actions,i;r=r||n.shift();do if(i=r.execute(r.state,r.delay))break;while((r=n[0])&&r.id===o&&n.shift());if(this._active=!1,i){for(;(r=n[0])&&r.id===o&&n.shift();)r.unsubscribe();throw i}},t}(yt);var me=new _o(Mo);var S=new j(function(e){return e.complete()});function Yt(e){return e&&H(e.schedule)}function Hr(e){return e[e.length-1]}function Xe(e){return H(Hr(e))?e.pop():void 0}function ke(e){return Yt(Hr(e))?e.pop():void 0}function Bt(e,t){return typeof Hr(e)=="number"?e.pop():t}var xt=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Gt(e){return H(e==null?void 0:e.then)}function Jt(e){return H(e[bt])}function Xt(e){return Symbol.asyncIterator&&H(e==null?void 0:e[Symbol.asyncIterator])}function Zt(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Zi(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var er=Zi();function tr(e){return H(e==null?void 0:e[er])}function rr(e){return fo(this,arguments,function(){var r,o,n,i;return Nt(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,nt(r.read())];case 3:return o=a.sent(),n=o.value,i=o.done,i?[4,nt(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,nt(n)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function or(e){return H(e==null?void 0:e.getReader)}function U(e){if(e instanceof j)return e;if(e!=null){if(Jt(e))return ea(e);if(xt(e))return ta(e);if(Gt(e))return ra(e);if(Xt(e))return Ao(e);if(tr(e))return oa(e);if(or(e))return na(e)}throw Zt(e)}function ea(e){return new j(function(t){var r=e[bt]();if(H(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ta(e){return new j(function(t){for(var r=0;r=2;return function(o){return o.pipe(e?b(function(n,i){return e(n,i,o)}):le,Te(1),r?De(t):Qo(function(){return new ir}))}}function jr(e){return e<=0?function(){return S}:E(function(t,r){var o=[];t.subscribe(T(r,function(n){o.push(n),e=2,!0))}function pe(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new g}:t,o=e.resetOnError,n=o===void 0?!0:o,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,p=s===void 0?!0:s;return function(c){var l,f,u,d=0,y=!1,L=!1,X=function(){f==null||f.unsubscribe(),f=void 0},te=function(){X(),l=u=void 0,y=L=!1},J=function(){var k=l;te(),k==null||k.unsubscribe()};return E(function(k,ft){d++,!L&&!y&&X();var qe=u=u!=null?u:r();ft.add(function(){d--,d===0&&!L&&!y&&(f=Ur(J,p))}),qe.subscribe(ft),!l&&d>0&&(l=new at({next:function(Fe){return qe.next(Fe)},error:function(Fe){L=!0,X(),f=Ur(te,n,Fe),qe.error(Fe)},complete:function(){y=!0,X(),f=Ur(te,a),qe.complete()}}),U(k).subscribe(l))})(c)}}function Ur(e,t){for(var r=[],o=2;oe.next(document)),e}function P(e,t=document){return Array.from(t.querySelectorAll(e))}function R(e,t=document){let r=fe(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function fe(e,t=document){return t.querySelector(e)||void 0}function Ie(){var e,t,r,o;return(o=(r=(t=(e=document.activeElement)==null?void 0:e.shadowRoot)==null?void 0:t.activeElement)!=null?r:document.activeElement)!=null?o:void 0}var wa=O(h(document.body,"focusin"),h(document.body,"focusout")).pipe(_e(1),Q(void 0),m(()=>Ie()||document.body),G(1));function et(e){return wa.pipe(m(t=>e.contains(t)),K())}function $t(e,t){return C(()=>O(h(e,"mouseenter").pipe(m(()=>!0)),h(e,"mouseleave").pipe(m(()=>!1))).pipe(t?Ht(r=>Le(+!r*t)):le,Q(e.matches(":hover"))))}function Jo(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)Jo(e,r)}function x(e,t,...r){let o=document.createElement(e);if(t)for(let n of Object.keys(t))typeof t[n]!="undefined"&&(typeof t[n]!="boolean"?o.setAttribute(n,t[n]):o.setAttribute(n,""));for(let n of r)Jo(o,n);return o}function sr(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function Tt(e){let t=x("script",{src:e});return C(()=>(document.head.appendChild(t),O(h(t,"load"),h(t,"error").pipe(v(()=>$r(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(m(()=>{}),_(()=>document.head.removeChild(t)),Te(1))))}var Xo=new g,Ta=C(()=>typeof ResizeObserver=="undefined"?Tt("https://unpkg.com/resize-observer-polyfill"):I(void 0)).pipe(m(()=>new ResizeObserver(e=>e.forEach(t=>Xo.next(t)))),v(e=>O(Ye,I(e)).pipe(_(()=>e.disconnect()))),G(1));function ce(e){return{width:e.offsetWidth,height:e.offsetHeight}}function ge(e){let t=e;for(;t.clientWidth===0&&t.parentElement;)t=t.parentElement;return Ta.pipe(w(r=>r.observe(t)),v(r=>Xo.pipe(b(o=>o.target===t),_(()=>r.unobserve(t)))),m(()=>ce(e)),Q(ce(e)))}function St(e){return{width:e.scrollWidth,height:e.scrollHeight}}function cr(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}function Zo(e){let t=[],r=e.parentElement;for(;r;)(e.clientWidth>r.clientWidth||e.clientHeight>r.clientHeight)&&t.push(r),r=(e=r).parentElement;return t.length===0&&t.push(document.documentElement),t}function Ve(e){return{x:e.offsetLeft,y:e.offsetTop}}function en(e){let t=e.getBoundingClientRect();return{x:t.x+window.scrollX,y:t.y+window.scrollY}}function tn(e){return O(h(window,"load"),h(window,"resize")).pipe(Me(0,me),m(()=>Ve(e)),Q(Ve(e)))}function pr(e){return{x:e.scrollLeft,y:e.scrollTop}}function Ne(e){return O(h(e,"scroll"),h(window,"scroll"),h(window,"resize")).pipe(Me(0,me),m(()=>pr(e)),Q(pr(e)))}var rn=new g,Sa=C(()=>I(new IntersectionObserver(e=>{for(let t of e)rn.next(t)},{threshold:0}))).pipe(v(e=>O(Ye,I(e)).pipe(_(()=>e.disconnect()))),G(1));function tt(e){return Sa.pipe(w(t=>t.observe(e)),v(t=>rn.pipe(b(({target:r})=>r===e),_(()=>t.unobserve(e)),m(({isIntersecting:r})=>r))))}function on(e,t=16){return Ne(e).pipe(m(({y:r})=>{let o=ce(e),n=St(e);return r>=n.height-o.height-t}),K())}var lr={drawer:R("[data-md-toggle=drawer]"),search:R("[data-md-toggle=search]")};function nn(e){return lr[e].checked}function Je(e,t){lr[e].checked!==t&&lr[e].click()}function ze(e){let t=lr[e];return h(t,"change").pipe(m(()=>t.checked),Q(t.checked))}function Oa(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function La(){return O(h(window,"compositionstart").pipe(m(()=>!0)),h(window,"compositionend").pipe(m(()=>!1))).pipe(Q(!1))}function an(){let e=h(window,"keydown").pipe(b(t=>!(t.metaKey||t.ctrlKey)),m(t=>({mode:nn("search")?"search":"global",type:t.key,claim(){t.preventDefault(),t.stopPropagation()}})),b(({mode:t,type:r})=>{if(t==="global"){let o=Ie();if(typeof o!="undefined")return!Oa(o,r)}return!0}),pe());return La().pipe(v(t=>t?S:e))}function ye(){return new URL(location.href)}function lt(e,t=!1){if(B("navigation.instant")&&!t){let r=x("a",{href:e.href});document.body.appendChild(r),r.click(),r.remove()}else location.href=e.href}function sn(){return new g}function cn(){return location.hash.slice(1)}function pn(e){let t=x("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Ma(e){return O(h(window,"hashchange"),e).pipe(m(cn),Q(cn()),b(t=>t.length>0),G(1))}function ln(e){return Ma(e).pipe(m(t=>fe(`[id="${t}"]`)),b(t=>typeof t!="undefined"))}function Pt(e){let t=matchMedia(e);return ar(r=>t.addListener(()=>r(t.matches))).pipe(Q(t.matches))}function mn(){let e=matchMedia("print");return O(h(window,"beforeprint").pipe(m(()=>!0)),h(window,"afterprint").pipe(m(()=>!1))).pipe(Q(e.matches))}function Nr(e,t){return e.pipe(v(r=>r?t():S))}function zr(e,t){return new j(r=>{let o=new XMLHttpRequest;return o.open("GET",`${e}`),o.responseType="blob",o.addEventListener("load",()=>{o.status>=200&&o.status<300?(r.next(o.response),r.complete()):r.error(new Error(o.statusText))}),o.addEventListener("error",()=>{r.error(new Error("Network error"))}),o.addEventListener("abort",()=>{r.complete()}),typeof(t==null?void 0:t.progress$)!="undefined"&&(o.addEventListener("progress",n=>{var i;if(n.lengthComputable)t.progress$.next(n.loaded/n.total*100);else{let a=(i=o.getResponseHeader("Content-Length"))!=null?i:0;t.progress$.next(n.loaded/+a*100)}}),t.progress$.next(5)),o.send(),()=>o.abort()})}function je(e,t){return zr(e,t).pipe(v(r=>r.text()),m(r=>JSON.parse(r)),G(1))}function fn(e,t){let r=new DOMParser;return zr(e,t).pipe(v(o=>o.text()),m(o=>r.parseFromString(o,"text/html")),G(1))}function un(e,t){let r=new DOMParser;return zr(e,t).pipe(v(o=>o.text()),m(o=>r.parseFromString(o,"text/xml")),G(1))}function dn(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function hn(){return O(h(window,"scroll",{passive:!0}),h(window,"resize",{passive:!0})).pipe(m(dn),Q(dn()))}function bn(){return{width:innerWidth,height:innerHeight}}function vn(){return h(window,"resize",{passive:!0}).pipe(m(bn),Q(bn()))}function gn(){return z([hn(),vn()]).pipe(m(([e,t])=>({offset:e,size:t})),G(1))}function mr(e,{viewport$:t,header$:r}){let o=t.pipe(ee("size")),n=z([o,r]).pipe(m(()=>Ve(e)));return z([r,t,n]).pipe(m(([{height:i},{offset:a,size:s},{x:p,y:c}])=>({offset:{x:a.x-p,y:a.y-c+i},size:s})))}function _a(e){return h(e,"message",t=>t.data)}function Aa(e){let t=new g;return t.subscribe(r=>e.postMessage(r)),t}function yn(e,t=new Worker(e)){let r=_a(t),o=Aa(t),n=new g;n.subscribe(o);let i=o.pipe(Z(),ie(!0));return n.pipe(Z(),Re(r.pipe(W(i))),pe())}var Ca=R("#__config"),Ot=JSON.parse(Ca.textContent);Ot.base=`${new URL(Ot.base,ye())}`;function xe(){return Ot}function B(e){return Ot.features.includes(e)}function Ee(e,t){return typeof t!="undefined"?Ot.translations[e].replace("#",t.toString()):Ot.translations[e]}function Se(e,t=document){return R(`[data-md-component=${e}]`,t)}function ae(e,t=document){return P(`[data-md-component=${e}]`,t)}function ka(e){let t=R(".md-typeset > :first-child",e);return h(t,"click",{once:!0}).pipe(m(()=>R(".md-typeset",e)),m(r=>({hash:__md_hash(r.innerHTML)})))}function xn(e){if(!B("announce.dismiss")||!e.childElementCount)return S;if(!e.hidden){let t=R(".md-typeset",e);__md_hash(t.innerHTML)===__md_get("__announce")&&(e.hidden=!0)}return C(()=>{let t=new g;return t.subscribe(({hash:r})=>{e.hidden=!0,__md_set("__announce",r)}),ka(e).pipe(w(r=>t.next(r)),_(()=>t.complete()),m(r=>$({ref:e},r)))})}function Ha(e,{target$:t}){return t.pipe(m(r=>({hidden:r!==e})))}function En(e,t){let r=new g;return r.subscribe(({hidden:o})=>{e.hidden=o}),Ha(e,t).pipe(w(o=>r.next(o)),_(()=>r.complete()),m(o=>$({ref:e},o)))}function Rt(e,t){return t==="inline"?x("div",{class:"md-tooltip md-tooltip--inline",id:e,role:"tooltip"},x("div",{class:"md-tooltip__inner md-typeset"})):x("div",{class:"md-tooltip",id:e,role:"tooltip"},x("div",{class:"md-tooltip__inner md-typeset"}))}function wn(...e){return x("div",{class:"md-tooltip2",role:"tooltip"},x("div",{class:"md-tooltip2__inner md-typeset"},e))}function Tn(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return x("aside",{class:"md-annotation",tabIndex:0},Rt(t),x("a",{href:r,class:"md-annotation__index",tabIndex:-1},x("span",{"data-md-annotation-id":e})))}else return x("aside",{class:"md-annotation",tabIndex:0},Rt(t),x("span",{class:"md-annotation__index",tabIndex:-1},x("span",{"data-md-annotation-id":e})))}function Sn(e){return x("button",{class:"md-clipboard md-icon",title:Ee("clipboard.copy"),"data-clipboard-target":`#${e} > code`})}var Ln=Mt(qr());function Qr(e,t){let r=t&2,o=t&1,n=Object.keys(e.terms).filter(p=>!e.terms[p]).reduce((p,c)=>[...p,x("del",null,(0,Ln.default)(c))," "],[]).slice(0,-1),i=xe(),a=new URL(e.location,i.base);B("search.highlight")&&a.searchParams.set("h",Object.entries(e.terms).filter(([,p])=>p).reduce((p,[c])=>`${p} ${c}`.trim(),""));let{tags:s}=xe();return x("a",{href:`${a}`,class:"md-search-result__link",tabIndex:-1},x("article",{class:"md-search-result__article md-typeset","data-md-score":e.score.toFixed(2)},r>0&&x("div",{class:"md-search-result__icon md-icon"}),r>0&&x("h1",null,e.title),r<=0&&x("h2",null,e.title),o>0&&e.text.length>0&&e.text,e.tags&&x("nav",{class:"md-tags"},e.tags.map(p=>{let c=s?p in s?`md-tag-icon md-tag--${s[p]}`:"md-tag-icon":"";return x("span",{class:`md-tag ${c}`},p)})),o>0&&n.length>0&&x("p",{class:"md-search-result__terms"},Ee("search.result.term.missing"),": ",...n)))}function Mn(e){let t=e[0].score,r=[...e],o=xe(),n=r.findIndex(l=>!`${new URL(l.location,o.base)}`.includes("#")),[i]=r.splice(n,1),a=r.findIndex(l=>l.scoreQr(l,1)),...p.length?[x("details",{class:"md-search-result__more"},x("summary",{tabIndex:-1},x("div",null,p.length>0&&p.length===1?Ee("search.result.more.one"):Ee("search.result.more.other",p.length))),...p.map(l=>Qr(l,1)))]:[]];return x("li",{class:"md-search-result__item"},c)}function _n(e){return x("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>x("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?sr(r):r)))}function Kr(e){let t=`tabbed-control tabbed-control--${e}`;return x("div",{class:t,hidden:!0},x("button",{class:"tabbed-button",tabIndex:-1,"aria-hidden":"true"}))}function An(e){return x("div",{class:"md-typeset__scrollwrap"},x("div",{class:"md-typeset__table"},e))}function Ra(e){var o;let t=xe(),r=new URL(`../${e.version}/`,t.base);return x("li",{class:"md-version__item"},x("a",{href:`${r}`,class:"md-version__link"},e.title,((o=t.version)==null?void 0:o.alias)&&e.aliases.length>0&&x("span",{class:"md-version__alias"},e.aliases[0])))}function Cn(e,t){var o;let r=xe();return e=e.filter(n=>{var i;return!((i=n.properties)!=null&&i.hidden)}),x("div",{class:"md-version"},x("button",{class:"md-version__current","aria-label":Ee("select.version")},t.title,((o=r.version)==null?void 0:o.alias)&&t.aliases.length>0&&x("span",{class:"md-version__alias"},t.aliases[0])),x("ul",{class:"md-version__list"},e.map(Ra)))}var Ia=0;function ja(e){let t=z([et(e),$t(e)]).pipe(m(([o,n])=>o||n),K()),r=C(()=>Zo(e)).pipe(ne(Ne),pt(1),He(t),m(()=>en(e)));return t.pipe(Ae(o=>o),v(()=>z([t,r])),m(([o,n])=>({active:o,offset:n})),pe())}function Fa(e,t){let{content$:r,viewport$:o}=t,n=`__tooltip2_${Ia++}`;return C(()=>{let i=new g,a=new _r(!1);i.pipe(Z(),ie(!1)).subscribe(a);let s=a.pipe(Ht(c=>Le(+!c*250,kr)),K(),v(c=>c?r:S),w(c=>c.id=n),pe());z([i.pipe(m(({active:c})=>c)),s.pipe(v(c=>$t(c,250)),Q(!1))]).pipe(m(c=>c.some(l=>l))).subscribe(a);let p=a.pipe(b(c=>c),re(s,o),m(([c,l,{size:f}])=>{let u=e.getBoundingClientRect(),d=u.width/2;if(l.role==="tooltip")return{x:d,y:8+u.height};if(u.y>=f.height/2){let{height:y}=ce(l);return{x:d,y:-16-y}}else return{x:d,y:16+u.height}}));return z([s,i,p]).subscribe(([c,{offset:l},f])=>{c.style.setProperty("--md-tooltip-host-x",`${l.x}px`),c.style.setProperty("--md-tooltip-host-y",`${l.y}px`),c.style.setProperty("--md-tooltip-x",`${f.x}px`),c.style.setProperty("--md-tooltip-y",`${f.y}px`),c.classList.toggle("md-tooltip2--top",f.y<0),c.classList.toggle("md-tooltip2--bottom",f.y>=0)}),a.pipe(b(c=>c),re(s,(c,l)=>l),b(c=>c.role==="tooltip")).subscribe(c=>{let l=ce(R(":scope > *",c));c.style.setProperty("--md-tooltip-width",`${l.width}px`),c.style.setProperty("--md-tooltip-tail","0px")}),a.pipe(K(),ve(me),re(s)).subscribe(([c,l])=>{l.classList.toggle("md-tooltip2--active",c)}),z([a.pipe(b(c=>c)),s]).subscribe(([c,l])=>{l.role==="dialog"?(e.setAttribute("aria-controls",n),e.setAttribute("aria-haspopup","dialog")):e.setAttribute("aria-describedby",n)}),a.pipe(b(c=>!c)).subscribe(()=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-describedby"),e.removeAttribute("aria-haspopup")}),ja(e).pipe(w(c=>i.next(c)),_(()=>i.complete()),m(c=>$({ref:e},c)))})}function mt(e,{viewport$:t},r=document.body){return Fa(e,{content$:new j(o=>{let n=e.title,i=wn(n);return o.next(i),e.removeAttribute("title"),r.append(i),()=>{i.remove(),e.setAttribute("title",n)}}),viewport$:t})}function Ua(e,t){let r=C(()=>z([tn(e),Ne(t)])).pipe(m(([{x:o,y:n},i])=>{let{width:a,height:s}=ce(e);return{x:o-i.x+a/2,y:n-i.y+s/2}}));return et(e).pipe(v(o=>r.pipe(m(n=>({active:o,offset:n})),Te(+!o||1/0))))}function kn(e,t,{target$:r}){let[o,n]=Array.from(e.children);return C(()=>{let i=new g,a=i.pipe(Z(),ie(!0));return i.subscribe({next({offset:s}){e.style.setProperty("--md-tooltip-x",`${s.x}px`),e.style.setProperty("--md-tooltip-y",`${s.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),tt(e).pipe(W(a)).subscribe(s=>{e.toggleAttribute("data-md-visible",s)}),O(i.pipe(b(({active:s})=>s)),i.pipe(_e(250),b(({active:s})=>!s))).subscribe({next({active:s}){s?e.prepend(o):o.remove()},complete(){e.prepend(o)}}),i.pipe(Me(16,me)).subscribe(({active:s})=>{o.classList.toggle("md-tooltip--active",s)}),i.pipe(pt(125,me),b(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:s})=>s)).subscribe({next(s){s?e.style.setProperty("--md-tooltip-0",`${-s}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),h(n,"click").pipe(W(a),b(s=>!(s.metaKey||s.ctrlKey))).subscribe(s=>{s.stopPropagation(),s.preventDefault()}),h(n,"mousedown").pipe(W(a),re(i)).subscribe(([s,{active:p}])=>{var c;if(s.button!==0||s.metaKey||s.ctrlKey)s.preventDefault();else if(p){s.preventDefault();let l=e.parentElement.closest(".md-annotation");l instanceof HTMLElement?l.focus():(c=Ie())==null||c.blur()}}),r.pipe(W(a),b(s=>s===o),Ge(125)).subscribe(()=>e.focus()),Ua(e,t).pipe(w(s=>i.next(s)),_(()=>i.complete()),m(s=>$({ref:e},s)))})}function Wa(e){return e.tagName==="CODE"?P(".c, .c1, .cm",e):[e]}function Da(e){let t=[];for(let r of Wa(e)){let o=[],n=document.createNodeIterator(r,NodeFilter.SHOW_TEXT);for(let i=n.nextNode();i;i=n.nextNode())o.push(i);for(let i of o){let a;for(;a=/(\(\d+\))(!)?/.exec(i.textContent);){let[,s,p]=a;if(typeof p=="undefined"){let c=i.splitText(a.index);i=c.splitText(s.length),t.push(c)}else{i.textContent=s,t.push(i);break}}}}return t}function Hn(e,t){t.append(...Array.from(e.childNodes))}function fr(e,t,{target$:r,print$:o}){let n=t.closest("[id]"),i=n==null?void 0:n.id,a=new Map;for(let s of Da(t)){let[,p]=s.textContent.match(/\((\d+)\)/);fe(`:scope > li:nth-child(${p})`,e)&&(a.set(p,Tn(p,i)),s.replaceWith(a.get(p)))}return a.size===0?S:C(()=>{let s=new g,p=s.pipe(Z(),ie(!0)),c=[];for(let[l,f]of a)c.push([R(".md-typeset",f),R(`:scope > li:nth-child(${l})`,e)]);return o.pipe(W(p)).subscribe(l=>{e.hidden=!l,e.classList.toggle("md-annotation-list",l);for(let[f,u]of c)l?Hn(f,u):Hn(u,f)}),O(...[...a].map(([,l])=>kn(l,t,{target$:r}))).pipe(_(()=>s.complete()),pe())})}function $n(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return $n(t)}}function Pn(e,t){return C(()=>{let r=$n(e);return typeof r!="undefined"?fr(r,e,t):S})}var Rn=Mt(Br());var Va=0;function In(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return In(t)}}function Na(e){return ge(e).pipe(m(({width:t})=>({scrollable:St(e).width>t})),ee("scrollable"))}function jn(e,t){let{matches:r}=matchMedia("(hover)"),o=C(()=>{let n=new g,i=n.pipe(jr(1));n.subscribe(({scrollable:c})=>{c&&r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")});let a=[];if(Rn.default.isSupported()&&(e.closest(".copy")||B("content.code.copy")&&!e.closest(".no-copy"))){let c=e.closest("pre");c.id=`__code_${Va++}`;let l=Sn(c.id);c.insertBefore(l,e),B("content.tooltips")&&a.push(mt(l,{viewport$}))}let s=e.closest(".highlight");if(s instanceof HTMLElement){let c=In(s);if(typeof c!="undefined"&&(s.classList.contains("annotate")||B("content.code.annotate"))){let l=fr(c,e,t);a.push(ge(s).pipe(W(i),m(({width:f,height:u})=>f&&u),K(),v(f=>f?l:S)))}}return P(":scope > span[id]",e).length&&e.classList.add("md-code__content"),Na(e).pipe(w(c=>n.next(c)),_(()=>n.complete()),m(c=>$({ref:e},c)),Re(...a))});return B("content.lazy")?tt(e).pipe(b(n=>n),Te(1),v(()=>o)):o}function za(e,{target$:t,print$:r}){let o=!0;return O(t.pipe(m(n=>n.closest("details:not([open])")),b(n=>e===n),m(()=>({action:"open",reveal:!0}))),r.pipe(b(n=>n||!o),w(()=>o=e.open),m(n=>({action:n?"open":"close"}))))}function Fn(e,t){return C(()=>{let r=new g;return r.subscribe(({action:o,reveal:n})=>{e.toggleAttribute("open",o==="open"),n&&e.scrollIntoView()}),za(e,t).pipe(w(o=>r.next(o)),_(()=>r.complete()),m(o=>$({ref:e},o)))})}var Un=".node circle,.node ellipse,.node path,.node polygon,.node rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}marker{fill:var(--md-mermaid-edge-color)!important}.edgeLabel .label rect{fill:#0000}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{line-height:normal;overflow:visible}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.edgeLabel,.edgeLabel p,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel p{fill:var(--md-mermaid-label-bg-color);color:var(--md-mermaid-edge-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color);stroke-width:.05rem}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}g #flowchart-circleEnd,g #flowchart-circleStart,g #flowchart-crossEnd,g #flowchart-crossStart,g #flowchart-pointEnd,g #flowchart-pointStart{stroke:none}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.classGroup text{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.classLabel .box{fill:var(--md-mermaid-label-bg-color);background-color:var(--md-mermaid-label-bg-color);opacity:1}.classLabel .label{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.cardinality text{fill:inherit!important}defs #classDiagram-compositionEnd,defs #classDiagram-compositionStart,defs #classDiagram-dependencyEnd,defs #classDiagram-dependencyStart,defs #classDiagram-extensionEnd,defs #classDiagram-extensionStart{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs #classDiagram-aggregationEnd,defs #classDiagram-aggregationStart{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important;font-family:var(--md-mermaid-font-family)}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel,.nodeLabel p{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}a .nodeLabel{text-decoration:underline}.node circle.state-end,.node circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}defs #statediagram-barbEnd{stroke:var(--md-mermaid-edge-color)}.attributeBoxEven,.attributeBoxOdd{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityBox{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-node-fg-color)}.entityLabel{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.relationshipLabelBox{fill:var(--md-mermaid-label-bg-color);fill-opacity:1;background-color:var(--md-mermaid-label-bg-color);opacity:1}.relationshipLabel{fill:var(--md-mermaid-label-fg-color)}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs #ONE_OR_MORE_END *,defs #ONE_OR_MORE_START *,defs #ONLY_ONE_END *,defs #ONLY_ONE_START *,defs #ZERO_OR_MORE_END *,defs #ZERO_OR_MORE_START *,defs #ZERO_OR_ONE_END *,defs #ZERO_OR_ONE_START *{stroke:var(--md-mermaid-edge-color)!important}defs #ZERO_OR_MORE_END circle,defs #ZERO_OR_MORE_START circle{fill:var(--md-mermaid-label-bg-color)}.actor{fill:var(--md-mermaid-sequence-actor-bg-color);stroke:var(--md-mermaid-sequence-actor-border-color)}text.actor>tspan{fill:var(--md-mermaid-sequence-actor-fg-color);font-family:var(--md-mermaid-font-family)}line{stroke:var(--md-mermaid-sequence-actor-line-color)}.actor-man circle,.actor-man line{fill:var(--md-mermaid-sequence-actorman-bg-color);stroke:var(--md-mermaid-sequence-actorman-line-color)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-sequence-message-line-color)}.note{fill:var(--md-mermaid-sequence-note-bg-color);stroke:var(--md-mermaid-sequence-note-border-color)}.loopText,.loopText>tspan,.messageText,.noteText>tspan{stroke:none;font-family:var(--md-mermaid-font-family)!important}.messageText{fill:var(--md-mermaid-sequence-message-fg-color)}.loopText,.loopText>tspan{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}#arrowhead path{fill:var(--md-mermaid-sequence-message-line-color);stroke:none}.loopLine{fill:var(--md-mermaid-sequence-loop-bg-color);stroke:var(--md-mermaid-sequence-loop-border-color)}.labelBox{fill:var(--md-mermaid-sequence-label-bg-color);stroke:none}.labelText,.labelText>span{fill:var(--md-mermaid-sequence-label-fg-color);font-family:var(--md-mermaid-font-family)}.sequenceNumber{fill:var(--md-mermaid-sequence-number-fg-color)}rect.rect{fill:var(--md-mermaid-sequence-box-bg-color);stroke:none}rect.rect+text.text{fill:var(--md-mermaid-sequence-box-fg-color)}defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}";var Gr,Qa=0;function Ka(){return typeof mermaid=="undefined"||mermaid instanceof Element?Tt("https://unpkg.com/mermaid@11/dist/mermaid.min.js"):I(void 0)}function Wn(e){return e.classList.remove("mermaid"),Gr||(Gr=Ka().pipe(w(()=>mermaid.initialize({startOnLoad:!1,themeCSS:Un,sequence:{actorFontSize:"16px",messageFontSize:"16px",noteFontSize:"16px"}})),m(()=>{}),G(1))),Gr.subscribe(()=>co(this,null,function*(){e.classList.add("mermaid");let t=`__mermaid_${Qa++}`,r=x("div",{class:"mermaid"}),o=e.textContent,{svg:n,fn:i}=yield mermaid.render(t,o),a=r.attachShadow({mode:"closed"});a.innerHTML=n,e.replaceWith(r),i==null||i(a)})),Gr.pipe(m(()=>({ref:e})))}var Dn=x("table");function Vn(e){return e.replaceWith(Dn),Dn.replaceWith(An(e)),I({ref:e})}function Ya(e){let t=e.find(r=>r.checked)||e[0];return O(...e.map(r=>h(r,"change").pipe(m(()=>R(`label[for="${r.id}"]`))))).pipe(Q(R(`label[for="${t.id}"]`)),m(r=>({active:r})))}function Nn(e,{viewport$:t,target$:r}){let o=R(".tabbed-labels",e),n=P(":scope > input",e),i=Kr("prev");e.append(i);let a=Kr("next");return e.append(a),C(()=>{let s=new g,p=s.pipe(Z(),ie(!0));z([s,ge(e),tt(e)]).pipe(W(p),Me(1,me)).subscribe({next([{active:c},l]){let f=Ve(c),{width:u}=ce(c);e.style.setProperty("--md-indicator-x",`${f.x}px`),e.style.setProperty("--md-indicator-width",`${u}px`);let d=pr(o);(f.xd.x+l.width)&&o.scrollTo({left:Math.max(0,f.x-16),behavior:"smooth"})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),z([Ne(o),ge(o)]).pipe(W(p)).subscribe(([c,l])=>{let f=St(o);i.hidden=c.x<16,a.hidden=c.x>f.width-l.width-16}),O(h(i,"click").pipe(m(()=>-1)),h(a,"click").pipe(m(()=>1))).pipe(W(p)).subscribe(c=>{let{width:l}=ce(o);o.scrollBy({left:l*c,behavior:"smooth"})}),r.pipe(W(p),b(c=>n.includes(c))).subscribe(c=>c.click()),o.classList.add("tabbed-labels--linked");for(let c of n){let l=R(`label[for="${c.id}"]`);l.replaceChildren(x("a",{href:`#${l.htmlFor}`,tabIndex:-1},...Array.from(l.childNodes))),h(l.firstElementChild,"click").pipe(W(p),b(f=>!(f.metaKey||f.ctrlKey)),w(f=>{f.preventDefault(),f.stopPropagation()})).subscribe(()=>{history.replaceState({},"",`#${l.htmlFor}`),l.click()})}return B("content.tabs.link")&&s.pipe(Ce(1),re(t)).subscribe(([{active:c},{offset:l}])=>{let f=c.innerText.trim();if(c.hasAttribute("data-md-switching"))c.removeAttribute("data-md-switching");else{let u=e.offsetTop-l.y;for(let y of P("[data-tabs]"))for(let L of P(":scope > input",y)){let X=R(`label[for="${L.id}"]`);if(X!==c&&X.innerText.trim()===f){X.setAttribute("data-md-switching",""),L.click();break}}window.scrollTo({top:e.offsetTop-u});let d=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([f,...d])])}}),s.pipe(W(p)).subscribe(()=>{for(let c of P("audio, video",e))c.pause()}),Ya(n).pipe(w(c=>s.next(c)),_(()=>s.complete()),m(c=>$({ref:e},c)))}).pipe(Ke(se))}function zn(e,{viewport$:t,target$:r,print$:o}){return O(...P(".annotate:not(.highlight)",e).map(n=>Pn(n,{target$:r,print$:o})),...P("pre:not(.mermaid) > code",e).map(n=>jn(n,{target$:r,print$:o})),...P("pre.mermaid",e).map(n=>Wn(n)),...P("table:not([class])",e).map(n=>Vn(n)),...P("details",e).map(n=>Fn(n,{target$:r,print$:o})),...P("[data-tabs]",e).map(n=>Nn(n,{viewport$:t,target$:r})),...P("[title]",e).filter(()=>B("content.tooltips")).map(n=>mt(n,{viewport$:t})))}function Ba(e,{alert$:t}){return t.pipe(v(r=>O(I(!0),I(!1).pipe(Ge(2e3))).pipe(m(o=>({message:r,active:o})))))}function qn(e,t){let r=R(".md-typeset",e);return C(()=>{let o=new g;return o.subscribe(({message:n,active:i})=>{e.classList.toggle("md-dialog--active",i),r.textContent=n}),Ba(e,t).pipe(w(n=>o.next(n)),_(()=>o.complete()),m(n=>$({ref:e},n)))})}var Ga=0;function Ja(e,t){document.body.append(e);let{width:r}=ce(e);e.style.setProperty("--md-tooltip-width",`${r}px`),e.remove();let o=cr(t),n=typeof o!="undefined"?Ne(o):I({x:0,y:0}),i=O(et(t),$t(t)).pipe(K());return z([i,n]).pipe(m(([a,s])=>{let{x:p,y:c}=Ve(t),l=ce(t),f=t.closest("table");return f&&t.parentElement&&(p+=f.offsetLeft+t.parentElement.offsetLeft,c+=f.offsetTop+t.parentElement.offsetTop),{active:a,offset:{x:p-s.x+l.width/2-r/2,y:c-s.y+l.height+8}}}))}function Qn(e){let t=e.title;if(!t.length)return S;let r=`__tooltip_${Ga++}`,o=Rt(r,"inline"),n=R(".md-typeset",o);return n.innerHTML=t,C(()=>{let i=new g;return i.subscribe({next({offset:a}){o.style.setProperty("--md-tooltip-x",`${a.x}px`),o.style.setProperty("--md-tooltip-y",`${a.y}px`)},complete(){o.style.removeProperty("--md-tooltip-x"),o.style.removeProperty("--md-tooltip-y")}}),O(i.pipe(b(({active:a})=>a)),i.pipe(_e(250),b(({active:a})=>!a))).subscribe({next({active:a}){a?(e.insertAdjacentElement("afterend",o),e.setAttribute("aria-describedby",r),e.removeAttribute("title")):(o.remove(),e.removeAttribute("aria-describedby"),e.setAttribute("title",t))},complete(){o.remove(),e.removeAttribute("aria-describedby"),e.setAttribute("title",t)}}),i.pipe(Me(16,me)).subscribe(({active:a})=>{o.classList.toggle("md-tooltip--active",a)}),i.pipe(pt(125,me),b(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:a})=>a)).subscribe({next(a){a?o.style.setProperty("--md-tooltip-0",`${-a}px`):o.style.removeProperty("--md-tooltip-0")},complete(){o.style.removeProperty("--md-tooltip-0")}}),Ja(o,e).pipe(w(a=>i.next(a)),_(()=>i.complete()),m(a=>$({ref:e},a)))}).pipe(Ke(se))}function Xa({viewport$:e}){if(!B("header.autohide"))return I(!1);let t=e.pipe(m(({offset:{y:n}})=>n),Be(2,1),m(([n,i])=>[nMath.abs(i-n.y)>100),m(([,[n]])=>n),K()),o=ze("search");return z([e,o]).pipe(m(([{offset:n},i])=>n.y>400&&!i),K(),v(n=>n?r:I(!1)),Q(!1))}function Kn(e,t){return C(()=>z([ge(e),Xa(t)])).pipe(m(([{height:r},o])=>({height:r,hidden:o})),K((r,o)=>r.height===o.height&&r.hidden===o.hidden),G(1))}function Yn(e,{header$:t,main$:r}){return C(()=>{let o=new g,n=o.pipe(Z(),ie(!0));o.pipe(ee("active"),He(t)).subscribe(([{active:a},{hidden:s}])=>{e.classList.toggle("md-header--shadow",a&&!s),e.hidden=s});let i=ue(P("[title]",e)).pipe(b(()=>B("content.tooltips")),ne(a=>Qn(a)));return r.subscribe(o),t.pipe(W(n),m(a=>$({ref:e},a)),Re(i.pipe(W(n))))})}function Za(e,{viewport$:t,header$:r}){return mr(e,{viewport$:t,header$:r}).pipe(m(({offset:{y:o}})=>{let{height:n}=ce(e);return{active:o>=n}}),ee("active"))}function Bn(e,t){return C(()=>{let r=new g;r.subscribe({next({active:n}){e.classList.toggle("md-header__title--active",n)},complete(){e.classList.remove("md-header__title--active")}});let o=fe(".md-content h1");return typeof o=="undefined"?S:Za(o,t).pipe(w(n=>r.next(n)),_(()=>r.complete()),m(n=>$({ref:e},n)))})}function Gn(e,{viewport$:t,header$:r}){let o=r.pipe(m(({height:i})=>i),K()),n=o.pipe(v(()=>ge(e).pipe(m(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),ee("bottom"))));return z([o,n,t]).pipe(m(([i,{top:a,bottom:s},{offset:{y:p},size:{height:c}}])=>(c=Math.max(0,c-Math.max(0,a-p,i)-Math.max(0,c+p-s)),{offset:a-i,height:c,active:a-i<=p})),K((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function es(e){let t=__md_get("__palette")||{index:e.findIndex(o=>matchMedia(o.getAttribute("data-md-color-media")).matches)},r=Math.max(0,Math.min(t.index,e.length-1));return I(...e).pipe(ne(o=>h(o,"change").pipe(m(()=>o))),Q(e[r]),m(o=>({index:e.indexOf(o),color:{media:o.getAttribute("data-md-color-media"),scheme:o.getAttribute("data-md-color-scheme"),primary:o.getAttribute("data-md-color-primary"),accent:o.getAttribute("data-md-color-accent")}})),G(1))}function Jn(e){let t=P("input",e),r=x("meta",{name:"theme-color"});document.head.appendChild(r);let o=x("meta",{name:"color-scheme"});document.head.appendChild(o);let n=Pt("(prefers-color-scheme: light)");return C(()=>{let i=new g;return i.subscribe(a=>{if(document.body.setAttribute("data-md-color-switching",""),a.color.media==="(prefers-color-scheme)"){let s=matchMedia("(prefers-color-scheme: light)"),p=document.querySelector(s.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");a.color.scheme=p.getAttribute("data-md-color-scheme"),a.color.primary=p.getAttribute("data-md-color-primary"),a.color.accent=p.getAttribute("data-md-color-accent")}for(let[s,p]of Object.entries(a.color))document.body.setAttribute(`data-md-color-${s}`,p);for(let s=0;sa.key==="Enter"),re(i,(a,s)=>s)).subscribe(({index:a})=>{a=(a+1)%t.length,t[a].click(),t[a].focus()}),i.pipe(m(()=>{let a=Se("header"),s=window.getComputedStyle(a);return o.content=s.colorScheme,s.backgroundColor.match(/\d+/g).map(p=>(+p).toString(16).padStart(2,"0")).join("")})).subscribe(a=>r.content=`#${a}`),i.pipe(ve(se)).subscribe(()=>{document.body.removeAttribute("data-md-color-switching")}),es(t).pipe(W(n.pipe(Ce(1))),ct(),w(a=>i.next(a)),_(()=>i.complete()),m(a=>$({ref:e},a)))})}function Xn(e,{progress$:t}){return C(()=>{let r=new g;return r.subscribe(({value:o})=>{e.style.setProperty("--md-progress-value",`${o}`)}),t.pipe(w(o=>r.next({value:o})),_(()=>r.complete()),m(o=>({ref:e,value:o})))})}var Jr=Mt(Br());function ts(e){e.setAttribute("data-md-copying","");let t=e.closest("[data-copy]"),r=t?t.getAttribute("data-copy"):e.innerText;return e.removeAttribute("data-md-copying"),r.trimEnd()}function Zn({alert$:e}){Jr.default.isSupported()&&new j(t=>{new Jr.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||ts(R(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(w(t=>{t.trigger.focus()}),m(()=>Ee("clipboard.copied"))).subscribe(e)}function ei(e,t){return e.protocol=t.protocol,e.hostname=t.hostname,e}function rs(e,t){let r=new Map;for(let o of P("url",e)){let n=R("loc",o),i=[ei(new URL(n.textContent),t)];r.set(`${i[0]}`,i);for(let a of P("[rel=alternate]",o)){let s=a.getAttribute("href");s!=null&&i.push(ei(new URL(s),t))}}return r}function ur(e){return un(new URL("sitemap.xml",e)).pipe(m(t=>rs(t,new URL(e))),de(()=>I(new Map)))}function os(e,t){if(!(e.target instanceof Element))return S;let r=e.target.closest("a");if(r===null)return S;if(r.target||e.metaKey||e.ctrlKey)return S;let o=new URL(r.href);return o.search=o.hash="",t.has(`${o}`)?(e.preventDefault(),I(new URL(r.href))):S}function ti(e){let t=new Map;for(let r of P(":scope > *",e.head))t.set(r.outerHTML,r);return t}function ri(e){for(let t of P("[href], [src]",e))for(let r of["href","src"]){let o=t.getAttribute(r);if(o&&!/^(?:[a-z]+:)?\/\//i.test(o)){t[r]=t[r];break}}return I(e)}function ns(e){for(let o of["[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=outdated]","[data-md-component=logo]","[data-md-component=skip]",...B("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let n=fe(o),i=fe(o,e);typeof n!="undefined"&&typeof i!="undefined"&&n.replaceWith(i)}let t=ti(document);for(let[o,n]of ti(e))t.has(o)?t.delete(o):document.head.appendChild(n);for(let o of t.values()){let n=o.getAttribute("name");n!=="theme-color"&&n!=="color-scheme"&&o.remove()}let r=Se("container");return We(P("script",r)).pipe(v(o=>{let n=e.createElement("script");if(o.src){for(let i of o.getAttributeNames())n.setAttribute(i,o.getAttribute(i));return o.replaceWith(n),new j(i=>{n.onload=()=>i.complete()})}else return n.textContent=o.textContent,o.replaceWith(n),S}),Z(),ie(document))}function oi({location$:e,viewport$:t,progress$:r}){let o=xe();if(location.protocol==="file:")return S;let n=ur(o.base);I(document).subscribe(ri);let i=h(document.body,"click").pipe(He(n),v(([p,c])=>os(p,c)),pe()),a=h(window,"popstate").pipe(m(ye),pe());i.pipe(re(t)).subscribe(([p,{offset:c}])=>{history.replaceState(c,""),history.pushState(null,"",p)}),O(i,a).subscribe(e);let s=e.pipe(ee("pathname"),v(p=>fn(p,{progress$:r}).pipe(de(()=>(lt(p,!0),S)))),v(ri),v(ns),pe());return O(s.pipe(re(e,(p,c)=>c)),s.pipe(v(()=>e),ee("pathname"),v(()=>e),ee("hash")),e.pipe(K((p,c)=>p.pathname===c.pathname&&p.hash===c.hash),v(()=>i),w(()=>history.back()))).subscribe(p=>{var c,l;history.state!==null||!p.hash?window.scrollTo(0,(l=(c=history.state)==null?void 0:c.y)!=null?l:0):(history.scrollRestoration="auto",pn(p.hash),history.scrollRestoration="manual")}),e.subscribe(()=>{history.scrollRestoration="manual"}),h(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}),t.pipe(ee("offset"),_e(100)).subscribe(({offset:p})=>{history.replaceState(p,"")}),s}var ni=Mt(qr());function ii(e){let t=e.separator.split("|").map(n=>n.replace(/(\(\?[!=<][^)]+\))/g,"").length===0?"\uFFFD":n).join("|"),r=new RegExp(t,"img"),o=(n,i,a)=>`${i}${a}`;return n=>{n=n.replace(/[\s*+\-:~^]+/g," ").trim();let i=new RegExp(`(^|${e.separator}|)(${n.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&").replace(r,"|")})`,"img");return a=>(0,ni.default)(a).replace(i,o).replace(/<\/mark>(\s+)]*>/img,"$1")}}function jt(e){return e.type===1}function dr(e){return e.type===3}function ai(e,t){let r=yn(e);return O(I(location.protocol!=="file:"),ze("search")).pipe(Ae(o=>o),v(()=>t)).subscribe(({config:o,docs:n})=>r.next({type:0,data:{config:o,docs:n,options:{suggest:B("search.suggest")}}})),r}function si(e){var l;let{selectedVersionSitemap:t,selectedVersionBaseURL:r,currentLocation:o,currentBaseURL:n}=e,i=(l=Xr(n))==null?void 0:l.pathname;if(i===void 0)return;let a=ss(o.pathname,i);if(a===void 0)return;let s=ps(t.keys());if(!t.has(s))return;let p=Xr(a,s);if(!p||!t.has(p.href))return;let c=Xr(a,r);if(c)return c.hash=o.hash,c.search=o.search,c}function Xr(e,t){try{return new URL(e,t)}catch(r){return}}function ss(e,t){if(e.startsWith(t))return e.slice(t.length)}function cs(e,t){let r=Math.min(e.length,t.length),o;for(o=0;oS)),o=r.pipe(m(n=>{let[,i]=t.base.match(/([^/]+)\/?$/);return n.find(({version:a,aliases:s})=>a===i||s.includes(i))||n[0]}));r.pipe(m(n=>new Map(n.map(i=>[`${new URL(`../${i.version}/`,t.base)}`,i]))),v(n=>h(document.body,"click").pipe(b(i=>!i.metaKey&&!i.ctrlKey),re(o),v(([i,a])=>{if(i.target instanceof Element){let s=i.target.closest("a");if(s&&!s.target&&n.has(s.href)){let p=s.href;return!i.target.closest(".md-version")&&n.get(p)===a?S:(i.preventDefault(),I(new URL(p)))}}return S}),v(i=>ur(i).pipe(m(a=>{var s;return(s=si({selectedVersionSitemap:a,selectedVersionBaseURL:i,currentLocation:ye(),currentBaseURL:t.base}))!=null?s:i})))))).subscribe(n=>lt(n,!0)),z([r,o]).subscribe(([n,i])=>{R(".md-header__topic").appendChild(Cn(n,i))}),e.pipe(v(()=>o)).subscribe(n=>{var a;let i=__md_get("__outdated",sessionStorage);if(i===null){i=!0;let s=((a=t.version)==null?void 0:a.default)||"latest";Array.isArray(s)||(s=[s]);e:for(let p of s)for(let c of n.aliases.concat(n.version))if(new RegExp(p,"i").test(c)){i=!1;break e}__md_set("__outdated",i,sessionStorage)}if(i)for(let s of ae("outdated"))s.hidden=!1})}function ls(e,{worker$:t}){let{searchParams:r}=ye();r.has("q")&&(Je("search",!0),e.value=r.get("q"),e.focus(),ze("search").pipe(Ae(i=>!i)).subscribe(()=>{let i=ye();i.searchParams.delete("q"),history.replaceState({},"",`${i}`)}));let o=et(e),n=O(t.pipe(Ae(jt)),h(e,"keyup"),o).pipe(m(()=>e.value),K());return z([n,o]).pipe(m(([i,a])=>({value:i,focus:a})),G(1))}function pi(e,{worker$:t}){let r=new g,o=r.pipe(Z(),ie(!0));z([t.pipe(Ae(jt)),r],(i,a)=>a).pipe(ee("value")).subscribe(({value:i})=>t.next({type:2,data:i})),r.pipe(ee("focus")).subscribe(({focus:i})=>{i&&Je("search",i)}),h(e.form,"reset").pipe(W(o)).subscribe(()=>e.focus());let n=R("header [for=__search]");return h(n,"click").subscribe(()=>e.focus()),ls(e,{worker$:t}).pipe(w(i=>r.next(i)),_(()=>r.complete()),m(i=>$({ref:e},i)),G(1))}function li(e,{worker$:t,query$:r}){let o=new g,n=on(e.parentElement).pipe(b(Boolean)),i=e.parentElement,a=R(":scope > :first-child",e),s=R(":scope > :last-child",e);ze("search").subscribe(l=>s.setAttribute("role",l?"list":"presentation")),o.pipe(re(r),Wr(t.pipe(Ae(jt)))).subscribe(([{items:l},{value:f}])=>{switch(l.length){case 0:a.textContent=f.length?Ee("search.result.none"):Ee("search.result.placeholder");break;case 1:a.textContent=Ee("search.result.one");break;default:let u=sr(l.length);a.textContent=Ee("search.result.other",u)}});let p=o.pipe(w(()=>s.innerHTML=""),v(({items:l})=>O(I(...l.slice(0,10)),I(...l.slice(10)).pipe(Be(4),Vr(n),v(([f])=>f)))),m(Mn),pe());return p.subscribe(l=>s.appendChild(l)),p.pipe(ne(l=>{let f=fe("details",l);return typeof f=="undefined"?S:h(f,"toggle").pipe(W(o),m(()=>f))})).subscribe(l=>{l.open===!1&&l.offsetTop<=i.scrollTop&&i.scrollTo({top:l.offsetTop})}),t.pipe(b(dr),m(({data:l})=>l)).pipe(w(l=>o.next(l)),_(()=>o.complete()),m(l=>$({ref:e},l)))}function ms(e,{query$:t}){return t.pipe(m(({value:r})=>{let o=ye();return o.hash="",r=r.replace(/\s+/g,"+").replace(/&/g,"%26").replace(/=/g,"%3D"),o.search=`q=${r}`,{url:o}}))}function mi(e,t){let r=new g,o=r.pipe(Z(),ie(!0));return r.subscribe(({url:n})=>{e.setAttribute("data-clipboard-text",e.href),e.href=`${n}`}),h(e,"click").pipe(W(o)).subscribe(n=>n.preventDefault()),ms(e,t).pipe(w(n=>r.next(n)),_(()=>r.complete()),m(n=>$({ref:e},n)))}function fi(e,{worker$:t,keyboard$:r}){let o=new g,n=Se("search-query"),i=O(h(n,"keydown"),h(n,"focus")).pipe(ve(se),m(()=>n.value),K());return o.pipe(He(i),m(([{suggest:s},p])=>{let c=p.split(/([\s-]+)/);if(s!=null&&s.length&&c[c.length-1]){let l=s[s.length-1];l.startsWith(c[c.length-1])&&(c[c.length-1]=l)}else c.length=0;return c})).subscribe(s=>e.innerHTML=s.join("").replace(/\s/g," ")),r.pipe(b(({mode:s})=>s==="search")).subscribe(s=>{switch(s.type){case"ArrowRight":e.innerText.length&&n.selectionStart===n.value.length&&(n.value=e.innerText);break}}),t.pipe(b(dr),m(({data:s})=>s)).pipe(w(s=>o.next(s)),_(()=>o.complete()),m(()=>({ref:e})))}function ui(e,{index$:t,keyboard$:r}){let o=xe();try{let n=ai(o.search,t),i=Se("search-query",e),a=Se("search-result",e);h(e,"click").pipe(b(({target:p})=>p instanceof Element&&!!p.closest("a"))).subscribe(()=>Je("search",!1)),r.pipe(b(({mode:p})=>p==="search")).subscribe(p=>{let c=Ie();switch(p.type){case"Enter":if(c===i){let l=new Map;for(let f of P(":first-child [href]",a)){let u=f.firstElementChild;l.set(f,parseFloat(u.getAttribute("data-md-score")))}if(l.size){let[[f]]=[...l].sort(([,u],[,d])=>d-u);f.click()}p.claim()}break;case"Escape":case"Tab":Je("search",!1),i.blur();break;case"ArrowUp":case"ArrowDown":if(typeof c=="undefined")i.focus();else{let l=[i,...P(":not(details) > [href], summary, details[open] [href]",a)],f=Math.max(0,(Math.max(0,l.indexOf(c))+l.length+(p.type==="ArrowUp"?-1:1))%l.length);l[f].focus()}p.claim();break;default:i!==Ie()&&i.focus()}}),r.pipe(b(({mode:p})=>p==="global")).subscribe(p=>{switch(p.type){case"f":case"s":case"/":i.focus(),i.select(),p.claim();break}});let s=pi(i,{worker$:n});return O(s,li(a,{worker$:n,query$:s})).pipe(Re(...ae("search-share",e).map(p=>mi(p,{query$:s})),...ae("search-suggest",e).map(p=>fi(p,{worker$:n,keyboard$:r}))))}catch(n){return e.hidden=!0,Ye}}function di(e,{index$:t,location$:r}){return z([t,r.pipe(Q(ye()),b(o=>!!o.searchParams.get("h")))]).pipe(m(([o,n])=>ii(o.config)(n.searchParams.get("h"))),m(o=>{var a;let n=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let s=i.nextNode();s;s=i.nextNode())if((a=s.parentElement)!=null&&a.offsetHeight){let p=s.textContent,c=o(p);c.length>p.length&&n.set(s,c)}for(let[s,p]of n){let{childNodes:c}=x("span",null,p);s.replaceWith(...Array.from(c))}return{ref:e,nodes:n}}))}function fs(e,{viewport$:t,main$:r}){let o=e.closest(".md-grid"),n=o.offsetTop-o.parentElement.offsetTop;return z([r,t]).pipe(m(([{offset:i,height:a},{offset:{y:s}}])=>(a=a+Math.min(n,Math.max(0,s-i))-n,{height:a,locked:s>=i+n})),K((i,a)=>i.height===a.height&&i.locked===a.locked))}function Zr(e,o){var n=o,{header$:t}=n,r=so(n,["header$"]);let i=R(".md-sidebar__scrollwrap",e),{y:a}=Ve(i);return C(()=>{let s=new g,p=s.pipe(Z(),ie(!0)),c=s.pipe(Me(0,me));return c.pipe(re(t)).subscribe({next([{height:l},{height:f}]){i.style.height=`${l-2*a}px`,e.style.top=`${f}px`},complete(){i.style.height="",e.style.top=""}}),c.pipe(Ae()).subscribe(()=>{for(let l of P(".md-nav__link--active[href]",e)){if(!l.clientHeight)continue;let f=l.closest(".md-sidebar__scrollwrap");if(typeof f!="undefined"){let u=l.offsetTop-f.offsetTop,{height:d}=ce(f);f.scrollTo({top:u-d/2})}}}),ue(P("label[tabindex]",e)).pipe(ne(l=>h(l,"click").pipe(ve(se),m(()=>l),W(p)))).subscribe(l=>{let f=R(`[id="${l.htmlFor}"]`);R(`[aria-labelledby="${l.id}"]`).setAttribute("aria-expanded",`${f.checked}`)}),fs(e,r).pipe(w(l=>s.next(l)),_(()=>s.complete()),m(l=>$({ref:e},l)))})}function hi(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return st(je(`${r}/releases/latest`).pipe(de(()=>S),m(o=>({version:o.tag_name})),De({})),je(r).pipe(de(()=>S),m(o=>({stars:o.stargazers_count,forks:o.forks_count})),De({}))).pipe(m(([o,n])=>$($({},o),n)))}else{let r=`https://api.github.com/users/${e}`;return je(r).pipe(m(o=>({repositories:o.public_repos})),De({}))}}function bi(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return st(je(`${r}/releases/permalink/latest`).pipe(de(()=>S),m(({tag_name:o})=>({version:o})),De({})),je(r).pipe(de(()=>S),m(({star_count:o,forks_count:n})=>({stars:o,forks:n})),De({}))).pipe(m(([o,n])=>$($({},o),n)))}function vi(e){let t=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);if(t){let[,r,o]=t;return hi(r,o)}if(t=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i),t){let[,r,o]=t;return bi(r,o)}return S}var us;function ds(e){return us||(us=C(()=>{let t=__md_get("__source",sessionStorage);if(t)return I(t);if(ae("consent").length){let o=__md_get("__consent");if(!(o&&o.github))return S}return vi(e.href).pipe(w(o=>__md_set("__source",o,sessionStorage)))}).pipe(de(()=>S),b(t=>Object.keys(t).length>0),m(t=>({facts:t})),G(1)))}function gi(e){let t=R(":scope > :last-child",e);return C(()=>{let r=new g;return r.subscribe(({facts:o})=>{t.appendChild(_n(o)),t.classList.add("md-source__repository--active")}),ds(e).pipe(w(o=>r.next(o)),_(()=>r.complete()),m(o=>$({ref:e},o)))})}function hs(e,{viewport$:t,header$:r}){return ge(document.body).pipe(v(()=>mr(e,{header$:r,viewport$:t})),m(({offset:{y:o}})=>({hidden:o>=10})),ee("hidden"))}function yi(e,t){return C(()=>{let r=new g;return r.subscribe({next({hidden:o}){e.hidden=o},complete(){e.hidden=!1}}),(B("navigation.tabs.sticky")?I({hidden:!1}):hs(e,t)).pipe(w(o=>r.next(o)),_(()=>r.complete()),m(o=>$({ref:e},o)))})}function bs(e,{viewport$:t,header$:r}){let o=new Map,n=P(".md-nav__link",e);for(let s of n){let p=decodeURIComponent(s.hash.substring(1)),c=fe(`[id="${p}"]`);typeof c!="undefined"&&o.set(s,c)}let i=r.pipe(ee("height"),m(({height:s})=>{let p=Se("main"),c=R(":scope > :first-child",p);return s+.8*(c.offsetTop-p.offsetTop)}),pe());return ge(document.body).pipe(ee("height"),v(s=>C(()=>{let p=[];return I([...o].reduce((c,[l,f])=>{for(;p.length&&o.get(p[p.length-1]).tagName>=f.tagName;)p.pop();let u=f.offsetTop;for(;!u&&f.parentElement;)f=f.parentElement,u=f.offsetTop;let d=f.offsetParent;for(;d;d=d.offsetParent)u+=d.offsetTop;return c.set([...p=[...p,l]].reverse(),u)},new Map))}).pipe(m(p=>new Map([...p].sort(([,c],[,l])=>c-l))),He(i),v(([p,c])=>t.pipe(Fr(([l,f],{offset:{y:u},size:d})=>{let y=u+d.height>=Math.floor(s.height);for(;f.length;){let[,L]=f[0];if(L-c=u&&!y)f=[l.pop(),...f];else break}return[l,f]},[[],[...p]]),K((l,f)=>l[0]===f[0]&&l[1]===f[1])))))).pipe(m(([s,p])=>({prev:s.map(([c])=>c),next:p.map(([c])=>c)})),Q({prev:[],next:[]}),Be(2,1),m(([s,p])=>s.prev.length{let i=new g,a=i.pipe(Z(),ie(!0));if(i.subscribe(({prev:s,next:p})=>{for(let[c]of p)c.classList.remove("md-nav__link--passed"),c.classList.remove("md-nav__link--active");for(let[c,[l]]of s.entries())l.classList.add("md-nav__link--passed"),l.classList.toggle("md-nav__link--active",c===s.length-1)}),B("toc.follow")){let s=O(t.pipe(_e(1),m(()=>{})),t.pipe(_e(250),m(()=>"smooth")));i.pipe(b(({prev:p})=>p.length>0),He(o.pipe(ve(se))),re(s)).subscribe(([[{prev:p}],c])=>{let[l]=p[p.length-1];if(l.offsetHeight){let f=cr(l);if(typeof f!="undefined"){let u=l.offsetTop-f.offsetTop,{height:d}=ce(f);f.scrollTo({top:u-d/2,behavior:c})}}})}return B("navigation.tracking")&&t.pipe(W(a),ee("offset"),_e(250),Ce(1),W(n.pipe(Ce(1))),ct({delay:250}),re(i)).subscribe(([,{prev:s}])=>{let p=ye(),c=s[s.length-1];if(c&&c.length){let[l]=c,{hash:f}=new URL(l.href);p.hash!==f&&(p.hash=f,history.replaceState({},"",`${p}`))}else p.hash="",history.replaceState({},"",`${p}`)}),bs(e,{viewport$:t,header$:r}).pipe(w(s=>i.next(s)),_(()=>i.complete()),m(s=>$({ref:e},s)))})}function vs(e,{viewport$:t,main$:r,target$:o}){let n=t.pipe(m(({offset:{y:a}})=>a),Be(2,1),m(([a,s])=>a>s&&s>0),K()),i=r.pipe(m(({active:a})=>a));return z([i,n]).pipe(m(([a,s])=>!(a&&s)),K(),W(o.pipe(Ce(1))),ie(!0),ct({delay:250}),m(a=>({hidden:a})))}function Ei(e,{viewport$:t,header$:r,main$:o,target$:n}){let i=new g,a=i.pipe(Z(),ie(!0));return i.subscribe({next({hidden:s}){e.hidden=s,s?(e.setAttribute("tabindex","-1"),e.blur()):e.removeAttribute("tabindex")},complete(){e.style.top="",e.hidden=!0,e.removeAttribute("tabindex")}}),r.pipe(W(a),ee("height")).subscribe(({height:s})=>{e.style.top=`${s+16}px`}),h(e,"click").subscribe(s=>{s.preventDefault(),window.scrollTo({top:0})}),vs(e,{viewport$:t,main$:o,target$:n}).pipe(w(s=>i.next(s)),_(()=>i.complete()),m(s=>$({ref:e},s)))}function wi({document$:e,viewport$:t}){e.pipe(v(()=>P(".md-ellipsis")),ne(r=>tt(r).pipe(W(e.pipe(Ce(1))),b(o=>o),m(()=>r),Te(1))),b(r=>r.offsetWidth{let o=r.innerText,n=r.closest("a")||r;return n.title=o,B("content.tooltips")?mt(n,{viewport$:t}).pipe(W(e.pipe(Ce(1))),_(()=>n.removeAttribute("title"))):S})).subscribe(),B("content.tooltips")&&e.pipe(v(()=>P(".md-status")),ne(r=>mt(r,{viewport$:t}))).subscribe()}function Ti({document$:e,tablet$:t}){e.pipe(v(()=>P(".md-toggle--indeterminate")),w(r=>{r.indeterminate=!0,r.checked=!1}),ne(r=>h(r,"change").pipe(Dr(()=>r.classList.contains("md-toggle--indeterminate")),m(()=>r))),re(t)).subscribe(([r,o])=>{r.classList.remove("md-toggle--indeterminate"),o&&(r.checked=!1)})}function gs(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Si({document$:e}){e.pipe(v(()=>P("[data-md-scrollfix]")),w(t=>t.removeAttribute("data-md-scrollfix")),b(gs),ne(t=>h(t,"touchstart").pipe(m(()=>t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}function Oi({viewport$:e,tablet$:t}){z([ze("search"),t]).pipe(m(([r,o])=>r&&!o),v(r=>I(r).pipe(Ge(r?400:100))),re(e)).subscribe(([r,{offset:{y:o}}])=>{if(r)document.body.setAttribute("data-md-scrolllock",""),document.body.style.top=`-${o}px`;else{let n=-1*parseInt(document.body.style.top,10);document.body.removeAttribute("data-md-scrolllock"),document.body.style.top="",n&&window.scrollTo(0,n)}})}Object.entries||(Object.entries=function(e){let t=[];for(let r of Object.keys(e))t.push([r,e[r]]);return t});Object.values||(Object.values=function(e){let t=[];for(let r of Object.keys(e))t.push(e[r]);return t});typeof Element!="undefined"&&(Element.prototype.scrollTo||(Element.prototype.scrollTo=function(e,t){typeof e=="object"?(this.scrollLeft=e.left,this.scrollTop=e.top):(this.scrollLeft=e,this.scrollTop=t)}),Element.prototype.replaceWith||(Element.prototype.replaceWith=function(...e){let t=this.parentNode;if(t){e.length===0&&t.removeChild(this);for(let r=e.length-1;r>=0;r--){let o=e[r];typeof o=="string"?o=document.createTextNode(o):o.parentNode&&o.parentNode.removeChild(o),r?t.insertBefore(this.previousSibling,o):t.replaceChild(o,this)}}}));function ys(){return location.protocol==="file:"?Tt(`${new URL("search/search_index.js",eo.base)}`).pipe(m(()=>__index),G(1)):je(new URL("search/search_index.json",eo.base))}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var ot=Go(),Ut=sn(),Lt=ln(Ut),to=an(),Oe=gn(),hr=Pt("(min-width: 960px)"),Mi=Pt("(min-width: 1220px)"),_i=mn(),eo=xe(),Ai=document.forms.namedItem("search")?ys():Ye,ro=new g;Zn({alert$:ro});var oo=new g;B("navigation.instant")&&oi({location$:Ut,viewport$:Oe,progress$:oo}).subscribe(ot);var Li;((Li=eo.version)==null?void 0:Li.provider)==="mike"&&ci({document$:ot});O(Ut,Lt).pipe(Ge(125)).subscribe(()=>{Je("drawer",!1),Je("search",!1)});to.pipe(b(({mode:e})=>e==="global")).subscribe(e=>{switch(e.type){case"p":case",":let t=fe("link[rel=prev]");typeof t!="undefined"&<(t);break;case"n":case".":let r=fe("link[rel=next]");typeof r!="undefined"&<(r);break;case"Enter":let o=Ie();o instanceof HTMLLabelElement&&o.click()}});wi({viewport$:Oe,document$:ot});Ti({document$:ot,tablet$:hr});Si({document$:ot});Oi({viewport$:Oe,tablet$:hr});var rt=Kn(Se("header"),{viewport$:Oe}),Ft=ot.pipe(m(()=>Se("main")),v(e=>Gn(e,{viewport$:Oe,header$:rt})),G(1)),xs=O(...ae("consent").map(e=>En(e,{target$:Lt})),...ae("dialog").map(e=>qn(e,{alert$:ro})),...ae("palette").map(e=>Jn(e)),...ae("progress").map(e=>Xn(e,{progress$:oo})),...ae("search").map(e=>ui(e,{index$:Ai,keyboard$:to})),...ae("source").map(e=>gi(e))),Es=C(()=>O(...ae("announce").map(e=>xn(e)),...ae("content").map(e=>zn(e,{viewport$:Oe,target$:Lt,print$:_i})),...ae("content").map(e=>B("search.highlight")?di(e,{index$:Ai,location$:Ut}):S),...ae("header").map(e=>Yn(e,{viewport$:Oe,header$:rt,main$:Ft})),...ae("header-title").map(e=>Bn(e,{viewport$:Oe,header$:rt})),...ae("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?Nr(Mi,()=>Zr(e,{viewport$:Oe,header$:rt,main$:Ft})):Nr(hr,()=>Zr(e,{viewport$:Oe,header$:rt,main$:Ft}))),...ae("tabs").map(e=>yi(e,{viewport$:Oe,header$:rt})),...ae("toc").map(e=>xi(e,{viewport$:Oe,header$:rt,main$:Ft,target$:Lt})),...ae("top").map(e=>Ei(e,{viewport$:Oe,header$:rt,main$:Ft,target$:Lt})))),Ci=ot.pipe(v(()=>Es),Re(xs),G(1));Ci.subscribe();window.document$=ot;window.location$=Ut;window.target$=Lt;window.keyboard$=to;window.viewport$=Oe;window.tablet$=hr;window.screen$=Mi;window.print$=_i;window.alert$=ro;window.progress$=oo;window.component$=Ci;})(); +//# sourceMappingURL=bundle.83f73b43.min.js.map + diff --git a/assets/javascripts/bundle.83f73b43.min.js.map b/assets/javascripts/bundle.83f73b43.min.js.map new file mode 100644 index 0000000000..fe920b7d6e --- /dev/null +++ b/assets/javascripts/bundle.83f73b43.min.js.map @@ -0,0 +1,7 @@ +{ + "version": 3, + "sources": ["node_modules/focus-visible/dist/focus-visible.js", "node_modules/escape-html/index.js", "node_modules/clipboard/dist/clipboard.js", "src/templates/assets/javascripts/bundle.ts", "node_modules/tslib/tslib.es6.mjs", "node_modules/rxjs/src/internal/util/isFunction.ts", "node_modules/rxjs/src/internal/util/createErrorClass.ts", "node_modules/rxjs/src/internal/util/UnsubscriptionError.ts", "node_modules/rxjs/src/internal/util/arrRemove.ts", "node_modules/rxjs/src/internal/Subscription.ts", "node_modules/rxjs/src/internal/config.ts", "node_modules/rxjs/src/internal/scheduler/timeoutProvider.ts", "node_modules/rxjs/src/internal/util/reportUnhandledError.ts", "node_modules/rxjs/src/internal/util/noop.ts", "node_modules/rxjs/src/internal/NotificationFactories.ts", "node_modules/rxjs/src/internal/util/errorContext.ts", "node_modules/rxjs/src/internal/Subscriber.ts", "node_modules/rxjs/src/internal/symbol/observable.ts", "node_modules/rxjs/src/internal/util/identity.ts", "node_modules/rxjs/src/internal/util/pipe.ts", "node_modules/rxjs/src/internal/Observable.ts", "node_modules/rxjs/src/internal/util/lift.ts", "node_modules/rxjs/src/internal/operators/OperatorSubscriber.ts", "node_modules/rxjs/src/internal/scheduler/animationFrameProvider.ts", "node_modules/rxjs/src/internal/util/ObjectUnsubscribedError.ts", "node_modules/rxjs/src/internal/Subject.ts", "node_modules/rxjs/src/internal/BehaviorSubject.ts", "node_modules/rxjs/src/internal/scheduler/dateTimestampProvider.ts", "node_modules/rxjs/src/internal/ReplaySubject.ts", "node_modules/rxjs/src/internal/scheduler/Action.ts", "node_modules/rxjs/src/internal/scheduler/intervalProvider.ts", "node_modules/rxjs/src/internal/scheduler/AsyncAction.ts", "node_modules/rxjs/src/internal/Scheduler.ts", "node_modules/rxjs/src/internal/scheduler/AsyncScheduler.ts", "node_modules/rxjs/src/internal/scheduler/async.ts", "node_modules/rxjs/src/internal/scheduler/QueueAction.ts", "node_modules/rxjs/src/internal/scheduler/QueueScheduler.ts", "node_modules/rxjs/src/internal/scheduler/queue.ts", "node_modules/rxjs/src/internal/scheduler/AnimationFrameAction.ts", "node_modules/rxjs/src/internal/scheduler/AnimationFrameScheduler.ts", "node_modules/rxjs/src/internal/scheduler/animationFrame.ts", "node_modules/rxjs/src/internal/observable/empty.ts", "node_modules/rxjs/src/internal/util/isScheduler.ts", "node_modules/rxjs/src/internal/util/args.ts", "node_modules/rxjs/src/internal/util/isArrayLike.ts", "node_modules/rxjs/src/internal/util/isPromise.ts", "node_modules/rxjs/src/internal/util/isInteropObservable.ts", "node_modules/rxjs/src/internal/util/isAsyncIterable.ts", "node_modules/rxjs/src/internal/util/throwUnobservableError.ts", "node_modules/rxjs/src/internal/symbol/iterator.ts", "node_modules/rxjs/src/internal/util/isIterable.ts", "node_modules/rxjs/src/internal/util/isReadableStreamLike.ts", "node_modules/rxjs/src/internal/observable/innerFrom.ts", "node_modules/rxjs/src/internal/util/executeSchedule.ts", "node_modules/rxjs/src/internal/operators/observeOn.ts", "node_modules/rxjs/src/internal/operators/subscribeOn.ts", "node_modules/rxjs/src/internal/scheduled/scheduleObservable.ts", "node_modules/rxjs/src/internal/scheduled/schedulePromise.ts", "node_modules/rxjs/src/internal/scheduled/scheduleArray.ts", "node_modules/rxjs/src/internal/scheduled/scheduleIterable.ts", "node_modules/rxjs/src/internal/scheduled/scheduleAsyncIterable.ts", "node_modules/rxjs/src/internal/scheduled/scheduleReadableStreamLike.ts", "node_modules/rxjs/src/internal/scheduled/scheduled.ts", "node_modules/rxjs/src/internal/observable/from.ts", "node_modules/rxjs/src/internal/observable/of.ts", "node_modules/rxjs/src/internal/observable/throwError.ts", "node_modules/rxjs/src/internal/util/EmptyError.ts", "node_modules/rxjs/src/internal/util/isDate.ts", "node_modules/rxjs/src/internal/operators/map.ts", "node_modules/rxjs/src/internal/util/mapOneOrManyArgs.ts", "node_modules/rxjs/src/internal/util/argsArgArrayOrObject.ts", "node_modules/rxjs/src/internal/util/createObject.ts", "node_modules/rxjs/src/internal/observable/combineLatest.ts", "node_modules/rxjs/src/internal/operators/mergeInternals.ts", "node_modules/rxjs/src/internal/operators/mergeMap.ts", "node_modules/rxjs/src/internal/operators/mergeAll.ts", "node_modules/rxjs/src/internal/operators/concatAll.ts", "node_modules/rxjs/src/internal/observable/concat.ts", "node_modules/rxjs/src/internal/observable/defer.ts", "node_modules/rxjs/src/internal/observable/fromEvent.ts", "node_modules/rxjs/src/internal/observable/fromEventPattern.ts", "node_modules/rxjs/src/internal/observable/timer.ts", "node_modules/rxjs/src/internal/observable/merge.ts", "node_modules/rxjs/src/internal/observable/never.ts", "node_modules/rxjs/src/internal/util/argsOrArgArray.ts", "node_modules/rxjs/src/internal/operators/filter.ts", "node_modules/rxjs/src/internal/observable/zip.ts", "node_modules/rxjs/src/internal/operators/audit.ts", "node_modules/rxjs/src/internal/operators/auditTime.ts", "node_modules/rxjs/src/internal/operators/bufferCount.ts", "node_modules/rxjs/src/internal/operators/catchError.ts", "node_modules/rxjs/src/internal/operators/scanInternals.ts", "node_modules/rxjs/src/internal/operators/combineLatest.ts", "node_modules/rxjs/src/internal/operators/combineLatestWith.ts", "node_modules/rxjs/src/internal/operators/debounce.ts", "node_modules/rxjs/src/internal/operators/debounceTime.ts", "node_modules/rxjs/src/internal/operators/defaultIfEmpty.ts", "node_modules/rxjs/src/internal/operators/take.ts", "node_modules/rxjs/src/internal/operators/ignoreElements.ts", "node_modules/rxjs/src/internal/operators/mapTo.ts", "node_modules/rxjs/src/internal/operators/delayWhen.ts", "node_modules/rxjs/src/internal/operators/delay.ts", "node_modules/rxjs/src/internal/operators/distinctUntilChanged.ts", "node_modules/rxjs/src/internal/operators/distinctUntilKeyChanged.ts", "node_modules/rxjs/src/internal/operators/throwIfEmpty.ts", "node_modules/rxjs/src/internal/operators/endWith.ts", "node_modules/rxjs/src/internal/operators/finalize.ts", "node_modules/rxjs/src/internal/operators/first.ts", "node_modules/rxjs/src/internal/operators/takeLast.ts", "node_modules/rxjs/src/internal/operators/merge.ts", "node_modules/rxjs/src/internal/operators/mergeWith.ts", "node_modules/rxjs/src/internal/operators/repeat.ts", "node_modules/rxjs/src/internal/operators/scan.ts", "node_modules/rxjs/src/internal/operators/share.ts", "node_modules/rxjs/src/internal/operators/shareReplay.ts", "node_modules/rxjs/src/internal/operators/skip.ts", "node_modules/rxjs/src/internal/operators/skipUntil.ts", "node_modules/rxjs/src/internal/operators/startWith.ts", "node_modules/rxjs/src/internal/operators/switchMap.ts", "node_modules/rxjs/src/internal/operators/takeUntil.ts", "node_modules/rxjs/src/internal/operators/takeWhile.ts", "node_modules/rxjs/src/internal/operators/tap.ts", "node_modules/rxjs/src/internal/operators/throttle.ts", "node_modules/rxjs/src/internal/operators/throttleTime.ts", "node_modules/rxjs/src/internal/operators/withLatestFrom.ts", "node_modules/rxjs/src/internal/operators/zip.ts", "node_modules/rxjs/src/internal/operators/zipWith.ts", "src/templates/assets/javascripts/browser/document/index.ts", "src/templates/assets/javascripts/browser/element/_/index.ts", "src/templates/assets/javascripts/browser/element/focus/index.ts", "src/templates/assets/javascripts/browser/element/hover/index.ts", "src/templates/assets/javascripts/utilities/h/index.ts", "src/templates/assets/javascripts/utilities/round/index.ts", "src/templates/assets/javascripts/browser/script/index.ts", "src/templates/assets/javascripts/browser/element/size/_/index.ts", "src/templates/assets/javascripts/browser/element/size/content/index.ts", "src/templates/assets/javascripts/browser/element/offset/_/index.ts", "src/templates/assets/javascripts/browser/element/offset/content/index.ts", "src/templates/assets/javascripts/browser/element/visibility/index.ts", "src/templates/assets/javascripts/browser/toggle/index.ts", "src/templates/assets/javascripts/browser/keyboard/index.ts", "src/templates/assets/javascripts/browser/location/_/index.ts", "src/templates/assets/javascripts/browser/location/hash/index.ts", "src/templates/assets/javascripts/browser/media/index.ts", "src/templates/assets/javascripts/browser/request/index.ts", "src/templates/assets/javascripts/browser/viewport/offset/index.ts", "src/templates/assets/javascripts/browser/viewport/size/index.ts", "src/templates/assets/javascripts/browser/viewport/_/index.ts", "src/templates/assets/javascripts/browser/viewport/at/index.ts", "src/templates/assets/javascripts/browser/worker/index.ts", "src/templates/assets/javascripts/_/index.ts", "src/templates/assets/javascripts/components/_/index.ts", "src/templates/assets/javascripts/components/announce/index.ts", "src/templates/assets/javascripts/components/consent/index.ts", "src/templates/assets/javascripts/templates/tooltip/index.tsx", "src/templates/assets/javascripts/templates/annotation/index.tsx", "src/templates/assets/javascripts/templates/clipboard/index.tsx", "src/templates/assets/javascripts/templates/search/index.tsx", "src/templates/assets/javascripts/templates/source/index.tsx", "src/templates/assets/javascripts/templates/tabbed/index.tsx", "src/templates/assets/javascripts/templates/table/index.tsx", "src/templates/assets/javascripts/templates/version/index.tsx", "src/templates/assets/javascripts/components/tooltip2/index.ts", "src/templates/assets/javascripts/components/content/annotation/_/index.ts", "src/templates/assets/javascripts/components/content/annotation/list/index.ts", "src/templates/assets/javascripts/components/content/annotation/block/index.ts", "src/templates/assets/javascripts/components/content/code/_/index.ts", "src/templates/assets/javascripts/components/content/details/index.ts", "src/templates/assets/javascripts/components/content/mermaid/index.css", "src/templates/assets/javascripts/components/content/mermaid/index.ts", "src/templates/assets/javascripts/components/content/table/index.ts", "src/templates/assets/javascripts/components/content/tabs/index.ts", "src/templates/assets/javascripts/components/content/_/index.ts", "src/templates/assets/javascripts/components/dialog/index.ts", "src/templates/assets/javascripts/components/tooltip/index.ts", "src/templates/assets/javascripts/components/header/_/index.ts", "src/templates/assets/javascripts/components/header/title/index.ts", "src/templates/assets/javascripts/components/main/index.ts", "src/templates/assets/javascripts/components/palette/index.ts", "src/templates/assets/javascripts/components/progress/index.ts", "src/templates/assets/javascripts/integrations/clipboard/index.ts", "src/templates/assets/javascripts/integrations/sitemap/index.ts", "src/templates/assets/javascripts/integrations/instant/index.ts", "src/templates/assets/javascripts/integrations/search/highlighter/index.ts", "src/templates/assets/javascripts/integrations/search/worker/message/index.ts", "src/templates/assets/javascripts/integrations/search/worker/_/index.ts", "src/templates/assets/javascripts/integrations/version/findurl/index.ts", "src/templates/assets/javascripts/integrations/version/index.ts", "src/templates/assets/javascripts/components/search/query/index.ts", "src/templates/assets/javascripts/components/search/result/index.ts", "src/templates/assets/javascripts/components/search/share/index.ts", "src/templates/assets/javascripts/components/search/suggest/index.ts", "src/templates/assets/javascripts/components/search/_/index.ts", "src/templates/assets/javascripts/components/search/highlight/index.ts", "src/templates/assets/javascripts/components/sidebar/index.ts", "src/templates/assets/javascripts/components/source/facts/github/index.ts", "src/templates/assets/javascripts/components/source/facts/gitlab/index.ts", "src/templates/assets/javascripts/components/source/facts/_/index.ts", "src/templates/assets/javascripts/components/source/_/index.ts", "src/templates/assets/javascripts/components/tabs/index.ts", "src/templates/assets/javascripts/components/toc/index.ts", "src/templates/assets/javascripts/components/top/index.ts", "src/templates/assets/javascripts/patches/ellipsis/index.ts", "src/templates/assets/javascripts/patches/indeterminate/index.ts", "src/templates/assets/javascripts/patches/scrollfix/index.ts", "src/templates/assets/javascripts/patches/scrolllock/index.ts", "src/templates/assets/javascripts/polyfills/index.ts"], + "sourcesContent": ["(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (factory());\n}(this, (function () { 'use strict';\n\n /**\n * Applies the :focus-visible polyfill at the given scope.\n * A scope in this case is either the top-level Document or a Shadow Root.\n *\n * @param {(Document|ShadowRoot)} scope\n * @see https://github.com/WICG/focus-visible\n */\n function applyFocusVisiblePolyfill(scope) {\n var hadKeyboardEvent = true;\n var hadFocusVisibleRecently = false;\n var hadFocusVisibleRecentlyTimeout = null;\n\n var inputTypesAllowlist = {\n text: true,\n search: true,\n url: true,\n tel: true,\n email: true,\n password: true,\n number: true,\n date: true,\n month: true,\n week: true,\n time: true,\n datetime: true,\n 'datetime-local': true\n };\n\n /**\n * Helper function for legacy browsers and iframes which sometimes focus\n * elements like document, body, and non-interactive SVG.\n * @param {Element} el\n */\n function isValidFocusTarget(el) {\n if (\n el &&\n el !== document &&\n el.nodeName !== 'HTML' &&\n el.nodeName !== 'BODY' &&\n 'classList' in el &&\n 'contains' in el.classList\n ) {\n return true;\n }\n return false;\n }\n\n /**\n * Computes whether the given element should automatically trigger the\n * `focus-visible` class being added, i.e. whether it should always match\n * `:focus-visible` when focused.\n * @param {Element} el\n * @return {boolean}\n */\n function focusTriggersKeyboardModality(el) {\n var type = el.type;\n var tagName = el.tagName;\n\n if (tagName === 'INPUT' && inputTypesAllowlist[type] && !el.readOnly) {\n return true;\n }\n\n if (tagName === 'TEXTAREA' && !el.readOnly) {\n return true;\n }\n\n if (el.isContentEditable) {\n return true;\n }\n\n return false;\n }\n\n /**\n * Add the `focus-visible` class to the given element if it was not added by\n * the author.\n * @param {Element} el\n */\n function addFocusVisibleClass(el) {\n if (el.classList.contains('focus-visible')) {\n return;\n }\n el.classList.add('focus-visible');\n el.setAttribute('data-focus-visible-added', '');\n }\n\n /**\n * Remove the `focus-visible` class from the given element if it was not\n * originally added by the author.\n * @param {Element} el\n */\n function removeFocusVisibleClass(el) {\n if (!el.hasAttribute('data-focus-visible-added')) {\n return;\n }\n el.classList.remove('focus-visible');\n el.removeAttribute('data-focus-visible-added');\n }\n\n /**\n * If the most recent user interaction was via the keyboard;\n * and the key press did not include a meta, alt/option, or control key;\n * then the modality is keyboard. Otherwise, the modality is not keyboard.\n * Apply `focus-visible` to any current active element and keep track\n * of our keyboard modality state with `hadKeyboardEvent`.\n * @param {KeyboardEvent} e\n */\n function onKeyDown(e) {\n if (e.metaKey || e.altKey || e.ctrlKey) {\n return;\n }\n\n if (isValidFocusTarget(scope.activeElement)) {\n addFocusVisibleClass(scope.activeElement);\n }\n\n hadKeyboardEvent = true;\n }\n\n /**\n * If at any point a user clicks with a pointing device, ensure that we change\n * the modality away from keyboard.\n * This avoids the situation where a user presses a key on an already focused\n * element, and then clicks on a different element, focusing it with a\n * pointing device, while we still think we're in keyboard modality.\n * @param {Event} e\n */\n function onPointerDown(e) {\n hadKeyboardEvent = false;\n }\n\n /**\n * On `focus`, add the `focus-visible` class to the target if:\n * - the target received focus as a result of keyboard navigation, or\n * - the event target is an element that will likely require interaction\n * via the keyboard (e.g. a text box)\n * @param {Event} e\n */\n function onFocus(e) {\n // Prevent IE from focusing the document or HTML element.\n if (!isValidFocusTarget(e.target)) {\n return;\n }\n\n if (hadKeyboardEvent || focusTriggersKeyboardModality(e.target)) {\n addFocusVisibleClass(e.target);\n }\n }\n\n /**\n * On `blur`, remove the `focus-visible` class from the target.\n * @param {Event} e\n */\n function onBlur(e) {\n if (!isValidFocusTarget(e.target)) {\n return;\n }\n\n if (\n e.target.classList.contains('focus-visible') ||\n e.target.hasAttribute('data-focus-visible-added')\n ) {\n // To detect a tab/window switch, we look for a blur event followed\n // rapidly by a visibility change.\n // If we don't see a visibility change within 100ms, it's probably a\n // regular focus change.\n hadFocusVisibleRecently = true;\n window.clearTimeout(hadFocusVisibleRecentlyTimeout);\n hadFocusVisibleRecentlyTimeout = window.setTimeout(function() {\n hadFocusVisibleRecently = false;\n }, 100);\n removeFocusVisibleClass(e.target);\n }\n }\n\n /**\n * If the user changes tabs, keep track of whether or not the previously\n * focused element had .focus-visible.\n * @param {Event} e\n */\n function onVisibilityChange(e) {\n if (document.visibilityState === 'hidden') {\n // If the tab becomes active again, the browser will handle calling focus\n // on the element (Safari actually calls it twice).\n // If this tab change caused a blur on an element with focus-visible,\n // re-apply the class when the user switches back to the tab.\n if (hadFocusVisibleRecently) {\n hadKeyboardEvent = true;\n }\n addInitialPointerMoveListeners();\n }\n }\n\n /**\n * Add a group of listeners to detect usage of any pointing devices.\n * These listeners will be added when the polyfill first loads, and anytime\n * the window is blurred, so that they are active when the window regains\n * focus.\n */\n function addInitialPointerMoveListeners() {\n document.addEventListener('mousemove', onInitialPointerMove);\n document.addEventListener('mousedown', onInitialPointerMove);\n document.addEventListener('mouseup', onInitialPointerMove);\n document.addEventListener('pointermove', onInitialPointerMove);\n document.addEventListener('pointerdown', onInitialPointerMove);\n document.addEventListener('pointerup', onInitialPointerMove);\n document.addEventListener('touchmove', onInitialPointerMove);\n document.addEventListener('touchstart', onInitialPointerMove);\n document.addEventListener('touchend', onInitialPointerMove);\n }\n\n function removeInitialPointerMoveListeners() {\n document.removeEventListener('mousemove', onInitialPointerMove);\n document.removeEventListener('mousedown', onInitialPointerMove);\n document.removeEventListener('mouseup', onInitialPointerMove);\n document.removeEventListener('pointermove', onInitialPointerMove);\n document.removeEventListener('pointerdown', onInitialPointerMove);\n document.removeEventListener('pointerup', onInitialPointerMove);\n document.removeEventListener('touchmove', onInitialPointerMove);\n document.removeEventListener('touchstart', onInitialPointerMove);\n document.removeEventListener('touchend', onInitialPointerMove);\n }\n\n /**\n * When the polfyill first loads, assume the user is in keyboard modality.\n * If any event is received from a pointing device (e.g. mouse, pointer,\n * touch), turn off keyboard modality.\n * This accounts for situations where focus enters the page from the URL bar.\n * @param {Event} e\n */\n function onInitialPointerMove(e) {\n // Work around a Safari quirk that fires a mousemove on whenever the\n // window blurs, even if you're tabbing out of the page. \u00AF\\_(\u30C4)_/\u00AF\n if (e.target.nodeName && e.target.nodeName.toLowerCase() === 'html') {\n return;\n }\n\n hadKeyboardEvent = false;\n removeInitialPointerMoveListeners();\n }\n\n // For some kinds of state, we are interested in changes at the global scope\n // only. For example, global pointer input, global key presses and global\n // visibility change should affect the state at every scope:\n document.addEventListener('keydown', onKeyDown, true);\n document.addEventListener('mousedown', onPointerDown, true);\n document.addEventListener('pointerdown', onPointerDown, true);\n document.addEventListener('touchstart', onPointerDown, true);\n document.addEventListener('visibilitychange', onVisibilityChange, true);\n\n addInitialPointerMoveListeners();\n\n // For focus and blur, we specifically care about state changes in the local\n // scope. This is because focus / blur events that originate from within a\n // shadow root are not re-dispatched from the host element if it was already\n // the active element in its own scope:\n scope.addEventListener('focus', onFocus, true);\n scope.addEventListener('blur', onBlur, true);\n\n // We detect that a node is a ShadowRoot by ensuring that it is a\n // DocumentFragment and also has a host property. This check covers native\n // implementation and polyfill implementation transparently. If we only cared\n // about the native implementation, we could just check if the scope was\n // an instance of a ShadowRoot.\n if (scope.nodeType === Node.DOCUMENT_FRAGMENT_NODE && scope.host) {\n // Since a ShadowRoot is a special kind of DocumentFragment, it does not\n // have a root element to add a class to. So, we add this attribute to the\n // host element instead:\n scope.host.setAttribute('data-js-focus-visible', '');\n } else if (scope.nodeType === Node.DOCUMENT_NODE) {\n document.documentElement.classList.add('js-focus-visible');\n document.documentElement.setAttribute('data-js-focus-visible', '');\n }\n }\n\n // It is important to wrap all references to global window and document in\n // these checks to support server-side rendering use cases\n // @see https://github.com/WICG/focus-visible/issues/199\n if (typeof window !== 'undefined' && typeof document !== 'undefined') {\n // Make the polyfill helper globally available. This can be used as a signal\n // to interested libraries that wish to coordinate with the polyfill for e.g.,\n // applying the polyfill to a shadow root:\n window.applyFocusVisiblePolyfill = applyFocusVisiblePolyfill;\n\n // Notify interested libraries of the polyfill's presence, in case the\n // polyfill was loaded lazily:\n var event;\n\n try {\n event = new CustomEvent('focus-visible-polyfill-ready');\n } catch (error) {\n // IE11 does not support using CustomEvent as a constructor directly:\n event = document.createEvent('CustomEvent');\n event.initCustomEvent('focus-visible-polyfill-ready', false, false, {});\n }\n\n window.dispatchEvent(event);\n }\n\n if (typeof document !== 'undefined') {\n // Apply the polyfill to the global document, so that no JavaScript\n // coordination is required to use the polyfill in the top-level document:\n applyFocusVisiblePolyfill(document);\n }\n\n})));\n", "/*!\n * escape-html\n * Copyright(c) 2012-2013 TJ Holowaychuk\n * Copyright(c) 2015 Andreas Lubbe\n * Copyright(c) 2015 Tiancheng \"Timothy\" Gu\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module variables.\n * @private\n */\n\nvar matchHtmlRegExp = /[\"'&<>]/;\n\n/**\n * Module exports.\n * @public\n */\n\nmodule.exports = escapeHtml;\n\n/**\n * Escape special characters in the given string of html.\n *\n * @param {string} string The string to escape for inserting into HTML\n * @return {string}\n * @public\n */\n\nfunction escapeHtml(string) {\n var str = '' + string;\n var match = matchHtmlRegExp.exec(str);\n\n if (!match) {\n return str;\n }\n\n var escape;\n var html = '';\n var index = 0;\n var lastIndex = 0;\n\n for (index = match.index; index < str.length; index++) {\n switch (str.charCodeAt(index)) {\n case 34: // \"\n escape = '"';\n break;\n case 38: // &\n escape = '&';\n break;\n case 39: // '\n escape = ''';\n break;\n case 60: // <\n escape = '<';\n break;\n case 62: // >\n escape = '>';\n break;\n default:\n continue;\n }\n\n if (lastIndex !== index) {\n html += str.substring(lastIndex, index);\n }\n\n lastIndex = index + 1;\n html += escape;\n }\n\n return lastIndex !== index\n ? html + str.substring(lastIndex, index)\n : html;\n}\n", "/*!\n * clipboard.js v2.0.11\n * https://clipboardjs.com/\n *\n * Licensed MIT \u00A9 Zeno Rocha\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ClipboardJS\"] = factory();\n\telse\n\t\troot[\"ClipboardJS\"] = factory();\n})(this, function() {\nreturn /******/ (function() { // webpackBootstrap\n/******/ \tvar __webpack_modules__ = ({\n\n/***/ 686:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n \"default\": function() { return /* binding */ clipboard; }\n});\n\n// EXTERNAL MODULE: ./node_modules/tiny-emitter/index.js\nvar tiny_emitter = __webpack_require__(279);\nvar tiny_emitter_default = /*#__PURE__*/__webpack_require__.n(tiny_emitter);\n// EXTERNAL MODULE: ./node_modules/good-listener/src/listen.js\nvar listen = __webpack_require__(370);\nvar listen_default = /*#__PURE__*/__webpack_require__.n(listen);\n// EXTERNAL MODULE: ./node_modules/select/src/select.js\nvar src_select = __webpack_require__(817);\nvar select_default = /*#__PURE__*/__webpack_require__.n(src_select);\n;// CONCATENATED MODULE: ./src/common/command.js\n/**\n * Executes a given operation type.\n * @param {String} type\n * @return {Boolean}\n */\nfunction command(type) {\n try {\n return document.execCommand(type);\n } catch (err) {\n return false;\n }\n}\n;// CONCATENATED MODULE: ./src/actions/cut.js\n\n\n/**\n * Cut action wrapper.\n * @param {String|HTMLElement} target\n * @return {String}\n */\n\nvar ClipboardActionCut = function ClipboardActionCut(target) {\n var selectedText = select_default()(target);\n command('cut');\n return selectedText;\n};\n\n/* harmony default export */ var actions_cut = (ClipboardActionCut);\n;// CONCATENATED MODULE: ./src/common/create-fake-element.js\n/**\n * Creates a fake textarea element with a value.\n * @param {String} value\n * @return {HTMLElement}\n */\nfunction createFakeElement(value) {\n var isRTL = document.documentElement.getAttribute('dir') === 'rtl';\n var fakeElement = document.createElement('textarea'); // Prevent zooming on iOS\n\n fakeElement.style.fontSize = '12pt'; // Reset box model\n\n fakeElement.style.border = '0';\n fakeElement.style.padding = '0';\n fakeElement.style.margin = '0'; // Move element out of screen horizontally\n\n fakeElement.style.position = 'absolute';\n fakeElement.style[isRTL ? 'right' : 'left'] = '-9999px'; // Move element to the same position vertically\n\n var yPosition = window.pageYOffset || document.documentElement.scrollTop;\n fakeElement.style.top = \"\".concat(yPosition, \"px\");\n fakeElement.setAttribute('readonly', '');\n fakeElement.value = value;\n return fakeElement;\n}\n;// CONCATENATED MODULE: ./src/actions/copy.js\n\n\n\n/**\n * Create fake copy action wrapper using a fake element.\n * @param {String} target\n * @param {Object} options\n * @return {String}\n */\n\nvar fakeCopyAction = function fakeCopyAction(value, options) {\n var fakeElement = createFakeElement(value);\n options.container.appendChild(fakeElement);\n var selectedText = select_default()(fakeElement);\n command('copy');\n fakeElement.remove();\n return selectedText;\n};\n/**\n * Copy action wrapper.\n * @param {String|HTMLElement} target\n * @param {Object} options\n * @return {String}\n */\n\n\nvar ClipboardActionCopy = function ClipboardActionCopy(target) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n container: document.body\n };\n var selectedText = '';\n\n if (typeof target === 'string') {\n selectedText = fakeCopyAction(target, options);\n } else if (target instanceof HTMLInputElement && !['text', 'search', 'url', 'tel', 'password'].includes(target === null || target === void 0 ? void 0 : target.type)) {\n // If input type doesn't support `setSelectionRange`. Simulate it. https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange\n selectedText = fakeCopyAction(target.value, options);\n } else {\n selectedText = select_default()(target);\n command('copy');\n }\n\n return selectedText;\n};\n\n/* harmony default export */ var actions_copy = (ClipboardActionCopy);\n;// CONCATENATED MODULE: ./src/actions/default.js\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n\n\n/**\n * Inner function which performs selection from either `text` or `target`\n * properties and then executes copy or cut operations.\n * @param {Object} options\n */\n\nvar ClipboardActionDefault = function ClipboardActionDefault() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n // Defines base properties passed from constructor.\n var _options$action = options.action,\n action = _options$action === void 0 ? 'copy' : _options$action,\n container = options.container,\n target = options.target,\n text = options.text; // Sets the `action` to be performed which can be either 'copy' or 'cut'.\n\n if (action !== 'copy' && action !== 'cut') {\n throw new Error('Invalid \"action\" value, use either \"copy\" or \"cut\"');\n } // Sets the `target` property using an element that will be have its content copied.\n\n\n if (target !== undefined) {\n if (target && _typeof(target) === 'object' && target.nodeType === 1) {\n if (action === 'copy' && target.hasAttribute('disabled')) {\n throw new Error('Invalid \"target\" attribute. Please use \"readonly\" instead of \"disabled\" attribute');\n }\n\n if (action === 'cut' && (target.hasAttribute('readonly') || target.hasAttribute('disabled'))) {\n throw new Error('Invalid \"target\" attribute. You can\\'t cut text from elements with \"readonly\" or \"disabled\" attributes');\n }\n } else {\n throw new Error('Invalid \"target\" value, use a valid Element');\n }\n } // Define selection strategy based on `text` property.\n\n\n if (text) {\n return actions_copy(text, {\n container: container\n });\n } // Defines which selection strategy based on `target` property.\n\n\n if (target) {\n return action === 'cut' ? actions_cut(target) : actions_copy(target, {\n container: container\n });\n }\n};\n\n/* harmony default export */ var actions_default = (ClipboardActionDefault);\n;// CONCATENATED MODULE: ./src/clipboard.js\nfunction clipboard_typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { clipboard_typeof = function _typeof(obj) { return typeof obj; }; } else { clipboard_typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return clipboard_typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (clipboard_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\n\n/**\n * Helper function to retrieve attribute value.\n * @param {String} suffix\n * @param {Element} element\n */\n\nfunction getAttributeValue(suffix, element) {\n var attribute = \"data-clipboard-\".concat(suffix);\n\n if (!element.hasAttribute(attribute)) {\n return;\n }\n\n return element.getAttribute(attribute);\n}\n/**\n * Base class which takes one or more elements, adds event listeners to them,\n * and instantiates a new `ClipboardAction` on each click.\n */\n\n\nvar Clipboard = /*#__PURE__*/function (_Emitter) {\n _inherits(Clipboard, _Emitter);\n\n var _super = _createSuper(Clipboard);\n\n /**\n * @param {String|HTMLElement|HTMLCollection|NodeList} trigger\n * @param {Object} options\n */\n function Clipboard(trigger, options) {\n var _this;\n\n _classCallCheck(this, Clipboard);\n\n _this = _super.call(this);\n\n _this.resolveOptions(options);\n\n _this.listenClick(trigger);\n\n return _this;\n }\n /**\n * Defines if attributes would be resolved using internal setter functions\n * or custom functions that were passed in the constructor.\n * @param {Object} options\n */\n\n\n _createClass(Clipboard, [{\n key: \"resolveOptions\",\n value: function resolveOptions() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n this.action = typeof options.action === 'function' ? options.action : this.defaultAction;\n this.target = typeof options.target === 'function' ? options.target : this.defaultTarget;\n this.text = typeof options.text === 'function' ? options.text : this.defaultText;\n this.container = clipboard_typeof(options.container) === 'object' ? options.container : document.body;\n }\n /**\n * Adds a click event listener to the passed trigger.\n * @param {String|HTMLElement|HTMLCollection|NodeList} trigger\n */\n\n }, {\n key: \"listenClick\",\n value: function listenClick(trigger) {\n var _this2 = this;\n\n this.listener = listen_default()(trigger, 'click', function (e) {\n return _this2.onClick(e);\n });\n }\n /**\n * Defines a new `ClipboardAction` on each click event.\n * @param {Event} e\n */\n\n }, {\n key: \"onClick\",\n value: function onClick(e) {\n var trigger = e.delegateTarget || e.currentTarget;\n var action = this.action(trigger) || 'copy';\n var text = actions_default({\n action: action,\n container: this.container,\n target: this.target(trigger),\n text: this.text(trigger)\n }); // Fires an event based on the copy operation result.\n\n this.emit(text ? 'success' : 'error', {\n action: action,\n text: text,\n trigger: trigger,\n clearSelection: function clearSelection() {\n if (trigger) {\n trigger.focus();\n }\n\n window.getSelection().removeAllRanges();\n }\n });\n }\n /**\n * Default `action` lookup function.\n * @param {Element} trigger\n */\n\n }, {\n key: \"defaultAction\",\n value: function defaultAction(trigger) {\n return getAttributeValue('action', trigger);\n }\n /**\n * Default `target` lookup function.\n * @param {Element} trigger\n */\n\n }, {\n key: \"defaultTarget\",\n value: function defaultTarget(trigger) {\n var selector = getAttributeValue('target', trigger);\n\n if (selector) {\n return document.querySelector(selector);\n }\n }\n /**\n * Allow fire programmatically a copy action\n * @param {String|HTMLElement} target\n * @param {Object} options\n * @returns Text copied.\n */\n\n }, {\n key: \"defaultText\",\n\n /**\n * Default `text` lookup function.\n * @param {Element} trigger\n */\n value: function defaultText(trigger) {\n return getAttributeValue('text', trigger);\n }\n /**\n * Destroy lifecycle.\n */\n\n }, {\n key: \"destroy\",\n value: function destroy() {\n this.listener.destroy();\n }\n }], [{\n key: \"copy\",\n value: function copy(target) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n container: document.body\n };\n return actions_copy(target, options);\n }\n /**\n * Allow fire programmatically a cut action\n * @param {String|HTMLElement} target\n * @returns Text cutted.\n */\n\n }, {\n key: \"cut\",\n value: function cut(target) {\n return actions_cut(target);\n }\n /**\n * Returns the support of the given action, or all actions if no action is\n * given.\n * @param {String} [action]\n */\n\n }, {\n key: \"isSupported\",\n value: function isSupported() {\n var action = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['copy', 'cut'];\n var actions = typeof action === 'string' ? [action] : action;\n var support = !!document.queryCommandSupported;\n actions.forEach(function (action) {\n support = support && !!document.queryCommandSupported(action);\n });\n return support;\n }\n }]);\n\n return Clipboard;\n}((tiny_emitter_default()));\n\n/* harmony default export */ var clipboard = (Clipboard);\n\n/***/ }),\n\n/***/ 828:\n/***/ (function(module) {\n\nvar DOCUMENT_NODE_TYPE = 9;\n\n/**\n * A polyfill for Element.matches()\n */\nif (typeof Element !== 'undefined' && !Element.prototype.matches) {\n var proto = Element.prototype;\n\n proto.matches = proto.matchesSelector ||\n proto.mozMatchesSelector ||\n proto.msMatchesSelector ||\n proto.oMatchesSelector ||\n proto.webkitMatchesSelector;\n}\n\n/**\n * Finds the closest parent that matches a selector.\n *\n * @param {Element} element\n * @param {String} selector\n * @return {Function}\n */\nfunction closest (element, selector) {\n while (element && element.nodeType !== DOCUMENT_NODE_TYPE) {\n if (typeof element.matches === 'function' &&\n element.matches(selector)) {\n return element;\n }\n element = element.parentNode;\n }\n}\n\nmodule.exports = closest;\n\n\n/***/ }),\n\n/***/ 438:\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\nvar closest = __webpack_require__(828);\n\n/**\n * Delegates event to a selector.\n *\n * @param {Element} element\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @param {Boolean} useCapture\n * @return {Object}\n */\nfunction _delegate(element, selector, type, callback, useCapture) {\n var listenerFn = listener.apply(this, arguments);\n\n element.addEventListener(type, listenerFn, useCapture);\n\n return {\n destroy: function() {\n element.removeEventListener(type, listenerFn, useCapture);\n }\n }\n}\n\n/**\n * Delegates event to a selector.\n *\n * @param {Element|String|Array} [elements]\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @param {Boolean} useCapture\n * @return {Object}\n */\nfunction delegate(elements, selector, type, callback, useCapture) {\n // Handle the regular Element usage\n if (typeof elements.addEventListener === 'function') {\n return _delegate.apply(null, arguments);\n }\n\n // Handle Element-less usage, it defaults to global delegation\n if (typeof type === 'function') {\n // Use `document` as the first parameter, then apply arguments\n // This is a short way to .unshift `arguments` without running into deoptimizations\n return _delegate.bind(null, document).apply(null, arguments);\n }\n\n // Handle Selector-based usage\n if (typeof elements === 'string') {\n elements = document.querySelectorAll(elements);\n }\n\n // Handle Array-like based usage\n return Array.prototype.map.call(elements, function (element) {\n return _delegate(element, selector, type, callback, useCapture);\n });\n}\n\n/**\n * Finds closest match and invokes callback.\n *\n * @param {Element} element\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @return {Function}\n */\nfunction listener(element, selector, type, callback) {\n return function(e) {\n e.delegateTarget = closest(e.target, selector);\n\n if (e.delegateTarget) {\n callback.call(element, e);\n }\n }\n}\n\nmodule.exports = delegate;\n\n\n/***/ }),\n\n/***/ 879:\n/***/ (function(__unused_webpack_module, exports) {\n\n/**\n * Check if argument is a HTML element.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.node = function(value) {\n return value !== undefined\n && value instanceof HTMLElement\n && value.nodeType === 1;\n};\n\n/**\n * Check if argument is a list of HTML elements.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.nodeList = function(value) {\n var type = Object.prototype.toString.call(value);\n\n return value !== undefined\n && (type === '[object NodeList]' || type === '[object HTMLCollection]')\n && ('length' in value)\n && (value.length === 0 || exports.node(value[0]));\n};\n\n/**\n * Check if argument is a string.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.string = function(value) {\n return typeof value === 'string'\n || value instanceof String;\n};\n\n/**\n * Check if argument is a function.\n *\n * @param {Object} value\n * @return {Boolean}\n */\nexports.fn = function(value) {\n var type = Object.prototype.toString.call(value);\n\n return type === '[object Function]';\n};\n\n\n/***/ }),\n\n/***/ 370:\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\nvar is = __webpack_require__(879);\nvar delegate = __webpack_require__(438);\n\n/**\n * Validates all params and calls the right\n * listener function based on its target type.\n *\n * @param {String|HTMLElement|HTMLCollection|NodeList} target\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listen(target, type, callback) {\n if (!target && !type && !callback) {\n throw new Error('Missing required arguments');\n }\n\n if (!is.string(type)) {\n throw new TypeError('Second argument must be a String');\n }\n\n if (!is.fn(callback)) {\n throw new TypeError('Third argument must be a Function');\n }\n\n if (is.node(target)) {\n return listenNode(target, type, callback);\n }\n else if (is.nodeList(target)) {\n return listenNodeList(target, type, callback);\n }\n else if (is.string(target)) {\n return listenSelector(target, type, callback);\n }\n else {\n throw new TypeError('First argument must be a String, HTMLElement, HTMLCollection, or NodeList');\n }\n}\n\n/**\n * Adds an event listener to a HTML element\n * and returns a remove listener function.\n *\n * @param {HTMLElement} node\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenNode(node, type, callback) {\n node.addEventListener(type, callback);\n\n return {\n destroy: function() {\n node.removeEventListener(type, callback);\n }\n }\n}\n\n/**\n * Add an event listener to a list of HTML elements\n * and returns a remove listener function.\n *\n * @param {NodeList|HTMLCollection} nodeList\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenNodeList(nodeList, type, callback) {\n Array.prototype.forEach.call(nodeList, function(node) {\n node.addEventListener(type, callback);\n });\n\n return {\n destroy: function() {\n Array.prototype.forEach.call(nodeList, function(node) {\n node.removeEventListener(type, callback);\n });\n }\n }\n}\n\n/**\n * Add an event listener to a selector\n * and returns a remove listener function.\n *\n * @param {String} selector\n * @param {String} type\n * @param {Function} callback\n * @return {Object}\n */\nfunction listenSelector(selector, type, callback) {\n return delegate(document.body, selector, type, callback);\n}\n\nmodule.exports = listen;\n\n\n/***/ }),\n\n/***/ 817:\n/***/ (function(module) {\n\nfunction select(element) {\n var selectedText;\n\n if (element.nodeName === 'SELECT') {\n element.focus();\n\n selectedText = element.value;\n }\n else if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') {\n var isReadOnly = element.hasAttribute('readonly');\n\n if (!isReadOnly) {\n element.setAttribute('readonly', '');\n }\n\n element.select();\n element.setSelectionRange(0, element.value.length);\n\n if (!isReadOnly) {\n element.removeAttribute('readonly');\n }\n\n selectedText = element.value;\n }\n else {\n if (element.hasAttribute('contenteditable')) {\n element.focus();\n }\n\n var selection = window.getSelection();\n var range = document.createRange();\n\n range.selectNodeContents(element);\n selection.removeAllRanges();\n selection.addRange(range);\n\n selectedText = selection.toString();\n }\n\n return selectedText;\n}\n\nmodule.exports = select;\n\n\n/***/ }),\n\n/***/ 279:\n/***/ (function(module) {\n\nfunction E () {\n // Keep this empty so it's easier to inherit from\n // (via https://github.com/lipsmack from https://github.com/scottcorgan/tiny-emitter/issues/3)\n}\n\nE.prototype = {\n on: function (name, callback, ctx) {\n var e = this.e || (this.e = {});\n\n (e[name] || (e[name] = [])).push({\n fn: callback,\n ctx: ctx\n });\n\n return this;\n },\n\n once: function (name, callback, ctx) {\n var self = this;\n function listener () {\n self.off(name, listener);\n callback.apply(ctx, arguments);\n };\n\n listener._ = callback\n return this.on(name, listener, ctx);\n },\n\n emit: function (name) {\n var data = [].slice.call(arguments, 1);\n var evtArr = ((this.e || (this.e = {}))[name] || []).slice();\n var i = 0;\n var len = evtArr.length;\n\n for (i; i < len; i++) {\n evtArr[i].fn.apply(evtArr[i].ctx, data);\n }\n\n return this;\n },\n\n off: function (name, callback) {\n var e = this.e || (this.e = {});\n var evts = e[name];\n var liveEvents = [];\n\n if (evts && callback) {\n for (var i = 0, len = evts.length; i < len; i++) {\n if (evts[i].fn !== callback && evts[i].fn._ !== callback)\n liveEvents.push(evts[i]);\n }\n }\n\n // Remove event from queue to prevent memory leak\n // Suggested by https://github.com/lazd\n // Ref: https://github.com/scottcorgan/tiny-emitter/commit/c6ebfaa9bc973b33d110a84a307742b7cf94c953#commitcomment-5024910\n\n (liveEvents.length)\n ? e[name] = liveEvents\n : delete e[name];\n\n return this;\n }\n};\n\nmodule.exports = E;\nmodule.exports.TinyEmitter = E;\n\n\n/***/ })\n\n/******/ \t});\n/************************************************************************/\n/******/ \t// The module cache\n/******/ \tvar __webpack_module_cache__ = {};\n/******/ \t\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(__webpack_module_cache__[moduleId]) {\n/******/ \t\t\treturn __webpack_module_cache__[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t\t// no module.id needed\n/******/ \t\t\t// no module.loaded needed\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/ \t\n/******/ \t\t// Execute the module function\n/******/ \t\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n/******/ \t\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/ \t\n/************************************************************************/\n/******/ \t/* webpack/runtime/compat get default export */\n/******/ \t!function() {\n/******/ \t\t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t\t__webpack_require__.n = function(module) {\n/******/ \t\t\tvar getter = module && module.__esModule ?\n/******/ \t\t\t\tfunction() { return module['default']; } :\n/******/ \t\t\t\tfunction() { return module; };\n/******/ \t\t\t__webpack_require__.d(getter, { a: getter });\n/******/ \t\t\treturn getter;\n/******/ \t\t};\n/******/ \t}();\n/******/ \t\n/******/ \t/* webpack/runtime/define property getters */\n/******/ \t!function() {\n/******/ \t\t// define getter functions for harmony exports\n/******/ \t\t__webpack_require__.d = function(exports, definition) {\n/******/ \t\t\tfor(var key in definition) {\n/******/ \t\t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n/******/ \t\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n/******/ \t\t\t\t}\n/******/ \t\t\t}\n/******/ \t\t};\n/******/ \t}();\n/******/ \t\n/******/ \t/* webpack/runtime/hasOwnProperty shorthand */\n/******/ \t!function() {\n/******/ \t\t__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }\n/******/ \t}();\n/******/ \t\n/************************************************************************/\n/******/ \t// module exports must be returned from runtime so entry inlining is disabled\n/******/ \t// startup\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(686);\n/******/ })()\n.default;\n});", "/*\n * Copyright (c) 2016-2024 Martin Donath \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\nimport \"focus-visible\"\n\nimport {\n EMPTY,\n NEVER,\n Observable,\n Subject,\n defer,\n delay,\n filter,\n map,\n merge,\n mergeWith,\n shareReplay,\n switchMap\n} from \"rxjs\"\n\nimport { configuration, feature } from \"./_\"\nimport {\n at,\n getActiveElement,\n getOptionalElement,\n requestJSON,\n setLocation,\n setToggle,\n watchDocument,\n watchKeyboard,\n watchLocation,\n watchLocationTarget,\n watchMedia,\n watchPrint,\n watchScript,\n watchViewport\n} from \"./browser\"\nimport {\n getComponentElement,\n getComponentElements,\n mountAnnounce,\n mountBackToTop,\n mountConsent,\n mountContent,\n mountDialog,\n mountHeader,\n mountHeaderTitle,\n mountPalette,\n mountProgress,\n mountSearch,\n mountSearchHiglight,\n mountSidebar,\n mountSource,\n mountTableOfContents,\n mountTabs,\n watchHeader,\n watchMain\n} from \"./components\"\nimport {\n SearchIndex,\n setupClipboardJS,\n setupInstantNavigation,\n setupVersionSelector\n} from \"./integrations\"\nimport {\n patchEllipsis,\n patchIndeterminate,\n patchScrollfix,\n patchScrolllock\n} from \"./patches\"\nimport \"./polyfills\"\n\n/* ----------------------------------------------------------------------------\n * Functions - @todo refactor\n * ------------------------------------------------------------------------- */\n\n/**\n * Fetch search index\n *\n * @returns Search index observable\n */\nfunction fetchSearchIndex(): Observable {\n if (location.protocol === \"file:\") {\n return watchScript(\n `${new URL(\"search/search_index.js\", config.base)}`\n )\n .pipe(\n // @ts-ignore - @todo fix typings\n map(() => __index),\n shareReplay(1)\n )\n } else {\n return requestJSON(\n new URL(\"search/search_index.json\", config.base)\n )\n }\n}\n\n/* ----------------------------------------------------------------------------\n * Application\n * ------------------------------------------------------------------------- */\n\n/* Yay, JavaScript is available */\ndocument.documentElement.classList.remove(\"no-js\")\ndocument.documentElement.classList.add(\"js\")\n\n/* Set up navigation observables and subjects */\nconst document$ = watchDocument()\nconst location$ = watchLocation()\nconst target$ = watchLocationTarget(location$)\nconst keyboard$ = watchKeyboard()\n\n/* Set up media observables */\nconst viewport$ = watchViewport()\nconst tablet$ = watchMedia(\"(min-width: 960px)\")\nconst screen$ = watchMedia(\"(min-width: 1220px)\")\nconst print$ = watchPrint()\n\n/* Retrieve search index, if search is enabled */\nconst config = configuration()\nconst index$ = document.forms.namedItem(\"search\")\n ? fetchSearchIndex()\n : NEVER\n\n/* Set up Clipboard.js integration */\nconst alert$ = new Subject()\nsetupClipboardJS({ alert$ })\n\n/* Set up progress indicator */\nconst progress$ = new Subject()\n\n/* Set up instant navigation, if enabled */\nif (feature(\"navigation.instant\"))\n setupInstantNavigation({ location$, viewport$, progress$ })\n .subscribe(document$)\n\n/* Set up version selector */\nif (config.version?.provider === \"mike\")\n setupVersionSelector({ document$ })\n\n/* Always close drawer and search on navigation */\nmerge(location$, target$)\n .pipe(\n delay(125)\n )\n .subscribe(() => {\n setToggle(\"drawer\", false)\n setToggle(\"search\", false)\n })\n\n/* Set up global keyboard handlers */\nkeyboard$\n .pipe(\n filter(({ mode }) => mode === \"global\")\n )\n .subscribe(key => {\n switch (key.type) {\n\n /* Go to previous page */\n case \"p\":\n case \",\":\n const prev = getOptionalElement(\"link[rel=prev]\")\n if (typeof prev !== \"undefined\")\n setLocation(prev)\n break\n\n /* Go to next page */\n case \"n\":\n case \".\":\n const next = getOptionalElement(\"link[rel=next]\")\n if (typeof next !== \"undefined\")\n setLocation(next)\n break\n\n /* Expand navigation, see https://bit.ly/3ZjG5io */\n case \"Enter\":\n const active = getActiveElement()\n if (active instanceof HTMLLabelElement)\n active.click()\n }\n })\n\n/* Set up patches */\npatchEllipsis({ viewport$, document$ })\npatchIndeterminate({ document$, tablet$ })\npatchScrollfix({ document$ })\npatchScrolllock({ viewport$, tablet$ })\n\n/* Set up header and main area observable */\nconst header$ = watchHeader(getComponentElement(\"header\"), { viewport$ })\nconst main$ = document$\n .pipe(\n map(() => getComponentElement(\"main\")),\n switchMap(el => watchMain(el, { viewport$, header$ })),\n shareReplay(1)\n )\n\n/* Set up control component observables */\nconst control$ = merge(\n\n /* Consent */\n ...getComponentElements(\"consent\")\n .map(el => mountConsent(el, { target$ })),\n\n /* Dialog */\n ...getComponentElements(\"dialog\")\n .map(el => mountDialog(el, { alert$ })),\n\n /* Color palette */\n ...getComponentElements(\"palette\")\n .map(el => mountPalette(el)),\n\n /* Progress bar */\n ...getComponentElements(\"progress\")\n .map(el => mountProgress(el, { progress$ })),\n\n /* Search */\n ...getComponentElements(\"search\")\n .map(el => mountSearch(el, { index$, keyboard$ })),\n\n /* Repository information */\n ...getComponentElements(\"source\")\n .map(el => mountSource(el))\n)\n\n/* Set up content component observables */\nconst content$ = defer(() => merge(\n\n /* Announcement bar */\n ...getComponentElements(\"announce\")\n .map(el => mountAnnounce(el)),\n\n /* Content */\n ...getComponentElements(\"content\")\n .map(el => mountContent(el, { viewport$, target$, print$ })),\n\n /* Search highlighting */\n ...getComponentElements(\"content\")\n .map(el => feature(\"search.highlight\")\n ? mountSearchHiglight(el, { index$, location$ })\n : EMPTY\n ),\n\n /* Header */\n ...getComponentElements(\"header\")\n .map(el => mountHeader(el, { viewport$, header$, main$ })),\n\n /* Header title */\n ...getComponentElements(\"header-title\")\n .map(el => mountHeaderTitle(el, { viewport$, header$ })),\n\n /* Sidebar */\n ...getComponentElements(\"sidebar\")\n .map(el => el.getAttribute(\"data-md-type\") === \"navigation\"\n ? at(screen$, () => mountSidebar(el, { viewport$, header$, main$ }))\n : at(tablet$, () => mountSidebar(el, { viewport$, header$, main$ }))\n ),\n\n /* Navigation tabs */\n ...getComponentElements(\"tabs\")\n .map(el => mountTabs(el, { viewport$, header$ })),\n\n /* Table of contents */\n ...getComponentElements(\"toc\")\n .map(el => mountTableOfContents(el, {\n viewport$, header$, main$, target$\n })),\n\n /* Back-to-top button */\n ...getComponentElements(\"top\")\n .map(el => mountBackToTop(el, { viewport$, header$, main$, target$ }))\n))\n\n/* Set up component observables */\nconst component$ = document$\n .pipe(\n switchMap(() => content$),\n mergeWith(control$),\n shareReplay(1)\n )\n\n/* Subscribe to all components */\ncomponent$.subscribe()\n\n/* ----------------------------------------------------------------------------\n * Exports\n * ------------------------------------------------------------------------- */\n\nwindow.document$ = document$ /* Document observable */\nwindow.location$ = location$ /* Location subject */\nwindow.target$ = target$ /* Location target observable */\nwindow.keyboard$ = keyboard$ /* Keyboard observable */\nwindow.viewport$ = viewport$ /* Viewport observable */\nwindow.tablet$ = tablet$ /* Media tablet observable */\nwindow.screen$ = screen$ /* Media screen observable */\nwindow.print$ = print$ /* Media print observable */\nwindow.alert$ = alert$ /* Alert subject */\nwindow.progress$ = progress$ /* Progress indicator subject */\nwindow.component$ = component$ /* Component observable */\n", "/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n};\n", "/**\n * Returns true if the object is a function.\n * @param value The value to check\n */\nexport function isFunction(value: any): value is (...args: any[]) => any {\n return typeof value === 'function';\n}\n", "/**\n * Used to create Error subclasses until the community moves away from ES5.\n *\n * This is because compiling from TypeScript down to ES5 has issues with subclassing Errors\n * as well as other built-in types: https://github.com/Microsoft/TypeScript/issues/12123\n *\n * @param createImpl A factory function to create the actual constructor implementation. The returned\n * function should be a named function that calls `_super` internally.\n */\nexport function createErrorClass(createImpl: (_super: any) => any): T {\n const _super = (instance: any) => {\n Error.call(instance);\n instance.stack = new Error().stack;\n };\n\n const ctorFunc = createImpl(_super);\n ctorFunc.prototype = Object.create(Error.prototype);\n ctorFunc.prototype.constructor = ctorFunc;\n return ctorFunc;\n}\n", "import { createErrorClass } from './createErrorClass';\n\nexport interface UnsubscriptionError extends Error {\n readonly errors: any[];\n}\n\nexport interface UnsubscriptionErrorCtor {\n /**\n * @deprecated Internal implementation detail. Do not construct error instances.\n * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269\n */\n new (errors: any[]): UnsubscriptionError;\n}\n\n/**\n * An error thrown when one or more errors have occurred during the\n * `unsubscribe` of a {@link Subscription}.\n */\nexport const UnsubscriptionError: UnsubscriptionErrorCtor = createErrorClass(\n (_super) =>\n function UnsubscriptionErrorImpl(this: any, errors: (Error | string)[]) {\n _super(this);\n this.message = errors\n ? `${errors.length} errors occurred during unsubscription:\n${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\\n ')}`\n : '';\n this.name = 'UnsubscriptionError';\n this.errors = errors;\n }\n);\n", "/**\n * Removes an item from an array, mutating it.\n * @param arr The array to remove the item from\n * @param item The item to remove\n */\nexport function arrRemove(arr: T[] | undefined | null, item: T) {\n if (arr) {\n const index = arr.indexOf(item);\n 0 <= index && arr.splice(index, 1);\n }\n}\n", "import { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nimport { SubscriptionLike, TeardownLogic, Unsubscribable } from './types';\nimport { arrRemove } from './util/arrRemove';\n\n/**\n * Represents a disposable resource, such as the execution of an Observable. A\n * Subscription has one important method, `unsubscribe`, that takes no argument\n * and just disposes the resource held by the subscription.\n *\n * Additionally, subscriptions may be grouped together through the `add()`\n * method, which will attach a child Subscription to the current Subscription.\n * When a Subscription is unsubscribed, all its children (and its grandchildren)\n * will be unsubscribed as well.\n *\n * @class Subscription\n */\nexport class Subscription implements SubscriptionLike {\n /** @nocollapse */\n public static EMPTY = (() => {\n const empty = new Subscription();\n empty.closed = true;\n return empty;\n })();\n\n /**\n * A flag to indicate whether this Subscription has already been unsubscribed.\n */\n public closed = false;\n\n private _parentage: Subscription[] | Subscription | null = null;\n\n /**\n * The list of registered finalizers to execute upon unsubscription. Adding and removing from this\n * list occurs in the {@link #add} and {@link #remove} methods.\n */\n private _finalizers: Exclude[] | null = null;\n\n /**\n * @param initialTeardown A function executed first as part of the finalization\n * process that is kicked off when {@link #unsubscribe} is called.\n */\n constructor(private initialTeardown?: () => void) {}\n\n /**\n * Disposes the resources held by the subscription. May, for instance, cancel\n * an ongoing Observable execution or cancel any other type of work that\n * started when the Subscription was created.\n * @return {void}\n */\n unsubscribe(): void {\n let errors: any[] | undefined;\n\n if (!this.closed) {\n this.closed = true;\n\n // Remove this from it's parents.\n const { _parentage } = this;\n if (_parentage) {\n this._parentage = null;\n if (Array.isArray(_parentage)) {\n for (const parent of _parentage) {\n parent.remove(this);\n }\n } else {\n _parentage.remove(this);\n }\n }\n\n const { initialTeardown: initialFinalizer } = this;\n if (isFunction(initialFinalizer)) {\n try {\n initialFinalizer();\n } catch (e) {\n errors = e instanceof UnsubscriptionError ? e.errors : [e];\n }\n }\n\n const { _finalizers } = this;\n if (_finalizers) {\n this._finalizers = null;\n for (const finalizer of _finalizers) {\n try {\n execFinalizer(finalizer);\n } catch (err) {\n errors = errors ?? [];\n if (err instanceof UnsubscriptionError) {\n errors = [...errors, ...err.errors];\n } else {\n errors.push(err);\n }\n }\n }\n }\n\n if (errors) {\n throw new UnsubscriptionError(errors);\n }\n }\n }\n\n /**\n * Adds a finalizer to this subscription, so that finalization will be unsubscribed/called\n * when this subscription is unsubscribed. If this subscription is already {@link #closed},\n * because it has already been unsubscribed, then whatever finalizer is passed to it\n * will automatically be executed (unless the finalizer itself is also a closed subscription).\n *\n * Closed Subscriptions cannot be added as finalizers to any subscription. Adding a closed\n * subscription to a any subscription will result in no operation. (A noop).\n *\n * Adding a subscription to itself, or adding `null` or `undefined` will not perform any\n * operation at all. (A noop).\n *\n * `Subscription` instances that are added to this instance will automatically remove themselves\n * if they are unsubscribed. Functions and {@link Unsubscribable} objects that you wish to remove\n * will need to be removed manually with {@link #remove}\n *\n * @param teardown The finalization logic to add to this subscription.\n */\n add(teardown: TeardownLogic): void {\n // Only add the finalizer if it's not undefined\n // and don't add a subscription to itself.\n if (teardown && teardown !== this) {\n if (this.closed) {\n // If this subscription is already closed,\n // execute whatever finalizer is handed to it automatically.\n execFinalizer(teardown);\n } else {\n if (teardown instanceof Subscription) {\n // We don't add closed subscriptions, and we don't add the same subscription\n // twice. Subscription unsubscribe is idempotent.\n if (teardown.closed || teardown._hasParent(this)) {\n return;\n }\n teardown._addParent(this);\n }\n (this._finalizers = this._finalizers ?? []).push(teardown);\n }\n }\n }\n\n /**\n * Checks to see if a this subscription already has a particular parent.\n * This will signal that this subscription has already been added to the parent in question.\n * @param parent the parent to check for\n */\n private _hasParent(parent: Subscription) {\n const { _parentage } = this;\n return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));\n }\n\n /**\n * Adds a parent to this subscription so it can be removed from the parent if it\n * unsubscribes on it's own.\n *\n * NOTE: THIS ASSUMES THAT {@link _hasParent} HAS ALREADY BEEN CHECKED.\n * @param parent The parent subscription to add\n */\n private _addParent(parent: Subscription) {\n const { _parentage } = this;\n this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;\n }\n\n /**\n * Called on a child when it is removed via {@link #remove}.\n * @param parent The parent to remove\n */\n private _removeParent(parent: Subscription) {\n const { _parentage } = this;\n if (_parentage === parent) {\n this._parentage = null;\n } else if (Array.isArray(_parentage)) {\n arrRemove(_parentage, parent);\n }\n }\n\n /**\n * Removes a finalizer from this subscription that was previously added with the {@link #add} method.\n *\n * Note that `Subscription` instances, when unsubscribed, will automatically remove themselves\n * from every other `Subscription` they have been added to. This means that using the `remove` method\n * is not a common thing and should be used thoughtfully.\n *\n * If you add the same finalizer instance of a function or an unsubscribable object to a `Subscription` instance\n * more than once, you will need to call `remove` the same number of times to remove all instances.\n *\n * All finalizer instances are removed to free up memory upon unsubscription.\n *\n * @param teardown The finalizer to remove from this subscription\n */\n remove(teardown: Exclude): void {\n const { _finalizers } = this;\n _finalizers && arrRemove(_finalizers, teardown);\n\n if (teardown instanceof Subscription) {\n teardown._removeParent(this);\n }\n }\n}\n\nexport const EMPTY_SUBSCRIPTION = Subscription.EMPTY;\n\nexport function isSubscription(value: any): value is Subscription {\n return (\n value instanceof Subscription ||\n (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe))\n );\n}\n\nfunction execFinalizer(finalizer: Unsubscribable | (() => void)) {\n if (isFunction(finalizer)) {\n finalizer();\n } else {\n finalizer.unsubscribe();\n }\n}\n", "import { Subscriber } from './Subscriber';\nimport { ObservableNotification } from './types';\n\n/**\n * The {@link GlobalConfig} object for RxJS. It is used to configure things\n * like how to react on unhandled errors.\n */\nexport const config: GlobalConfig = {\n onUnhandledError: null,\n onStoppedNotification: null,\n Promise: undefined,\n useDeprecatedSynchronousErrorHandling: false,\n useDeprecatedNextContext: false,\n};\n\n/**\n * The global configuration object for RxJS, used to configure things\n * like how to react on unhandled errors. Accessible via {@link config}\n * object.\n */\nexport interface GlobalConfig {\n /**\n * A registration point for unhandled errors from RxJS. These are errors that\n * cannot were not handled by consuming code in the usual subscription path. For\n * example, if you have this configured, and you subscribe to an observable without\n * providing an error handler, errors from that subscription will end up here. This\n * will _always_ be called asynchronously on another job in the runtime. This is because\n * we do not want errors thrown in this user-configured handler to interfere with the\n * behavior of the library.\n */\n onUnhandledError: ((err: any) => void) | null;\n\n /**\n * A registration point for notifications that cannot be sent to subscribers because they\n * have completed, errored or have been explicitly unsubscribed. By default, next, complete\n * and error notifications sent to stopped subscribers are noops. However, sometimes callers\n * might want a different behavior. For example, with sources that attempt to report errors\n * to stopped subscribers, a caller can configure RxJS to throw an unhandled error instead.\n * This will _always_ be called asynchronously on another job in the runtime. This is because\n * we do not want errors thrown in this user-configured handler to interfere with the\n * behavior of the library.\n */\n onStoppedNotification: ((notification: ObservableNotification, subscriber: Subscriber) => void) | null;\n\n /**\n * The promise constructor used by default for {@link Observable#toPromise toPromise} and {@link Observable#forEach forEach}\n * methods.\n *\n * @deprecated As of version 8, RxJS will no longer support this sort of injection of a\n * Promise constructor. If you need a Promise implementation other than native promises,\n * please polyfill/patch Promise as you see appropriate. Will be removed in v8.\n */\n Promise?: PromiseConstructorLike;\n\n /**\n * If true, turns on synchronous error rethrowing, which is a deprecated behavior\n * in v6 and higher. This behavior enables bad patterns like wrapping a subscribe\n * call in a try/catch block. It also enables producer interference, a nasty bug\n * where a multicast can be broken for all observers by a downstream consumer with\n * an unhandled error. DO NOT USE THIS FLAG UNLESS IT'S NEEDED TO BUY TIME\n * FOR MIGRATION REASONS.\n *\n * @deprecated As of version 8, RxJS will no longer support synchronous throwing\n * of unhandled errors. All errors will be thrown on a separate call stack to prevent bad\n * behaviors described above. Will be removed in v8.\n */\n useDeprecatedSynchronousErrorHandling: boolean;\n\n /**\n * If true, enables an as-of-yet undocumented feature from v5: The ability to access\n * `unsubscribe()` via `this` context in `next` functions created in observers passed\n * to `subscribe`.\n *\n * This is being removed because the performance was severely problematic, and it could also cause\n * issues when types other than POJOs are passed to subscribe as subscribers, as they will likely have\n * their `this` context overwritten.\n *\n * @deprecated As of version 8, RxJS will no longer support altering the\n * context of next functions provided as part of an observer to Subscribe. Instead,\n * you will have access to a subscription or a signal or token that will allow you to do things like\n * unsubscribe and test closed status. Will be removed in v8.\n */\n useDeprecatedNextContext: boolean;\n}\n", "import type { TimerHandle } from './timerHandle';\ntype SetTimeoutFunction = (handler: () => void, timeout?: number, ...args: any[]) => TimerHandle;\ntype ClearTimeoutFunction = (handle: TimerHandle) => void;\n\ninterface TimeoutProvider {\n setTimeout: SetTimeoutFunction;\n clearTimeout: ClearTimeoutFunction;\n delegate:\n | {\n setTimeout: SetTimeoutFunction;\n clearTimeout: ClearTimeoutFunction;\n }\n | undefined;\n}\n\nexport const timeoutProvider: TimeoutProvider = {\n // When accessing the delegate, use the variable rather than `this` so that\n // the functions can be called without being bound to the provider.\n setTimeout(handler: () => void, timeout?: number, ...args) {\n const { delegate } = timeoutProvider;\n if (delegate?.setTimeout) {\n return delegate.setTimeout(handler, timeout, ...args);\n }\n return setTimeout(handler, timeout, ...args);\n },\n clearTimeout(handle) {\n const { delegate } = timeoutProvider;\n return (delegate?.clearTimeout || clearTimeout)(handle as any);\n },\n delegate: undefined,\n};\n", "import { config } from '../config';\nimport { timeoutProvider } from '../scheduler/timeoutProvider';\n\n/**\n * Handles an error on another job either with the user-configured {@link onUnhandledError},\n * or by throwing it on that new job so it can be picked up by `window.onerror`, `process.on('error')`, etc.\n *\n * This should be called whenever there is an error that is out-of-band with the subscription\n * or when an error hits a terminal boundary of the subscription and no error handler was provided.\n *\n * @param err the error to report\n */\nexport function reportUnhandledError(err: any) {\n timeoutProvider.setTimeout(() => {\n const { onUnhandledError } = config;\n if (onUnhandledError) {\n // Execute the user-configured error handler.\n onUnhandledError(err);\n } else {\n // Throw so it is picked up by the runtime's uncaught error mechanism.\n throw err;\n }\n });\n}\n", "/* tslint:disable:no-empty */\nexport function noop() { }\n", "import { CompleteNotification, NextNotification, ErrorNotification } from './types';\n\n/**\n * A completion object optimized for memory use and created to be the\n * same \"shape\" as other notifications in v8.\n * @internal\n */\nexport const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined) as CompleteNotification)();\n\n/**\n * Internal use only. Creates an optimized error notification that is the same \"shape\"\n * as other notifications.\n * @internal\n */\nexport function errorNotification(error: any): ErrorNotification {\n return createNotification('E', undefined, error) as any;\n}\n\n/**\n * Internal use only. Creates an optimized next notification that is the same \"shape\"\n * as other notifications.\n * @internal\n */\nexport function nextNotification(value: T) {\n return createNotification('N', value, undefined) as NextNotification;\n}\n\n/**\n * Ensures that all notifications created internally have the same \"shape\" in v8.\n *\n * TODO: This is only exported to support a crazy legacy test in `groupBy`.\n * @internal\n */\nexport function createNotification(kind: 'N' | 'E' | 'C', value: any, error: any) {\n return {\n kind,\n value,\n error,\n };\n}\n", "import { config } from '../config';\n\nlet context: { errorThrown: boolean; error: any } | null = null;\n\n/**\n * Handles dealing with errors for super-gross mode. Creates a context, in which\n * any synchronously thrown errors will be passed to {@link captureError}. Which\n * will record the error such that it will be rethrown after the call back is complete.\n * TODO: Remove in v8\n * @param cb An immediately executed function.\n */\nexport function errorContext(cb: () => void) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n const isRoot = !context;\n if (isRoot) {\n context = { errorThrown: false, error: null };\n }\n cb();\n if (isRoot) {\n const { errorThrown, error } = context!;\n context = null;\n if (errorThrown) {\n throw error;\n }\n }\n } else {\n // This is the general non-deprecated path for everyone that\n // isn't crazy enough to use super-gross mode (useDeprecatedSynchronousErrorHandling)\n cb();\n }\n}\n\n/**\n * Captures errors only in super-gross mode.\n * @param err the error to capture\n */\nexport function captureError(err: any) {\n if (config.useDeprecatedSynchronousErrorHandling && context) {\n context.errorThrown = true;\n context.error = err;\n }\n}\n", "import { isFunction } from './util/isFunction';\nimport { Observer, ObservableNotification } from './types';\nimport { isSubscription, Subscription } from './Subscription';\nimport { config } from './config';\nimport { reportUnhandledError } from './util/reportUnhandledError';\nimport { noop } from './util/noop';\nimport { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories';\nimport { timeoutProvider } from './scheduler/timeoutProvider';\nimport { captureError } from './util/errorContext';\n\n/**\n * Implements the {@link Observer} interface and extends the\n * {@link Subscription} class. While the {@link Observer} is the public API for\n * consuming the values of an {@link Observable}, all Observers get converted to\n * a Subscriber, in order to provide Subscription-like capabilities such as\n * `unsubscribe`. Subscriber is a common type in RxJS, and crucial for\n * implementing operators, but it is rarely used as a public API.\n *\n * @class Subscriber\n */\nexport class Subscriber extends Subscription implements Observer {\n /**\n * A static factory for a Subscriber, given a (potentially partial) definition\n * of an Observer.\n * @param next The `next` callback of an Observer.\n * @param error The `error` callback of an\n * Observer.\n * @param complete The `complete` callback of an\n * Observer.\n * @return A Subscriber wrapping the (partially defined)\n * Observer represented by the given arguments.\n * @nocollapse\n * @deprecated Do not use. Will be removed in v8. There is no replacement for this\n * method, and there is no reason to be creating instances of `Subscriber` directly.\n * If you have a specific use case, please file an issue.\n */\n static create(next?: (x?: T) => void, error?: (e?: any) => void, complete?: () => void): Subscriber {\n return new SafeSubscriber(next, error, complete);\n }\n\n /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n protected isStopped: boolean = false;\n /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n protected destination: Subscriber | Observer; // this `any` is the escape hatch to erase extra type param (e.g. R)\n\n /**\n * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n * There is no reason to directly create an instance of Subscriber. This type is exported for typings reasons.\n */\n constructor(destination?: Subscriber | Observer) {\n super();\n if (destination) {\n this.destination = destination;\n // Automatically chain subscriptions together here.\n // if destination is a Subscription, then it is a Subscriber.\n if (isSubscription(destination)) {\n destination.add(this);\n }\n } else {\n this.destination = EMPTY_OBSERVER;\n }\n }\n\n /**\n * The {@link Observer} callback to receive notifications of type `next` from\n * the Observable, with a value. The Observable may call this method 0 or more\n * times.\n * @param {T} [value] The `next` value.\n * @return {void}\n */\n next(value?: T): void {\n if (this.isStopped) {\n handleStoppedNotification(nextNotification(value), this);\n } else {\n this._next(value!);\n }\n }\n\n /**\n * The {@link Observer} callback to receive notifications of type `error` from\n * the Observable, with an attached `Error`. Notifies the Observer that\n * the Observable has experienced an error condition.\n * @param {any} [err] The `error` exception.\n * @return {void}\n */\n error(err?: any): void {\n if (this.isStopped) {\n handleStoppedNotification(errorNotification(err), this);\n } else {\n this.isStopped = true;\n this._error(err);\n }\n }\n\n /**\n * The {@link Observer} callback to receive a valueless notification of type\n * `complete` from the Observable. Notifies the Observer that the Observable\n * has finished sending push-based notifications.\n * @return {void}\n */\n complete(): void {\n if (this.isStopped) {\n handleStoppedNotification(COMPLETE_NOTIFICATION, this);\n } else {\n this.isStopped = true;\n this._complete();\n }\n }\n\n unsubscribe(): void {\n if (!this.closed) {\n this.isStopped = true;\n super.unsubscribe();\n this.destination = null!;\n }\n }\n\n protected _next(value: T): void {\n this.destination.next(value);\n }\n\n protected _error(err: any): void {\n try {\n this.destination.error(err);\n } finally {\n this.unsubscribe();\n }\n }\n\n protected _complete(): void {\n try {\n this.destination.complete();\n } finally {\n this.unsubscribe();\n }\n }\n}\n\n/**\n * This bind is captured here because we want to be able to have\n * compatibility with monoid libraries that tend to use a method named\n * `bind`. In particular, a library called Monio requires this.\n */\nconst _bind = Function.prototype.bind;\n\nfunction bind any>(fn: Fn, thisArg: any): Fn {\n return _bind.call(fn, thisArg);\n}\n\n/**\n * Internal optimization only, DO NOT EXPOSE.\n * @internal\n */\nclass ConsumerObserver implements Observer {\n constructor(private partialObserver: Partial>) {}\n\n next(value: T): void {\n const { partialObserver } = this;\n if (partialObserver.next) {\n try {\n partialObserver.next(value);\n } catch (error) {\n handleUnhandledError(error);\n }\n }\n }\n\n error(err: any): void {\n const { partialObserver } = this;\n if (partialObserver.error) {\n try {\n partialObserver.error(err);\n } catch (error) {\n handleUnhandledError(error);\n }\n } else {\n handleUnhandledError(err);\n }\n }\n\n complete(): void {\n const { partialObserver } = this;\n if (partialObserver.complete) {\n try {\n partialObserver.complete();\n } catch (error) {\n handleUnhandledError(error);\n }\n }\n }\n}\n\nexport class SafeSubscriber extends Subscriber {\n constructor(\n observerOrNext?: Partial> | ((value: T) => void) | null,\n error?: ((e?: any) => void) | null,\n complete?: (() => void) | null\n ) {\n super();\n\n let partialObserver: Partial>;\n if (isFunction(observerOrNext) || !observerOrNext) {\n // The first argument is a function, not an observer. The next\n // two arguments *could* be observers, or they could be empty.\n partialObserver = {\n next: (observerOrNext ?? undefined) as (((value: T) => void) | undefined),\n error: error ?? undefined,\n complete: complete ?? undefined,\n };\n } else {\n // The first argument is a partial observer.\n let context: any;\n if (this && config.useDeprecatedNextContext) {\n // This is a deprecated path that made `this.unsubscribe()` available in\n // next handler functions passed to subscribe. This only exists behind a flag\n // now, as it is *very* slow.\n context = Object.create(observerOrNext);\n context.unsubscribe = () => this.unsubscribe();\n partialObserver = {\n next: observerOrNext.next && bind(observerOrNext.next, context),\n error: observerOrNext.error && bind(observerOrNext.error, context),\n complete: observerOrNext.complete && bind(observerOrNext.complete, context),\n };\n } else {\n // The \"normal\" path. Just use the partial observer directly.\n partialObserver = observerOrNext;\n }\n }\n\n // Wrap the partial observer to ensure it's a full observer, and\n // make sure proper error handling is accounted for.\n this.destination = new ConsumerObserver(partialObserver);\n }\n}\n\nfunction handleUnhandledError(error: any) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n captureError(error);\n } else {\n // Ideal path, we report this as an unhandled error,\n // which is thrown on a new call stack.\n reportUnhandledError(error);\n }\n}\n\n/**\n * An error handler used when no error handler was supplied\n * to the SafeSubscriber -- meaning no error handler was supplied\n * do the `subscribe` call on our observable.\n * @param err The error to handle\n */\nfunction defaultErrorHandler(err: any) {\n throw err;\n}\n\n/**\n * A handler for notifications that cannot be sent to a stopped subscriber.\n * @param notification The notification being sent\n * @param subscriber The stopped subscriber\n */\nfunction handleStoppedNotification(notification: ObservableNotification, subscriber: Subscriber) {\n const { onStoppedNotification } = config;\n onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));\n}\n\n/**\n * The observer used as a stub for subscriptions where the user did not\n * pass any arguments to `subscribe`. Comes with the default error handling\n * behavior.\n */\nexport const EMPTY_OBSERVER: Readonly> & { closed: true } = {\n closed: true,\n next: noop,\n error: defaultErrorHandler,\n complete: noop,\n};\n", "/**\n * Symbol.observable or a string \"@@observable\". Used for interop\n *\n * @deprecated We will no longer be exporting this symbol in upcoming versions of RxJS.\n * Instead polyfill and use Symbol.observable directly *or* use https://www.npmjs.com/package/symbol-observable\n */\nexport const observable: string | symbol = (() => (typeof Symbol === 'function' && Symbol.observable) || '@@observable')();\n", "/**\n * This function takes one parameter and just returns it. Simply put,\n * this is like `(x: T): T => x`.\n *\n * ## Examples\n *\n * This is useful in some cases when using things like `mergeMap`\n *\n * ```ts\n * import { interval, take, map, range, mergeMap, identity } from 'rxjs';\n *\n * const source$ = interval(1000).pipe(take(5));\n *\n * const result$ = source$.pipe(\n * map(i => range(i)),\n * mergeMap(identity) // same as mergeMap(x => x)\n * );\n *\n * result$.subscribe({\n * next: console.log\n * });\n * ```\n *\n * Or when you want to selectively apply an operator\n *\n * ```ts\n * import { interval, take, identity } from 'rxjs';\n *\n * const shouldLimit = () => Math.random() < 0.5;\n *\n * const source$ = interval(1000);\n *\n * const result$ = source$.pipe(shouldLimit() ? take(5) : identity);\n *\n * result$.subscribe({\n * next: console.log\n * });\n * ```\n *\n * @param x Any value that is returned by this function\n * @returns The value passed as the first parameter to this function\n */\nexport function identity(x: T): T {\n return x;\n}\n", "import { identity } from './identity';\nimport { UnaryFunction } from '../types';\n\nexport function pipe(): typeof identity;\nexport function pipe(fn1: UnaryFunction): UnaryFunction;\nexport function pipe(fn1: UnaryFunction, fn2: UnaryFunction): UnaryFunction;\nexport function pipe(fn1: UnaryFunction, fn2: UnaryFunction, fn3: UnaryFunction): UnaryFunction;\nexport function pipe(\n fn1: UnaryFunction,\n fn2: UnaryFunction,\n fn3: UnaryFunction,\n fn4: UnaryFunction\n): UnaryFunction;\nexport function pipe(\n fn1: UnaryFunction,\n fn2: UnaryFunction,\n fn3: UnaryFunction,\n fn4: UnaryFunction,\n fn5: UnaryFunction\n): UnaryFunction;\nexport function pipe(\n fn1: UnaryFunction,\n fn2: UnaryFunction,\n fn3: UnaryFunction,\n fn4: UnaryFunction,\n fn5: UnaryFunction,\n fn6: UnaryFunction\n): UnaryFunction;\nexport function pipe(\n fn1: UnaryFunction,\n fn2: UnaryFunction,\n fn3: UnaryFunction,\n fn4: UnaryFunction,\n fn5: UnaryFunction,\n fn6: UnaryFunction,\n fn7: UnaryFunction\n): UnaryFunction;\nexport function pipe(\n fn1: UnaryFunction,\n fn2: UnaryFunction,\n fn3: UnaryFunction,\n fn4: UnaryFunction,\n fn5: UnaryFunction,\n fn6: UnaryFunction,\n fn7: UnaryFunction,\n fn8: UnaryFunction\n): UnaryFunction;\nexport function pipe(\n fn1: UnaryFunction,\n fn2: UnaryFunction,\n fn3: UnaryFunction,\n fn4: UnaryFunction,\n fn5: UnaryFunction,\n fn6: UnaryFunction,\n fn7: UnaryFunction,\n fn8: UnaryFunction,\n fn9: UnaryFunction\n): UnaryFunction;\nexport function pipe(\n fn1: UnaryFunction,\n fn2: UnaryFunction,\n fn3: UnaryFunction,\n fn4: UnaryFunction,\n fn5: UnaryFunction,\n fn6: UnaryFunction,\n fn7: UnaryFunction,\n fn8: UnaryFunction,\n fn9: UnaryFunction,\n ...fns: UnaryFunction[]\n): UnaryFunction;\n\n/**\n * pipe() can be called on one or more functions, each of which can take one argument (\"UnaryFunction\")\n * and uses it to return a value.\n * It returns a function that takes one argument, passes it to the first UnaryFunction, and then\n * passes the result to the next one, passes that result to the next one, and so on. \n */\nexport function pipe(...fns: Array>): UnaryFunction {\n return pipeFromArray(fns);\n}\n\n/** @internal */\nexport function pipeFromArray(fns: Array>): UnaryFunction {\n if (fns.length === 0) {\n return identity as UnaryFunction;\n }\n\n if (fns.length === 1) {\n return fns[0];\n }\n\n return function piped(input: T): R {\n return fns.reduce((prev: any, fn: UnaryFunction) => fn(prev), input as any);\n };\n}\n", "import { Operator } from './Operator';\nimport { SafeSubscriber, Subscriber } from './Subscriber';\nimport { isSubscription, Subscription } from './Subscription';\nimport { TeardownLogic, OperatorFunction, Subscribable, Observer } from './types';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nimport { isFunction } from './util/isFunction';\nimport { errorContext } from './util/errorContext';\n\n/**\n * A representation of any set of values over any amount of time. This is the most basic building block\n * of RxJS.\n *\n * @class Observable\n */\nexport class Observable implements Subscribable {\n /**\n * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n */\n source: Observable | undefined;\n\n /**\n * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n */\n operator: Operator | undefined;\n\n /**\n * @constructor\n * @param {Function} subscribe the function that is called when the Observable is\n * initially subscribed to. This function is given a Subscriber, to which new values\n * can be `next`ed, or an `error` method can be called to raise an error, or\n * `complete` can be called to notify of a successful completion.\n */\n constructor(subscribe?: (this: Observable, subscriber: Subscriber) => TeardownLogic) {\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n\n // HACK: Since TypeScript inherits static properties too, we have to\n // fight against TypeScript here so Subject can have a different static create signature\n /**\n * Creates a new Observable by calling the Observable constructor\n * @owner Observable\n * @method create\n * @param {Function} subscribe? the subscriber function to be passed to the Observable constructor\n * @return {Observable} a new observable\n * @nocollapse\n * @deprecated Use `new Observable()` instead. Will be removed in v8.\n */\n static create: (...args: any[]) => any = (subscribe?: (subscriber: Subscriber) => TeardownLogic) => {\n return new Observable(subscribe);\n };\n\n /**\n * Creates a new Observable, with this Observable instance as the source, and the passed\n * operator defined as the new observable's operator.\n * @method lift\n * @param operator the operator defining the operation to take on the observable\n * @return a new observable with the Operator applied\n * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.\n * If you have implemented an operator using `lift`, it is recommended that you create an\n * operator by simply returning `new Observable()` directly. See \"Creating new operators from\n * scratch\" section here: https://rxjs.dev/guide/operators\n */\n lift(operator?: Operator): Observable {\n const observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n }\n\n subscribe(observerOrNext?: Partial> | ((value: T) => void)): Subscription;\n /** @deprecated Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: https://rxjs.dev/deprecations/subscribe-arguments */\n subscribe(next?: ((value: T) => void) | null, error?: ((error: any) => void) | null, complete?: (() => void) | null): Subscription;\n /**\n * Invokes an execution of an Observable and registers Observer handlers for notifications it will emit.\n *\n * Use it when you have all these Observables, but still nothing is happening.\n *\n * `subscribe` is not a regular operator, but a method that calls Observable's internal `subscribe` function. It\n * might be for example a function that you passed to Observable's constructor, but most of the time it is\n * a library implementation, which defines what will be emitted by an Observable, and when it be will emitted. This means\n * that calling `subscribe` is actually the moment when Observable starts its work, not when it is created, as it is often\n * the thought.\n *\n * Apart from starting the execution of an Observable, this method allows you to listen for values\n * that an Observable emits, as well as for when it completes or errors. You can achieve this in two\n * of the following ways.\n *\n * The first way is creating an object that implements {@link Observer} interface. It should have methods\n * defined by that interface, but note that it should be just a regular JavaScript object, which you can create\n * yourself in any way you want (ES6 class, classic function constructor, object literal etc.). In particular, do\n * not attempt to use any RxJS implementation details to create Observers - you don't need them. Remember also\n * that your object does not have to implement all methods. If you find yourself creating a method that doesn't\n * do anything, you can simply omit it. Note however, if the `error` method is not provided and an error happens,\n * it will be thrown asynchronously. Errors thrown asynchronously cannot be caught using `try`/`catch`. Instead,\n * use the {@link onUnhandledError} configuration option or use a runtime handler (like `window.onerror` or\n * `process.on('error)`) to be notified of unhandled errors. Because of this, it's recommended that you provide\n * an `error` method to avoid missing thrown errors.\n *\n * The second way is to give up on Observer object altogether and simply provide callback functions in place of its methods.\n * This means you can provide three functions as arguments to `subscribe`, where the first function is equivalent\n * of a `next` method, the second of an `error` method and the third of a `complete` method. Just as in case of an Observer,\n * if you do not need to listen for something, you can omit a function by passing `undefined` or `null`,\n * since `subscribe` recognizes these functions by where they were placed in function call. When it comes\n * to the `error` function, as with an Observer, if not provided, errors emitted by an Observable will be thrown asynchronously.\n *\n * You can, however, subscribe with no parameters at all. This may be the case where you're not interested in terminal events\n * and you also handled emissions internally by using operators (e.g. using `tap`).\n *\n * Whichever style of calling `subscribe` you use, in both cases it returns a Subscription object.\n * This object allows you to call `unsubscribe` on it, which in turn will stop the work that an Observable does and will clean\n * up all resources that an Observable used. Note that cancelling a subscription will not call `complete` callback\n * provided to `subscribe` function, which is reserved for a regular completion signal that comes from an Observable.\n *\n * Remember that callbacks provided to `subscribe` are not guaranteed to be called asynchronously.\n * It is an Observable itself that decides when these functions will be called. For example {@link of}\n * by default emits all its values synchronously. Always check documentation for how given Observable\n * will behave when subscribed and if its default behavior can be modified with a `scheduler`.\n *\n * #### Examples\n *\n * Subscribe with an {@link guide/observer Observer}\n *\n * ```ts\n * import { of } from 'rxjs';\n *\n * const sumObserver = {\n * sum: 0,\n * next(value) {\n * console.log('Adding: ' + value);\n * this.sum = this.sum + value;\n * },\n * error() {\n * // We actually could just remove this method,\n * // since we do not really care about errors right now.\n * },\n * complete() {\n * console.log('Sum equals: ' + this.sum);\n * }\n * };\n *\n * of(1, 2, 3) // Synchronously emits 1, 2, 3 and then completes.\n * .subscribe(sumObserver);\n *\n * // Logs:\n * // 'Adding: 1'\n * // 'Adding: 2'\n * // 'Adding: 3'\n * // 'Sum equals: 6'\n * ```\n *\n * Subscribe with functions ({@link deprecations/subscribe-arguments deprecated})\n *\n * ```ts\n * import { of } from 'rxjs'\n *\n * let sum = 0;\n *\n * of(1, 2, 3).subscribe(\n * value => {\n * console.log('Adding: ' + value);\n * sum = sum + value;\n * },\n * undefined,\n * () => console.log('Sum equals: ' + sum)\n * );\n *\n * // Logs:\n * // 'Adding: 1'\n * // 'Adding: 2'\n * // 'Adding: 3'\n * // 'Sum equals: 6'\n * ```\n *\n * Cancel a subscription\n *\n * ```ts\n * import { interval } from 'rxjs';\n *\n * const subscription = interval(1000).subscribe({\n * next(num) {\n * console.log(num)\n * },\n * complete() {\n * // Will not be called, even when cancelling subscription.\n * console.log('completed!');\n * }\n * });\n *\n * setTimeout(() => {\n * subscription.unsubscribe();\n * console.log('unsubscribed!');\n * }, 2500);\n *\n * // Logs:\n * // 0 after 1s\n * // 1 after 2s\n * // 'unsubscribed!' after 2.5s\n * ```\n *\n * @param {Observer|Function} observerOrNext (optional) Either an observer with methods to be called,\n * or the first of three possible handlers, which is the handler for each value emitted from the subscribed\n * Observable.\n * @param {Function} error (optional) A handler for a terminal event resulting from an error. If no error handler is provided,\n * the error will be thrown asynchronously as unhandled.\n * @param {Function} complete (optional) A handler for a terminal event resulting from successful completion.\n * @return {Subscription} a subscription reference to the registered handlers\n * @method subscribe\n */\n subscribe(\n observerOrNext?: Partial> | ((value: T) => void) | null,\n error?: ((error: any) => void) | null,\n complete?: (() => void) | null\n ): Subscription {\n const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);\n\n errorContext(() => {\n const { operator, source } = this;\n subscriber.add(\n operator\n ? // We're dealing with a subscription in the\n // operator chain to one of our lifted operators.\n operator.call(subscriber, source)\n : source\n ? // If `source` has a value, but `operator` does not, something that\n // had intimate knowledge of our API, like our `Subject`, must have\n // set it. We're going to just call `_subscribe` directly.\n this._subscribe(subscriber)\n : // In all other cases, we're likely wrapping a user-provided initializer\n // function, so we need to catch errors and handle them appropriately.\n this._trySubscribe(subscriber)\n );\n });\n\n return subscriber;\n }\n\n /** @internal */\n protected _trySubscribe(sink: Subscriber): TeardownLogic {\n try {\n return this._subscribe(sink);\n } catch (err) {\n // We don't need to return anything in this case,\n // because it's just going to try to `add()` to a subscription\n // above.\n sink.error(err);\n }\n }\n\n /**\n * Used as a NON-CANCELLABLE means of subscribing to an observable, for use with\n * APIs that expect promises, like `async/await`. You cannot unsubscribe from this.\n *\n * **WARNING**: Only use this with observables you *know* will complete. If the source\n * observable does not complete, you will end up with a promise that is hung up, and\n * potentially all of the state of an async function hanging out in memory. To avoid\n * this situation, look into adding something like {@link timeout}, {@link take},\n * {@link takeWhile}, or {@link takeUntil} amongst others.\n *\n * #### Example\n *\n * ```ts\n * import { interval, take } from 'rxjs';\n *\n * const source$ = interval(1000).pipe(take(4));\n *\n * async function getTotal() {\n * let total = 0;\n *\n * await source$.forEach(value => {\n * total += value;\n * console.log('observable -> ' + value);\n * });\n *\n * return total;\n * }\n *\n * getTotal().then(\n * total => console.log('Total: ' + total)\n * );\n *\n * // Expected:\n * // 'observable -> 0'\n * // 'observable -> 1'\n * // 'observable -> 2'\n * // 'observable -> 3'\n * // 'Total: 6'\n * ```\n *\n * @param next a handler for each value emitted by the observable\n * @return a promise that either resolves on observable completion or\n * rejects with the handled error\n */\n forEach(next: (value: T) => void): Promise;\n\n /**\n * @param next a handler for each value emitted by the observable\n * @param promiseCtor a constructor function used to instantiate the Promise\n * @return a promise that either resolves on observable completion or\n * rejects with the handled error\n * @deprecated Passing a Promise constructor will no longer be available\n * in upcoming versions of RxJS. This is because it adds weight to the library, for very\n * little benefit. If you need this functionality, it is recommended that you either\n * polyfill Promise, or you create an adapter to convert the returned native promise\n * to whatever promise implementation you wanted. Will be removed in v8.\n */\n forEach(next: (value: T) => void, promiseCtor: PromiseConstructorLike): Promise;\n\n forEach(next: (value: T) => void, promiseCtor?: PromiseConstructorLike): Promise {\n promiseCtor = getPromiseCtor(promiseCtor);\n\n return new promiseCtor((resolve, reject) => {\n const subscriber = new SafeSubscriber({\n next: (value) => {\n try {\n next(value);\n } catch (err) {\n reject(err);\n subscriber.unsubscribe();\n }\n },\n error: reject,\n complete: resolve,\n });\n this.subscribe(subscriber);\n }) as Promise;\n }\n\n /** @internal */\n protected _subscribe(subscriber: Subscriber): TeardownLogic {\n return this.source?.subscribe(subscriber);\n }\n\n /**\n * An interop point defined by the es7-observable spec https://github.com/zenparsing/es-observable\n * @method Symbol.observable\n * @return {Observable} this instance of the observable\n */\n [Symbol_observable]() {\n return this;\n }\n\n /* tslint:disable:max-line-length */\n pipe(): Observable;\n pipe(op1: OperatorFunction): Observable;\n pipe(op1: OperatorFunction, op2: OperatorFunction): Observable;\n pipe(op1: OperatorFunction, op2: OperatorFunction, op3: OperatorFunction): Observable;\n pipe(\n op1: OperatorFunction,\n op2: OperatorFunction,\n op3: OperatorFunction,\n op4: OperatorFunction\n ): Observable;\n pipe(\n op1: OperatorFunction,\n op2: OperatorFunction,\n op3: OperatorFunction,\n op4: OperatorFunction,\n op5: OperatorFunction\n ): Observable;\n pipe(\n op1: OperatorFunction,\n op2: OperatorFunction,\n op3: OperatorFunction,\n op4: OperatorFunction,\n op5: OperatorFunction,\n op6: OperatorFunction\n ): Observable;\n pipe(\n op1: OperatorFunction,\n op2: OperatorFunction,\n op3: OperatorFunction,\n op4: OperatorFunction,\n op5: OperatorFunction,\n op6: OperatorFunction,\n op7: OperatorFunction\n ): Observable;\n pipe(\n op1: OperatorFunction,\n op2: OperatorFunction,\n op3: OperatorFunction,\n op4: OperatorFunction,\n op5: OperatorFunction,\n op6: OperatorFunction,\n op7: OperatorFunction,\n op8: OperatorFunction\n ): Observable;\n pipe(\n op1: OperatorFunction,\n op2: OperatorFunction,\n op3: OperatorFunction,\n op4: OperatorFunction,\n op5: OperatorFunction,\n op6: OperatorFunction,\n op7: OperatorFunction,\n op8: OperatorFunction,\n op9: OperatorFunction\n ): Observable;\n pipe(\n op1: OperatorFunction,\n op2: OperatorFunction,\n op3: OperatorFunction,\n op4: OperatorFunction,\n op5: OperatorFunction,\n op6: OperatorFunction,\n op7: OperatorFunction,\n op8: OperatorFunction,\n op9: OperatorFunction,\n ...operations: OperatorFunction[]\n ): Observable;\n /* tslint:enable:max-line-length */\n\n /**\n * Used to stitch together functional operators into a chain.\n * @method pipe\n * @return {Observable} the Observable result of all of the operators having\n * been called in the order they were passed in.\n *\n * ## Example\n *\n * ```ts\n * import { interval, filter, map, scan } from 'rxjs';\n *\n * interval(1000)\n * .pipe(\n * filter(x => x % 2 === 0),\n * map(x => x + x),\n * scan((acc, x) => acc + x)\n * )\n * .subscribe(x => console.log(x));\n * ```\n */\n pipe(...operations: OperatorFunction[]): Observable {\n return pipeFromArray(operations)(this);\n }\n\n /* tslint:disable:max-line-length */\n /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */\n toPromise(): Promise;\n /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */\n toPromise(PromiseCtor: typeof Promise): Promise;\n /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */\n toPromise(PromiseCtor: PromiseConstructorLike): Promise;\n /* tslint:enable:max-line-length */\n\n /**\n * Subscribe to this Observable and get a Promise resolving on\n * `complete` with the last emission (if any).\n *\n * **WARNING**: Only use this with observables you *know* will complete. If the source\n * observable does not complete, you will end up with a promise that is hung up, and\n * potentially all of the state of an async function hanging out in memory. To avoid\n * this situation, look into adding something like {@link timeout}, {@link take},\n * {@link takeWhile}, or {@link takeUntil} amongst others.\n *\n * @method toPromise\n * @param [promiseCtor] a constructor function used to instantiate\n * the Promise\n * @return A Promise that resolves with the last value emit, or\n * rejects on an error. If there were no emissions, Promise\n * resolves with undefined.\n * @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise\n */\n toPromise(promiseCtor?: PromiseConstructorLike): Promise {\n promiseCtor = getPromiseCtor(promiseCtor);\n\n return new promiseCtor((resolve, reject) => {\n let value: T | undefined;\n this.subscribe(\n (x: T) => (value = x),\n (err: any) => reject(err),\n () => resolve(value)\n );\n }) as Promise;\n }\n}\n\n/**\n * Decides between a passed promise constructor from consuming code,\n * A default configured promise constructor, and the native promise\n * constructor and returns it. If nothing can be found, it will throw\n * an error.\n * @param promiseCtor The optional promise constructor to passed by consuming code\n */\nfunction getPromiseCtor(promiseCtor: PromiseConstructorLike | undefined) {\n return promiseCtor ?? config.Promise ?? Promise;\n}\n\nfunction isObserver(value: any): value is Observer {\n return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);\n}\n\nfunction isSubscriber(value: any): value is Subscriber {\n return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));\n}\n", "import { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { OperatorFunction } from '../types';\nimport { isFunction } from './isFunction';\n\n/**\n * Used to determine if an object is an Observable with a lift function.\n */\nexport function hasLift(source: any): source is { lift: InstanceType['lift'] } {\n return isFunction(source?.lift);\n}\n\n/**\n * Creates an `OperatorFunction`. Used to define operators throughout the library in a concise way.\n * @param init The logic to connect the liftedSource to the subscriber at the moment of subscription.\n */\nexport function operate(\n init: (liftedSource: Observable, subscriber: Subscriber) => (() => void) | void\n): OperatorFunction {\n return (source: Observable) => {\n if (hasLift(source)) {\n return source.lift(function (this: Subscriber, liftedSource: Observable) {\n try {\n return init(liftedSource, this);\n } catch (err) {\n this.error(err);\n }\n });\n }\n throw new TypeError('Unable to lift unknown Observable type');\n };\n}\n", "import { Subscriber } from '../Subscriber';\n\n/**\n * Creates an instance of an `OperatorSubscriber`.\n * @param destination The downstream subscriber.\n * @param onNext Handles next values, only called if this subscriber is not stopped or closed. Any\n * error that occurs in this function is caught and sent to the `error` method of this subscriber.\n * @param onError Handles errors from the subscription, any errors that occur in this handler are caught\n * and send to the `destination` error handler.\n * @param onComplete Handles completion notification from the subscription. Any errors that occur in\n * this handler are sent to the `destination` error handler.\n * @param onFinalize Additional teardown logic here. This will only be called on teardown if the\n * subscriber itself is not already closed. This is called after all other teardown logic is executed.\n */\nexport function createOperatorSubscriber(\n destination: Subscriber,\n onNext?: (value: T) => void,\n onComplete?: () => void,\n onError?: (err: any) => void,\n onFinalize?: () => void\n): Subscriber {\n return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);\n}\n\n/**\n * A generic helper for allowing operators to be created with a Subscriber and\n * use closures to capture necessary state from the operator function itself.\n */\nexport class OperatorSubscriber extends Subscriber {\n /**\n * Creates an instance of an `OperatorSubscriber`.\n * @param destination The downstream subscriber.\n * @param onNext Handles next values, only called if this subscriber is not stopped or closed. Any\n * error that occurs in this function is caught and sent to the `error` method of this subscriber.\n * @param onError Handles errors from the subscription, any errors that occur in this handler are caught\n * and send to the `destination` error handler.\n * @param onComplete Handles completion notification from the subscription. Any errors that occur in\n * this handler are sent to the `destination` error handler.\n * @param onFinalize Additional finalization logic here. This will only be called on finalization if the\n * subscriber itself is not already closed. This is called after all other finalization logic is executed.\n * @param shouldUnsubscribe An optional check to see if an unsubscribe call should truly unsubscribe.\n * NOTE: This currently **ONLY** exists to support the strange behavior of {@link groupBy}, where unsubscription\n * to the resulting observable does not actually disconnect from the source if there are active subscriptions\n * to any grouped observable. (DO NOT EXPOSE OR USE EXTERNALLY!!!)\n */\n constructor(\n destination: Subscriber,\n onNext?: (value: T) => void,\n onComplete?: () => void,\n onError?: (err: any) => void,\n private onFinalize?: () => void,\n private shouldUnsubscribe?: () => boolean\n ) {\n // It's important - for performance reasons - that all of this class's\n // members are initialized and that they are always initialized in the same\n // order. This will ensure that all OperatorSubscriber instances have the\n // same hidden class in V8. This, in turn, will help keep the number of\n // hidden classes involved in property accesses within the base class as\n // low as possible. If the number of hidden classes involved exceeds four,\n // the property accesses will become megamorphic and performance penalties\n // will be incurred - i.e. inline caches won't be used.\n //\n // The reasons for ensuring all instances have the same hidden class are\n // further discussed in this blog post from Benedikt Meurer:\n // https://benediktmeurer.de/2018/03/23/impact-of-polymorphism-on-component-based-frameworks-like-react/\n super(destination);\n this._next = onNext\n ? function (this: OperatorSubscriber, value: T) {\n try {\n onNext(value);\n } catch (err) {\n destination.error(err);\n }\n }\n : super._next;\n this._error = onError\n ? function (this: OperatorSubscriber, err: any) {\n try {\n onError(err);\n } catch (err) {\n // Send any errors that occur down stream.\n destination.error(err);\n } finally {\n // Ensure finalization.\n this.unsubscribe();\n }\n }\n : super._error;\n this._complete = onComplete\n ? function (this: OperatorSubscriber) {\n try {\n onComplete();\n } catch (err) {\n // Send any errors that occur down stream.\n destination.error(err);\n } finally {\n // Ensure finalization.\n this.unsubscribe();\n }\n }\n : super._complete;\n }\n\n unsubscribe() {\n if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {\n const { closed } = this;\n super.unsubscribe();\n // Execute additional teardown if we have any and we didn't already do so.\n !closed && this.onFinalize?.();\n }\n }\n}\n", "import { Subscription } from '../Subscription';\n\ninterface AnimationFrameProvider {\n schedule(callback: FrameRequestCallback): Subscription;\n requestAnimationFrame: typeof requestAnimationFrame;\n cancelAnimationFrame: typeof cancelAnimationFrame;\n delegate:\n | {\n requestAnimationFrame: typeof requestAnimationFrame;\n cancelAnimationFrame: typeof cancelAnimationFrame;\n }\n | undefined;\n}\n\nexport const animationFrameProvider: AnimationFrameProvider = {\n // When accessing the delegate, use the variable rather than `this` so that\n // the functions can be called without being bound to the provider.\n schedule(callback) {\n let request = requestAnimationFrame;\n let cancel: typeof cancelAnimationFrame | undefined = cancelAnimationFrame;\n const { delegate } = animationFrameProvider;\n if (delegate) {\n request = delegate.requestAnimationFrame;\n cancel = delegate.cancelAnimationFrame;\n }\n const handle = request((timestamp) => {\n // Clear the cancel function. The request has been fulfilled, so\n // attempting to cancel the request upon unsubscription would be\n // pointless.\n cancel = undefined;\n callback(timestamp);\n });\n return new Subscription(() => cancel?.(handle));\n },\n requestAnimationFrame(...args) {\n const { delegate } = animationFrameProvider;\n return (delegate?.requestAnimationFrame || requestAnimationFrame)(...args);\n },\n cancelAnimationFrame(...args) {\n const { delegate } = animationFrameProvider;\n return (delegate?.cancelAnimationFrame || cancelAnimationFrame)(...args);\n },\n delegate: undefined,\n};\n", "import { createErrorClass } from './createErrorClass';\n\nexport interface ObjectUnsubscribedError extends Error {}\n\nexport interface ObjectUnsubscribedErrorCtor {\n /**\n * @deprecated Internal implementation detail. Do not construct error instances.\n * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269\n */\n new (): ObjectUnsubscribedError;\n}\n\n/**\n * An error thrown when an action is invalid because the object has been\n * unsubscribed.\n *\n * @see {@link Subject}\n * @see {@link BehaviorSubject}\n *\n * @class ObjectUnsubscribedError\n */\nexport const ObjectUnsubscribedError: ObjectUnsubscribedErrorCtor = createErrorClass(\n (_super) =>\n function ObjectUnsubscribedErrorImpl(this: any) {\n _super(this);\n this.name = 'ObjectUnsubscribedError';\n this.message = 'object unsubscribed';\n }\n);\n", "import { Operator } from './Operator';\nimport { Observable } from './Observable';\nimport { Subscriber } from './Subscriber';\nimport { Subscription, EMPTY_SUBSCRIPTION } from './Subscription';\nimport { Observer, SubscriptionLike, TeardownLogic } from './types';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { arrRemove } from './util/arrRemove';\nimport { errorContext } from './util/errorContext';\n\n/**\n * A Subject is a special type of Observable that allows values to be\n * multicasted to many Observers. Subjects are like EventEmitters.\n *\n * Every Subject is an Observable and an Observer. You can subscribe to a\n * Subject, and you can call next to feed values as well as error and complete.\n */\nexport class Subject extends Observable implements SubscriptionLike {\n closed = false;\n\n private currentObservers: Observer[] | null = null;\n\n /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n observers: Observer[] = [];\n /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n isStopped = false;\n /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n hasError = false;\n /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n thrownError: any = null;\n\n /**\n * Creates a \"subject\" by basically gluing an observer to an observable.\n *\n * @nocollapse\n * @deprecated Recommended you do not use. Will be removed at some point in the future. Plans for replacement still under discussion.\n */\n static create: (...args: any[]) => any = (destination: Observer, source: Observable): AnonymousSubject => {\n return new AnonymousSubject(destination, source);\n };\n\n constructor() {\n // NOTE: This must be here to obscure Observable's constructor.\n super();\n }\n\n /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n lift(operator: Operator): Observable {\n const subject = new AnonymousSubject(this, this);\n subject.operator = operator as any;\n return subject as any;\n }\n\n /** @internal */\n protected _throwIfClosed() {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n }\n\n next(value: T) {\n errorContext(() => {\n this._throwIfClosed();\n if (!this.isStopped) {\n if (!this.currentObservers) {\n this.currentObservers = Array.from(this.observers);\n }\n for (const observer of this.currentObservers) {\n observer.next(value);\n }\n }\n });\n }\n\n error(err: any) {\n errorContext(() => {\n this._throwIfClosed();\n if (!this.isStopped) {\n this.hasError = this.isStopped = true;\n this.thrownError = err;\n const { observers } = this;\n while (observers.length) {\n observers.shift()!.error(err);\n }\n }\n });\n }\n\n complete() {\n errorContext(() => {\n this._throwIfClosed();\n if (!this.isStopped) {\n this.isStopped = true;\n const { observers } = this;\n while (observers.length) {\n observers.shift()!.complete();\n }\n }\n });\n }\n\n unsubscribe() {\n this.isStopped = this.closed = true;\n this.observers = this.currentObservers = null!;\n }\n\n get observed() {\n return this.observers?.length > 0;\n }\n\n /** @internal */\n protected _trySubscribe(subscriber: Subscriber): TeardownLogic {\n this._throwIfClosed();\n return super._trySubscribe(subscriber);\n }\n\n /** @internal */\n protected _subscribe(subscriber: Subscriber): Subscription {\n this._throwIfClosed();\n this._checkFinalizedStatuses(subscriber);\n return this._innerSubscribe(subscriber);\n }\n\n /** @internal */\n protected _innerSubscribe(subscriber: Subscriber) {\n const { hasError, isStopped, observers } = this;\n if (hasError || isStopped) {\n return EMPTY_SUBSCRIPTION;\n }\n this.currentObservers = null;\n observers.push(subscriber);\n return new Subscription(() => {\n this.currentObservers = null;\n arrRemove(observers, subscriber);\n });\n }\n\n /** @internal */\n protected _checkFinalizedStatuses(subscriber: Subscriber) {\n const { hasError, thrownError, isStopped } = this;\n if (hasError) {\n subscriber.error(thrownError);\n } else if (isStopped) {\n subscriber.complete();\n }\n }\n\n /**\n * Creates a new Observable with this Subject as the source. You can do this\n * to create custom Observer-side logic of the Subject and conceal it from\n * code that uses the Observable.\n * @return {Observable} Observable that the Subject casts to\n */\n asObservable(): Observable {\n const observable: any = new Observable();\n observable.source = this;\n return observable;\n }\n}\n\n/**\n * @class AnonymousSubject\n */\nexport class AnonymousSubject extends Subject {\n constructor(\n /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */\n public destination?: Observer,\n source?: Observable\n ) {\n super();\n this.source = source;\n }\n\n next(value: T) {\n this.destination?.next?.(value);\n }\n\n error(err: any) {\n this.destination?.error?.(err);\n }\n\n complete() {\n this.destination?.complete?.();\n }\n\n /** @internal */\n protected _subscribe(subscriber: Subscriber): Subscription {\n return this.source?.subscribe(subscriber) ?? EMPTY_SUBSCRIPTION;\n }\n}\n", "import { Subject } from './Subject';\nimport { Subscriber } from './Subscriber';\nimport { Subscription } from './Subscription';\n\n/**\n * A variant of Subject that requires an initial value and emits its current\n * value whenever it is subscribed to.\n *\n * @class BehaviorSubject\n */\nexport class BehaviorSubject extends Subject {\n constructor(private _value: T) {\n super();\n }\n\n get value(): T {\n return this.getValue();\n }\n\n /** @internal */\n protected _subscribe(subscriber: Subscriber): Subscription {\n const subscription = super._subscribe(subscriber);\n !subscription.closed && subscriber.next(this._value);\n return subscription;\n }\n\n getValue(): T {\n const { hasError, thrownError, _value } = this;\n if (hasError) {\n throw thrownError;\n }\n this._throwIfClosed();\n return _value;\n }\n\n next(value: T): void {\n super.next((this._value = value));\n }\n}\n", "import { TimestampProvider } from '../types';\n\ninterface DateTimestampProvider extends TimestampProvider {\n delegate: TimestampProvider | undefined;\n}\n\nexport const dateTimestampProvider: DateTimestampProvider = {\n now() {\n // Use the variable rather than `this` so that the function can be called\n // without being bound to the provider.\n return (dateTimestampProvider.delegate || Date).now();\n },\n delegate: undefined,\n};\n", "import { Subject } from './Subject';\nimport { TimestampProvider } from './types';\nimport { Subscriber } from './Subscriber';\nimport { Subscription } from './Subscription';\nimport { dateTimestampProvider } from './scheduler/dateTimestampProvider';\n\n/**\n * A variant of {@link Subject} that \"replays\" old values to new subscribers by emitting them when they first subscribe.\n *\n * `ReplaySubject` has an internal buffer that will store a specified number of values that it has observed. Like `Subject`,\n * `ReplaySubject` \"observes\" values by having them passed to its `next` method. When it observes a value, it will store that\n * value for a time determined by the configuration of the `ReplaySubject`, as passed to its constructor.\n *\n * When a new subscriber subscribes to the `ReplaySubject` instance, it will synchronously emit all values in its buffer in\n * a First-In-First-Out (FIFO) manner. The `ReplaySubject` will also complete, if it has observed completion; and it will\n * error if it has observed an error.\n *\n * There are two main configuration items to be concerned with:\n *\n * 1. `bufferSize` - This will determine how many items are stored in the buffer, defaults to infinite.\n * 2. `windowTime` - The amount of time to hold a value in the buffer before removing it from the buffer.\n *\n * Both configurations may exist simultaneously. So if you would like to buffer a maximum of 3 values, as long as the values\n * are less than 2 seconds old, you could do so with a `new ReplaySubject(3, 2000)`.\n *\n * ### Differences with BehaviorSubject\n *\n * `BehaviorSubject` is similar to `new ReplaySubject(1)`, with a couple of exceptions:\n *\n * 1. `BehaviorSubject` comes \"primed\" with a single value upon construction.\n * 2. `ReplaySubject` will replay values, even after observing an error, where `BehaviorSubject` will not.\n *\n * @see {@link Subject}\n * @see {@link BehaviorSubject}\n * @see {@link shareReplay}\n */\nexport class ReplaySubject extends Subject {\n private _buffer: (T | number)[] = [];\n private _infiniteTimeWindow = true;\n\n /**\n * @param bufferSize The size of the buffer to replay on subscription\n * @param windowTime The amount of time the buffered items will stay buffered\n * @param timestampProvider An object with a `now()` method that provides the current timestamp. This is used to\n * calculate the amount of time something has been buffered.\n */\n constructor(\n private _bufferSize = Infinity,\n private _windowTime = Infinity,\n private _timestampProvider: TimestampProvider = dateTimestampProvider\n ) {\n super();\n this._infiniteTimeWindow = _windowTime === Infinity;\n this._bufferSize = Math.max(1, _bufferSize);\n this._windowTime = Math.max(1, _windowTime);\n }\n\n next(value: T): void {\n const { isStopped, _buffer, _infiniteTimeWindow, _timestampProvider, _windowTime } = this;\n if (!isStopped) {\n _buffer.push(value);\n !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);\n }\n this._trimBuffer();\n super.next(value);\n }\n\n /** @internal */\n protected _subscribe(subscriber: Subscriber): Subscription {\n this._throwIfClosed();\n this._trimBuffer();\n\n const subscription = this._innerSubscribe(subscriber);\n\n const { _infiniteTimeWindow, _buffer } = this;\n // We use a copy here, so reentrant code does not mutate our array while we're\n // emitting it to a new subscriber.\n const copy = _buffer.slice();\n for (let i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) {\n subscriber.next(copy[i] as T);\n }\n\n this._checkFinalizedStatuses(subscriber);\n\n return subscription;\n }\n\n private _trimBuffer() {\n const { _bufferSize, _timestampProvider, _buffer, _infiniteTimeWindow } = this;\n // If we don't have an infinite buffer size, and we're over the length,\n // use splice to truncate the old buffer values off. Note that we have to\n // double the size for instances where we're not using an infinite time window\n // because we're storing the values and the timestamps in the same array.\n const adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;\n _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);\n\n // Now, if we're not in an infinite time window, remove all values where the time is\n // older than what is allowed.\n if (!_infiniteTimeWindow) {\n const now = _timestampProvider.now();\n let last = 0;\n // Search the array for the first timestamp that isn't expired and\n // truncate the buffer up to that point.\n for (let i = 1; i < _buffer.length && (_buffer[i] as number) <= now; i += 2) {\n last = i;\n }\n last && _buffer.splice(0, last + 1);\n }\n }\n}\n", "import { Scheduler } from '../Scheduler';\nimport { Subscription } from '../Subscription';\nimport { SchedulerAction } from '../types';\n\n/**\n * A unit of work to be executed in a `scheduler`. An action is typically\n * created from within a {@link SchedulerLike} and an RxJS user does not need to concern\n * themselves about creating and manipulating an Action.\n *\n * ```ts\n * class Action extends Subscription {\n * new (scheduler: Scheduler, work: (state?: T) => void);\n * schedule(state?: T, delay: number = 0): Subscription;\n * }\n * ```\n *\n * @class Action\n */\nexport class Action extends Subscription {\n constructor(scheduler: Scheduler, work: (this: SchedulerAction, state?: T) => void) {\n super();\n }\n /**\n * Schedules this action on its parent {@link SchedulerLike} for execution. May be passed\n * some context object, `state`. May happen at some point in the future,\n * according to the `delay` parameter, if specified.\n * @param {T} [state] Some contextual data that the `work` function uses when\n * called by the Scheduler.\n * @param {number} [delay] Time to wait before executing the work, where the\n * time unit is implicit and defined by the Scheduler.\n * @return {void}\n */\n public schedule(state?: T, delay: number = 0): Subscription {\n return this;\n }\n}\n", "import type { TimerHandle } from './timerHandle';\ntype SetIntervalFunction = (handler: () => void, timeout?: number, ...args: any[]) => TimerHandle;\ntype ClearIntervalFunction = (handle: TimerHandle) => void;\n\ninterface IntervalProvider {\n setInterval: SetIntervalFunction;\n clearInterval: ClearIntervalFunction;\n delegate:\n | {\n setInterval: SetIntervalFunction;\n clearInterval: ClearIntervalFunction;\n }\n | undefined;\n}\n\nexport const intervalProvider: IntervalProvider = {\n // When accessing the delegate, use the variable rather than `this` so that\n // the functions can be called without being bound to the provider.\n setInterval(handler: () => void, timeout?: number, ...args) {\n const { delegate } = intervalProvider;\n if (delegate?.setInterval) {\n return delegate.setInterval(handler, timeout, ...args);\n }\n return setInterval(handler, timeout, ...args);\n },\n clearInterval(handle) {\n const { delegate } = intervalProvider;\n return (delegate?.clearInterval || clearInterval)(handle as any);\n },\n delegate: undefined,\n};\n", "import { Action } from './Action';\nimport { SchedulerAction } from '../types';\nimport { Subscription } from '../Subscription';\nimport { AsyncScheduler } from './AsyncScheduler';\nimport { intervalProvider } from './intervalProvider';\nimport { arrRemove } from '../util/arrRemove';\nimport { TimerHandle } from './timerHandle';\n\nexport class AsyncAction extends Action {\n public id: TimerHandle | undefined;\n public state?: T;\n // @ts-ignore: Property has no initializer and is not definitely assigned\n public delay: number;\n protected pending: boolean = false;\n\n constructor(protected scheduler: AsyncScheduler, protected work: (this: SchedulerAction, state?: T) => void) {\n super(scheduler, work);\n }\n\n public schedule(state?: T, delay: number = 0): Subscription {\n if (this.closed) {\n return this;\n }\n\n // Always replace the current state with the new state.\n this.state = state;\n\n const id = this.id;\n const scheduler = this.scheduler;\n\n //\n // Important implementation note:\n //\n // Actions only execute once by default, unless rescheduled from within the\n // scheduled callback. This allows us to implement single and repeat\n // actions via the same code path, without adding API surface area, as well\n // as mimic traditional recursion but across asynchronous boundaries.\n //\n // However, JS runtimes and timers distinguish between intervals achieved by\n // serial `setTimeout` calls vs. a single `setInterval` call. An interval of\n // serial `setTimeout` calls can be individually delayed, which delays\n // scheduling the next `setTimeout`, and so on. `setInterval` attempts to\n // guarantee the interval callback will be invoked more precisely to the\n // interval period, regardless of load.\n //\n // Therefore, we use `setInterval` to schedule single and repeat actions.\n // If the action reschedules itself with the same delay, the interval is not\n // canceled. If the action doesn't reschedule, or reschedules with a\n // different delay, the interval will be canceled after scheduled callback\n // execution.\n //\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, delay);\n }\n\n // Set the pending flag indicating that this action has been scheduled, or\n // has recursively rescheduled itself.\n this.pending = true;\n\n this.delay = delay;\n // If this action has already an async Id, don't request a new one.\n this.id = this.id ?? this.requestAsyncId(scheduler, this.id, delay);\n\n return this;\n }\n\n protected requestAsyncId(scheduler: AsyncScheduler, _id?: TimerHandle, delay: number = 0): TimerHandle {\n return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);\n }\n\n protected recycleAsyncId(_scheduler: AsyncScheduler, id?: TimerHandle, delay: number | null = 0): TimerHandle | undefined {\n // If this action is rescheduled with the same delay time, don't clear the interval id.\n if (delay != null && this.delay === delay && this.pending === false) {\n return id;\n }\n // Otherwise, if the action's delay time is different from the current delay,\n // or the action has been rescheduled before it's executed, clear the interval id\n if (id != null) {\n intervalProvider.clearInterval(id);\n }\n\n return undefined;\n }\n\n /**\n * Immediately executes this action and the `work` it contains.\n * @return {any}\n */\n public execute(state: T, delay: number): any {\n if (this.closed) {\n return new Error('executing a cancelled action');\n }\n\n this.pending = false;\n const error = this._execute(state, delay);\n if (error) {\n return error;\n } else if (this.pending === false && this.id != null) {\n // Dequeue if the action didn't reschedule itself. Don't call\n // unsubscribe(), because the action could reschedule later.\n // For example:\n // ```\n // scheduler.schedule(function doWork(counter) {\n // /* ... I'm a busy worker bee ... */\n // var originalAction = this;\n // /* wait 100ms before rescheduling the action */\n // setTimeout(function () {\n // originalAction.schedule(counter + 1);\n // }, 100);\n // }, 1000);\n // ```\n this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n }\n }\n\n protected _execute(state: T, _delay: number): any {\n let errored: boolean = false;\n let errorValue: any;\n try {\n this.work(state);\n } catch (e) {\n errored = true;\n // HACK: Since code elsewhere is relying on the \"truthiness\" of the\n // return here, we can't have it return \"\" or 0 or false.\n // TODO: Clean this up when we refactor schedulers mid-version-8 or so.\n errorValue = e ? e : new Error('Scheduled action threw falsy error');\n }\n if (errored) {\n this.unsubscribe();\n return errorValue;\n }\n }\n\n unsubscribe() {\n if (!this.closed) {\n const { id, scheduler } = this;\n const { actions } = scheduler;\n\n this.work = this.state = this.scheduler = null!;\n this.pending = false;\n\n arrRemove(actions, this);\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, null);\n }\n\n this.delay = null!;\n super.unsubscribe();\n }\n }\n}\n", "import { Action } from './scheduler/Action';\nimport { Subscription } from './Subscription';\nimport { SchedulerLike, SchedulerAction } from './types';\nimport { dateTimestampProvider } from './scheduler/dateTimestampProvider';\n\n/**\n * An execution context and a data structure to order tasks and schedule their\n * execution. Provides a notion of (potentially virtual) time, through the\n * `now()` getter method.\n *\n * Each unit of work in a Scheduler is called an `Action`.\n *\n * ```ts\n * class Scheduler {\n * now(): number;\n * schedule(work, delay?, state?): Subscription;\n * }\n * ```\n *\n * @class Scheduler\n * @deprecated Scheduler is an internal implementation detail of RxJS, and\n * should not be used directly. Rather, create your own class and implement\n * {@link SchedulerLike}. Will be made internal in v8.\n */\nexport class Scheduler implements SchedulerLike {\n public static now: () => number = dateTimestampProvider.now;\n\n constructor(private schedulerActionCtor: typeof Action, now: () => number = Scheduler.now) {\n this.now = now;\n }\n\n /**\n * A getter method that returns a number representing the current time\n * (at the time this function was called) according to the scheduler's own\n * internal clock.\n * @return {number} A number that represents the current time. May or may not\n * have a relation to wall-clock time. May or may not refer to a time unit\n * (e.g. milliseconds).\n */\n public now: () => number;\n\n /**\n * Schedules a function, `work`, for execution. May happen at some point in\n * the future, according to the `delay` parameter, if specified. May be passed\n * some context object, `state`, which will be passed to the `work` function.\n *\n * The given arguments will be processed an stored as an Action object in a\n * queue of actions.\n *\n * @param {function(state: ?T): ?Subscription} work A function representing a\n * task, or some unit of work to be executed by the Scheduler.\n * @param {number} [delay] Time to wait before executing the work, where the\n * time unit is implicit and defined by the Scheduler itself.\n * @param {T} [state] Some contextual data that the `work` function uses when\n * called by the Scheduler.\n * @return {Subscription} A subscription in order to be able to unsubscribe\n * the scheduled work.\n */\n public schedule(work: (this: SchedulerAction, state?: T) => void, delay: number = 0, state?: T): Subscription {\n return new this.schedulerActionCtor(this, work).schedule(state, delay);\n }\n}\n", "import { Scheduler } from '../Scheduler';\nimport { Action } from './Action';\nimport { AsyncAction } from './AsyncAction';\nimport { TimerHandle } from './timerHandle';\n\nexport class AsyncScheduler extends Scheduler {\n public actions: Array> = [];\n /**\n * A flag to indicate whether the Scheduler is currently executing a batch of\n * queued actions.\n * @type {boolean}\n * @internal\n */\n public _active: boolean = false;\n /**\n * An internal ID used to track the latest asynchronous task such as those\n * coming from `setTimeout`, `setInterval`, `requestAnimationFrame`, and\n * others.\n * @type {any}\n * @internal\n */\n public _scheduled: TimerHandle | undefined;\n\n constructor(SchedulerAction: typeof Action, now: () => number = Scheduler.now) {\n super(SchedulerAction, now);\n }\n\n public flush(action: AsyncAction): void {\n const { actions } = this;\n\n if (this._active) {\n actions.push(action);\n return;\n }\n\n let error: any;\n this._active = true;\n\n do {\n if ((error = action.execute(action.state, action.delay))) {\n break;\n }\n } while ((action = actions.shift()!)); // exhaust the scheduler queue\n\n this._active = false;\n\n if (error) {\n while ((action = actions.shift()!)) {\n action.unsubscribe();\n }\n throw error;\n }\n }\n}\n", "import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\n\n/**\n *\n * Async Scheduler\n *\n * Schedule task as if you used setTimeout(task, duration)\n *\n * `async` scheduler schedules tasks asynchronously, by putting them on the JavaScript\n * event loop queue. It is best used to delay tasks in time or to schedule tasks repeating\n * in intervals.\n *\n * If you just want to \"defer\" task, that is to perform it right after currently\n * executing synchronous code ends (commonly achieved by `setTimeout(deferredTask, 0)`),\n * better choice will be the {@link asapScheduler} scheduler.\n *\n * ## Examples\n * Use async scheduler to delay task\n * ```ts\n * import { asyncScheduler } from 'rxjs';\n *\n * const task = () => console.log('it works!');\n *\n * asyncScheduler.schedule(task, 2000);\n *\n * // After 2 seconds logs:\n * // \"it works!\"\n * ```\n *\n * Use async scheduler to repeat task in intervals\n * ```ts\n * import { asyncScheduler } from 'rxjs';\n *\n * function task(state) {\n * console.log(state);\n * this.schedule(state + 1, 1000); // `this` references currently executing Action,\n * // which we reschedule with new state and delay\n * }\n *\n * asyncScheduler.schedule(task, 3000, 0);\n *\n * // Logs:\n * // 0 after 3s\n * // 1 after 4s\n * // 2 after 5s\n * // 3 after 6s\n * ```\n */\n\nexport const asyncScheduler = new AsyncScheduler(AsyncAction);\n\n/**\n * @deprecated Renamed to {@link asyncScheduler}. Will be removed in v8.\n */\nexport const async = asyncScheduler;\n", "import { AsyncAction } from './AsyncAction';\nimport { Subscription } from '../Subscription';\nimport { QueueScheduler } from './QueueScheduler';\nimport { SchedulerAction } from '../types';\nimport { TimerHandle } from './timerHandle';\n\nexport class QueueAction extends AsyncAction {\n constructor(protected scheduler: QueueScheduler, protected work: (this: SchedulerAction, state?: T) => void) {\n super(scheduler, work);\n }\n\n public schedule(state?: T, delay: number = 0): Subscription {\n if (delay > 0) {\n return super.schedule(state, delay);\n }\n this.delay = delay;\n this.state = state;\n this.scheduler.flush(this);\n return this;\n }\n\n public execute(state: T, delay: number): any {\n return delay > 0 || this.closed ? super.execute(state, delay) : this._execute(state, delay);\n }\n\n protected requestAsyncId(scheduler: QueueScheduler, id?: TimerHandle, delay: number = 0): TimerHandle {\n // If delay exists and is greater than 0, or if the delay is null (the\n // action wasn't rescheduled) but was originally scheduled as an async\n // action, then recycle as an async action.\n\n if ((delay != null && delay > 0) || (delay == null && this.delay > 0)) {\n return super.requestAsyncId(scheduler, id, delay);\n }\n\n // Otherwise flush the scheduler starting with this action.\n scheduler.flush(this);\n\n // HACK: In the past, this was returning `void`. However, `void` isn't a valid\n // `TimerHandle`, and generally the return value here isn't really used. So the\n // compromise is to return `0` which is both \"falsy\" and a valid `TimerHandle`,\n // as opposed to refactoring every other instanceo of `requestAsyncId`.\n return 0;\n }\n}\n", "import { AsyncScheduler } from './AsyncScheduler';\n\nexport class QueueScheduler extends AsyncScheduler {\n}\n", "import { QueueAction } from './QueueAction';\nimport { QueueScheduler } from './QueueScheduler';\n\n/**\n *\n * Queue Scheduler\n *\n * Put every next task on a queue, instead of executing it immediately\n *\n * `queue` scheduler, when used with delay, behaves the same as {@link asyncScheduler} scheduler.\n *\n * When used without delay, it schedules given task synchronously - executes it right when\n * it is scheduled. However when called recursively, that is when inside the scheduled task,\n * another task is scheduled with queue scheduler, instead of executing immediately as well,\n * that task will be put on a queue and wait for current one to finish.\n *\n * This means that when you execute task with `queue` scheduler, you are sure it will end\n * before any other task scheduled with that scheduler will start.\n *\n * ## Examples\n * Schedule recursively first, then do something\n * ```ts\n * import { queueScheduler } from 'rxjs';\n *\n * queueScheduler.schedule(() => {\n * queueScheduler.schedule(() => console.log('second')); // will not happen now, but will be put on a queue\n *\n * console.log('first');\n * });\n *\n * // Logs:\n * // \"first\"\n * // \"second\"\n * ```\n *\n * Reschedule itself recursively\n * ```ts\n * import { queueScheduler } from 'rxjs';\n *\n * queueScheduler.schedule(function(state) {\n * if (state !== 0) {\n * console.log('before', state);\n * this.schedule(state - 1); // `this` references currently executing Action,\n * // which we reschedule with new state\n * console.log('after', state);\n * }\n * }, 0, 3);\n *\n * // In scheduler that runs recursively, you would expect:\n * // \"before\", 3\n * // \"before\", 2\n * // \"before\", 1\n * // \"after\", 1\n * // \"after\", 2\n * // \"after\", 3\n *\n * // But with queue it logs:\n * // \"before\", 3\n * // \"after\", 3\n * // \"before\", 2\n * // \"after\", 2\n * // \"before\", 1\n * // \"after\", 1\n * ```\n */\n\nexport const queueScheduler = new QueueScheduler(QueueAction);\n\n/**\n * @deprecated Renamed to {@link queueScheduler}. Will be removed in v8.\n */\nexport const queue = queueScheduler;\n", "import { AsyncAction } from './AsyncAction';\nimport { AnimationFrameScheduler } from './AnimationFrameScheduler';\nimport { SchedulerAction } from '../types';\nimport { animationFrameProvider } from './animationFrameProvider';\nimport { TimerHandle } from './timerHandle';\n\nexport class AnimationFrameAction extends AsyncAction {\n constructor(protected scheduler: AnimationFrameScheduler, protected work: (this: SchedulerAction, state?: T) => void) {\n super(scheduler, work);\n }\n\n protected requestAsyncId(scheduler: AnimationFrameScheduler, id?: TimerHandle, delay: number = 0): TimerHandle {\n // If delay is greater than 0, request as an async action.\n if (delay !== null && delay > 0) {\n return super.requestAsyncId(scheduler, id, delay);\n }\n // Push the action to the end of the scheduler queue.\n scheduler.actions.push(this);\n // If an animation frame has already been requested, don't request another\n // one. If an animation frame hasn't been requested yet, request one. Return\n // the current animation frame request id.\n return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider.requestAnimationFrame(() => scheduler.flush(undefined)));\n }\n\n protected recycleAsyncId(scheduler: AnimationFrameScheduler, id?: TimerHandle, delay: number = 0): TimerHandle | undefined {\n // If delay exists and is greater than 0, or if the delay is null (the\n // action wasn't rescheduled) but was originally scheduled as an async\n // action, then recycle as an async action.\n if (delay != null ? delay > 0 : this.delay > 0) {\n return super.recycleAsyncId(scheduler, id, delay);\n }\n // If the scheduler queue has no remaining actions with the same async id,\n // cancel the requested animation frame and set the scheduled flag to\n // undefined so the next AnimationFrameAction will request its own.\n const { actions } = scheduler;\n if (id != null && actions[actions.length - 1]?.id !== id) {\n animationFrameProvider.cancelAnimationFrame(id as number);\n scheduler._scheduled = undefined;\n }\n // Return undefined so the action knows to request a new async id if it's rescheduled.\n return undefined;\n }\n}\n", "import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\n\nexport class AnimationFrameScheduler extends AsyncScheduler {\n public flush(action?: AsyncAction): void {\n this._active = true;\n // The async id that effects a call to flush is stored in _scheduled.\n // Before executing an action, it's necessary to check the action's async\n // id to determine whether it's supposed to be executed in the current\n // flush.\n // Previous implementations of this method used a count to determine this,\n // but that was unsound, as actions that are unsubscribed - i.e. cancelled -\n // are removed from the actions array and that can shift actions that are\n // scheduled to be executed in a subsequent flush into positions at which\n // they are executed within the current flush.\n const flushId = this._scheduled;\n this._scheduled = undefined;\n\n const { actions } = this;\n let error: any;\n action = action || actions.shift()!;\n\n do {\n if ((error = action.execute(action.state, action.delay))) {\n break;\n }\n } while ((action = actions[0]) && action.id === flushId && actions.shift());\n\n this._active = false;\n\n if (error) {\n while ((action = actions[0]) && action.id === flushId && actions.shift()) {\n action.unsubscribe();\n }\n throw error;\n }\n }\n}\n", "import { AnimationFrameAction } from './AnimationFrameAction';\nimport { AnimationFrameScheduler } from './AnimationFrameScheduler';\n\n/**\n *\n * Animation Frame Scheduler\n *\n * Perform task when `window.requestAnimationFrame` would fire\n *\n * When `animationFrame` scheduler is used with delay, it will fall back to {@link asyncScheduler} scheduler\n * behaviour.\n *\n * Without delay, `animationFrame` scheduler can be used to create smooth browser animations.\n * It makes sure scheduled task will happen just before next browser content repaint,\n * thus performing animations as efficiently as possible.\n *\n * ## Example\n * Schedule div height animation\n * ```ts\n * // html:
\n * import { animationFrameScheduler } from 'rxjs';\n *\n * const div = document.querySelector('div');\n *\n * animationFrameScheduler.schedule(function(height) {\n * div.style.height = height + \"px\";\n *\n * this.schedule(height + 1); // `this` references currently executing Action,\n * // which we reschedule with new state\n * }, 0, 0);\n *\n * // You will see a div element growing in height\n * ```\n */\n\nexport const animationFrameScheduler = new AnimationFrameScheduler(AnimationFrameAction);\n\n/**\n * @deprecated Renamed to {@link animationFrameScheduler}. Will be removed in v8.\n */\nexport const animationFrame = animationFrameScheduler;\n", "import { Observable } from '../Observable';\nimport { SchedulerLike } from '../types';\n\n/**\n * A simple Observable that emits no items to the Observer and immediately\n * emits a complete notification.\n *\n * Just emits 'complete', and nothing else.\n *\n * ![](empty.png)\n *\n * A simple Observable that only emits the complete notification. It can be used\n * for composing with other Observables, such as in a {@link mergeMap}.\n *\n * ## Examples\n *\n * Log complete notification\n *\n * ```ts\n * import { EMPTY } from 'rxjs';\n *\n * EMPTY.subscribe({\n * next: () => console.log('Next'),\n * complete: () => console.log('Complete!')\n * });\n *\n * // Outputs\n * // Complete!\n * ```\n *\n * Emit the number 7, then complete\n *\n * ```ts\n * import { EMPTY, startWith } from 'rxjs';\n *\n * const result = EMPTY.pipe(startWith(7));\n * result.subscribe(x => console.log(x));\n *\n * // Outputs\n * // 7\n * ```\n *\n * Map and flatten only odd numbers to the sequence `'a'`, `'b'`, `'c'`\n *\n * ```ts\n * import { interval, mergeMap, of, EMPTY } from 'rxjs';\n *\n * const interval$ = interval(1000);\n * const result = interval$.pipe(\n * mergeMap(x => x % 2 === 1 ? of('a', 'b', 'c') : EMPTY),\n * );\n * result.subscribe(x => console.log(x));\n *\n * // Results in the following to the console:\n * // x is equal to the count on the interval, e.g. (0, 1, 2, 3, ...)\n * // x will occur every 1000ms\n * // if x % 2 is equal to 1, print a, b, c (each on its own)\n * // if x % 2 is not equal to 1, nothing will be output\n * ```\n *\n * @see {@link Observable}\n * @see {@link NEVER}\n * @see {@link of}\n * @see {@link throwError}\n */\nexport const EMPTY = new Observable((subscriber) => subscriber.complete());\n\n/**\n * @param scheduler A {@link SchedulerLike} to use for scheduling\n * the emission of the complete notification.\n * @deprecated Replaced with the {@link EMPTY} constant or {@link scheduled} (e.g. `scheduled([], scheduler)`). Will be removed in v8.\n */\nexport function empty(scheduler?: SchedulerLike) {\n return scheduler ? emptyScheduled(scheduler) : EMPTY;\n}\n\nfunction emptyScheduled(scheduler: SchedulerLike) {\n return new Observable((subscriber) => scheduler.schedule(() => subscriber.complete()));\n}\n", "import { SchedulerLike } from '../types';\nimport { isFunction } from './isFunction';\n\nexport function isScheduler(value: any): value is SchedulerLike {\n return value && isFunction(value.schedule);\n}\n", "import { SchedulerLike } from '../types';\nimport { isFunction } from './isFunction';\nimport { isScheduler } from './isScheduler';\n\nfunction last(arr: T[]): T | undefined {\n return arr[arr.length - 1];\n}\n\nexport function popResultSelector(args: any[]): ((...args: unknown[]) => unknown) | undefined {\n return isFunction(last(args)) ? args.pop() : undefined;\n}\n\nexport function popScheduler(args: any[]): SchedulerLike | undefined {\n return isScheduler(last(args)) ? args.pop() : undefined;\n}\n\nexport function popNumber(args: any[], defaultValue: number): number {\n return typeof last(args) === 'number' ? args.pop()! : defaultValue;\n}\n", "export const isArrayLike = ((x: any): x is ArrayLike => x && typeof x.length === 'number' && typeof x !== 'function');", "import { isFunction } from \"./isFunction\";\n\n/**\n * Tests to see if the object is \"thennable\".\n * @param value the object to test\n */\nexport function isPromise(value: any): value is PromiseLike {\n return isFunction(value?.then);\n}\n", "import { InteropObservable } from '../types';\nimport { observable as Symbol_observable } from '../symbol/observable';\nimport { isFunction } from './isFunction';\n\n/** Identifies an input as being Observable (but not necessary an Rx Observable) */\nexport function isInteropObservable(input: any): input is InteropObservable {\n return isFunction(input[Symbol_observable]);\n}\n", "import { isFunction } from './isFunction';\n\nexport function isAsyncIterable(obj: any): obj is AsyncIterable {\n return Symbol.asyncIterator && isFunction(obj?.[Symbol.asyncIterator]);\n}\n", "/**\n * Creates the TypeError to throw if an invalid object is passed to `from` or `scheduled`.\n * @param input The object that was passed.\n */\nexport function createInvalidObservableTypeError(input: any) {\n // TODO: We should create error codes that can be looked up, so this can be less verbose.\n return new TypeError(\n `You provided ${\n input !== null && typeof input === 'object' ? 'an invalid object' : `'${input}'`\n } where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`\n );\n}\n", "export function getSymbolIterator(): symbol {\n if (typeof Symbol !== 'function' || !Symbol.iterator) {\n return '@@iterator' as any;\n }\n\n return Symbol.iterator;\n}\n\nexport const iterator = getSymbolIterator();\n", "import { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from './isFunction';\n\n/** Identifies an input as being an Iterable */\nexport function isIterable(input: any): input is Iterable {\n return isFunction(input?.[Symbol_iterator]);\n}\n", "import { ReadableStreamLike } from '../types';\nimport { isFunction } from './isFunction';\n\nexport async function* readableStreamLikeToAsyncGenerator(readableStream: ReadableStreamLike): AsyncGenerator {\n const reader = readableStream.getReader();\n try {\n while (true) {\n const { value, done } = await reader.read();\n if (done) {\n return;\n }\n yield value!;\n }\n } finally {\n reader.releaseLock();\n }\n}\n\nexport function isReadableStreamLike(obj: any): obj is ReadableStreamLike {\n // We don't want to use instanceof checks because they would return\n // false for instances from another Realm, like an