@attocash/commons-js 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeComponents.mjs +2 -2
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +68 -68
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +56 -56
- package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +14 -14
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +10 -10
- package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +661 -661
- package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoHash.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +17 -17
- package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +42 -42
- package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +67 -67
- package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +5 -5
- package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +35 -35
- package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoVote.mjs +37 -37
- package/commons-commons-core/cash/atto/commons/AttoWork.mjs +10 -10
- package/commons-commons-core/cash/atto/commons/Extensions.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/serialiazer/AttoAddressAsByteArraySerializer.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/serialiazer/InstantMillisSerializer.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +9 -9
- package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.export.d.ts +3 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs +19 -5
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +72 -72
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs +812 -319
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs.map +1 -1
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs +226 -76
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs.map +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +3 -3
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +50 -50
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs +34 -34
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +56 -56
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +4 -4
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +7 -7
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +76 -76
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +133 -28
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs +28 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +39 -39
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +34 -34
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +37 -37
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +59 -59
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +70 -70
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +13 -13
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +10 -10
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +36 -36
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +7 -7
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +84 -84
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +141 -141
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +98 -98
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +151 -151
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs +59 -59
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs +11 -11
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs +22 -22
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs +219 -219
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs +15 -15
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.mjs +2 -2
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs +241 -241
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +133 -133
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +85 -85
- package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +36 -36
- package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +41 -41
- package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +54 -54
- package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +51 -51
- package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +27 -27
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +20 -20
- package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +40 -40
- package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +21 -21
- package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/network/sockets/TimeoutExceptions.nonJvm.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +61 -61
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +45 -45
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +125 -125
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +138 -138
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +70 -70
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +53 -53
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +42 -42
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +63 -63
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +98 -98
- package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +33 -33
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +35 -35
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +13 -13
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +45 -45
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +65 -65
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +17 -17
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +64 -64
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +24 -24
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +25 -25
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +52 -52
- package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +35 -35
- package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +5 -5
- package/ktor-ktor-events/io/ktor/events/Events.mjs +5 -5
- package/ktor-ktor-http/io/ktor/http/Codecs.mjs +12 -12
- package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +89 -89
- package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +31 -31
- package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +114 -114
- package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +4 -4
- package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
- package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +66 -66
- package/ktor-ktor-http/io/ktor/http/Parameters.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/Query.mjs +3 -3
- package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +58 -58
- package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
- package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
- package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +20 -20
- package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +25 -25
- package/ktor-ktor-http/io/ktor/http/Url.mjs +72 -72
- package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +25 -25
- package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
- package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
- package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +4 -4
- package/ktor-ktor-http-cio/io/ktor/http/cio/ChunkedTransferEncoding.mjs +106 -106
- package/ktor-ktor-http-cio/io/ktor/http/cio/ConnectionOptions.mjs +31 -31
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpBody.mjs +15 -15
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +100 -100
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +69 -69
- package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +113 -113
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponse.mjs +9 -9
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponseBuilderJs.mjs +21 -21
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +17 -17
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +70 -70
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +21 -21
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Tokenizer.mjs +7 -7
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +141 -141
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +75 -75
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +230 -230
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +72 -72
- package/ktor-ktor-io/io/ktor/utils/io/CloseHookByteWriteChannel.mjs +14 -14
- package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +26 -26
- package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
- package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
- package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
- package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
- package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +27 -27
- package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +1 -1
- package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs +9 -9
- package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs +50 -50
- package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs +104 -104
- package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs +1 -1
- package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs +30 -30
- package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs +7 -7
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs +9 -9
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs +1 -1
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +5 -5
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +58 -58
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +122 -122
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +4 -4
- package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +6 -6
- package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +11 -11
- package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
- package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +33 -33
- package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +31 -31
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
- package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +83 -83
- package/ktor-ktor-utils/io/ktor/util/Text.mjs +7 -7
- package/ktor-ktor-utils/io/ktor/util/collections/ConcurrentMapJs.mjs +29 -29
- package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +67 -67
- package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
- package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +6 -6
- package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
- package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/network/NetworkAddressJs.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +32 -32
- package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
- package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +49 -49
- package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
- package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +19 -19
- package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +41 -41
- package/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +5 -5
- package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +9 -9
- package/ktor-ktor-websockets/io/ktor/websocket/ProtocolViolationException.mjs +5 -5
- package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocketCommon.mjs +150 -150
- package/package.json +1 -1
|
@@ -42,37 +42,37 @@ var imul = Math.imul;
|
|
|
42
42
|
//region block: pre-declaration
|
|
43
43
|
//endregion
|
|
44
44
|
function throwEof($this, byteCount) {
|
|
45
|
-
throw EOFException().
|
|
45
|
+
throw EOFException().m2r("Buffer doesn't contain required number of bytes (size: " + $this.i1().toString() + ', required: ' + byteCount.toString() + ')');
|
|
46
46
|
}
|
|
47
47
|
var BufferClass;
|
|
48
48
|
function Buffer() {
|
|
49
49
|
if (BufferClass === VOID) {
|
|
50
50
|
class $ {
|
|
51
51
|
constructor() {
|
|
52
|
-
this.
|
|
53
|
-
this.
|
|
54
|
-
this.
|
|
52
|
+
this.g2r_1 = null;
|
|
53
|
+
this.h2r_1 = null;
|
|
54
|
+
this.i2r_1 = new (Long())(0, 0);
|
|
55
55
|
}
|
|
56
56
|
i1() {
|
|
57
|
-
return this.
|
|
57
|
+
return this.i2r_1;
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
n2r() {
|
|
60
60
|
return this;
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
o2r() {
|
|
63
63
|
return this.i1().equals(new (Long())(0, 0));
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
p2r(byteCount) {
|
|
66
66
|
// Inline function 'kotlin.require' call
|
|
67
67
|
if (!(byteCount.a2(new (Long())(0, 0)) >= 0)) {
|
|
68
68
|
var message = 'byteCount: ' + byteCount.toString();
|
|
69
69
|
throw IllegalArgumentException().u(toString(message));
|
|
70
70
|
}
|
|
71
71
|
if (this.i1().a2(byteCount) < 0) {
|
|
72
|
-
throw EOFException().
|
|
72
|
+
throw EOFException().m2r("Buffer doesn't contain required number of bytes (size: " + this.i1().toString() + ', required: ' + byteCount.toString() + ')');
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
q2r(byteCount) {
|
|
76
76
|
// Inline function 'kotlin.require' call
|
|
77
77
|
if (!(byteCount.a2(new (Long())(0, 0)) >= 0)) {
|
|
78
78
|
var message = 'byteCount: ' + byteCount.toString() + ' < 0';
|
|
@@ -80,8 +80,8 @@ function Buffer() {
|
|
|
80
80
|
}
|
|
81
81
|
return this.i1().a2(byteCount) >= 0;
|
|
82
82
|
}
|
|
83
|
-
|
|
84
|
-
var tmp0_elvis_lhs = this.
|
|
83
|
+
r2r() {
|
|
84
|
+
var tmp0_elvis_lhs = this.g2r_1;
|
|
85
85
|
var tmp;
|
|
86
86
|
if (tmp0_elvis_lhs == null) {
|
|
87
87
|
throwEof(this, new (Long())(1, 0));
|
|
@@ -91,18 +91,18 @@ function Buffer() {
|
|
|
91
91
|
var segment = tmp;
|
|
92
92
|
var segmentSize = segment.i1();
|
|
93
93
|
if (segmentSize === 0) {
|
|
94
|
-
this.
|
|
95
|
-
return this.
|
|
94
|
+
this.z2r();
|
|
95
|
+
return this.r2r();
|
|
96
96
|
}
|
|
97
|
-
var v = segment.
|
|
98
|
-
this.
|
|
97
|
+
var v = segment.a2s();
|
|
98
|
+
this.i2r_1 = this.i2r_1.q3(new (Long())(1, 0));
|
|
99
99
|
if (segmentSize === 1) {
|
|
100
|
-
this.
|
|
100
|
+
this.z2r();
|
|
101
101
|
}
|
|
102
102
|
return v;
|
|
103
103
|
}
|
|
104
|
-
|
|
105
|
-
var tmp0_elvis_lhs = this.
|
|
104
|
+
b2s() {
|
|
105
|
+
var tmp0_elvis_lhs = this.g2r_1;
|
|
106
106
|
var tmp;
|
|
107
107
|
if (tmp0_elvis_lhs == null) {
|
|
108
108
|
throwEof(this, new (Long())(2, 0));
|
|
@@ -112,26 +112,26 @@ function Buffer() {
|
|
|
112
112
|
var segment = tmp;
|
|
113
113
|
var segmentSize = segment.i1();
|
|
114
114
|
if (segmentSize < 2) {
|
|
115
|
-
this.
|
|
115
|
+
this.p2r(new (Long())(2, 0));
|
|
116
116
|
if (segmentSize === 0) {
|
|
117
|
-
this.
|
|
118
|
-
return this.
|
|
117
|
+
this.z2r();
|
|
118
|
+
return this.b2s();
|
|
119
119
|
}
|
|
120
120
|
// Inline function 'kotlinx.io.and' call
|
|
121
|
-
var tmp_0 = (this.
|
|
121
|
+
var tmp_0 = (this.r2r() & 255) << 8;
|
|
122
122
|
// Inline function 'kotlinx.io.and' call
|
|
123
|
-
var tmp$ret$1 = this.
|
|
123
|
+
var tmp$ret$1 = this.r2r() & 255;
|
|
124
124
|
return toShort(tmp_0 | tmp$ret$1);
|
|
125
125
|
}
|
|
126
|
-
var v = segment.
|
|
127
|
-
this.
|
|
126
|
+
var v = segment.c2s();
|
|
127
|
+
this.i2r_1 = this.i2r_1.q3(new (Long())(2, 0));
|
|
128
128
|
if (segmentSize === 2) {
|
|
129
|
-
this.
|
|
129
|
+
this.z2r();
|
|
130
130
|
}
|
|
131
131
|
return v;
|
|
132
132
|
}
|
|
133
|
-
|
|
134
|
-
var tmp0_elvis_lhs = this.
|
|
133
|
+
d2s() {
|
|
134
|
+
var tmp0_elvis_lhs = this.g2r_1;
|
|
135
135
|
var tmp;
|
|
136
136
|
if (tmp0_elvis_lhs == null) {
|
|
137
137
|
throwEof(this, new (Long())(4, 0));
|
|
@@ -141,22 +141,22 @@ function Buffer() {
|
|
|
141
141
|
var segment = tmp;
|
|
142
142
|
var segmentSize = segment.i1();
|
|
143
143
|
if (segmentSize < 4) {
|
|
144
|
-
this.
|
|
144
|
+
this.p2r(new (Long())(4, 0));
|
|
145
145
|
if (segmentSize === 0) {
|
|
146
|
-
this.
|
|
147
|
-
return this.
|
|
146
|
+
this.z2r();
|
|
147
|
+
return this.d2s();
|
|
148
148
|
}
|
|
149
|
-
return this.
|
|
149
|
+
return this.b2s() << 16 | this.b2s() & 65535;
|
|
150
150
|
}
|
|
151
|
-
var v = segment.
|
|
152
|
-
this.
|
|
151
|
+
var v = segment.e2s();
|
|
152
|
+
this.i2r_1 = this.i2r_1.q3(new (Long())(4, 0));
|
|
153
153
|
if (segmentSize === 4) {
|
|
154
|
-
this.
|
|
154
|
+
this.z2r();
|
|
155
155
|
}
|
|
156
156
|
return v;
|
|
157
157
|
}
|
|
158
|
-
|
|
159
|
-
var tmp0_elvis_lhs = this.
|
|
158
|
+
f2s() {
|
|
159
|
+
var tmp0_elvis_lhs = this.g2r_1;
|
|
160
160
|
var tmp;
|
|
161
161
|
if (tmp0_elvis_lhs == null) {
|
|
162
162
|
throwEof(this, new (Long())(8, 0));
|
|
@@ -166,116 +166,116 @@ function Buffer() {
|
|
|
166
166
|
var segment = tmp;
|
|
167
167
|
var segmentSize = segment.i1();
|
|
168
168
|
if (segmentSize < 8) {
|
|
169
|
-
this.
|
|
169
|
+
this.p2r(new (Long())(8, 0));
|
|
170
170
|
if (segmentSize === 0) {
|
|
171
|
-
this.
|
|
172
|
-
return this.
|
|
171
|
+
this.z2r();
|
|
172
|
+
return this.f2s();
|
|
173
173
|
}
|
|
174
|
-
return toLong(this.
|
|
174
|
+
return toLong(this.d2s()).z3(32).d4(toLong(this.d2s()).c4(new (Long())(-1, 0)));
|
|
175
175
|
}
|
|
176
|
-
var v = segment.
|
|
177
|
-
this.
|
|
176
|
+
var v = segment.g2s();
|
|
177
|
+
this.i2r_1 = this.i2r_1.q3(new (Long())(8, 0));
|
|
178
178
|
if (segmentSize === 8) {
|
|
179
|
-
this.
|
|
179
|
+
this.z2r();
|
|
180
180
|
}
|
|
181
181
|
return v;
|
|
182
182
|
}
|
|
183
|
-
|
|
183
|
+
h2s() {
|
|
184
184
|
return Unit_instance;
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
i2s(out, startIndex, endIndex) {
|
|
187
187
|
checkBounds(this.i1(), startIndex, endIndex);
|
|
188
188
|
if (startIndex.equals(endIndex))
|
|
189
189
|
return Unit_instance;
|
|
190
190
|
var currentOffset = startIndex;
|
|
191
191
|
var remainingByteCount = endIndex.q3(startIndex);
|
|
192
|
-
out.
|
|
193
|
-
var s = this.
|
|
194
|
-
while (currentOffset.a2(toLong(ensureNotNull(s).
|
|
195
|
-
currentOffset = currentOffset.q3(toLong(s.
|
|
196
|
-
s = s.
|
|
192
|
+
out.i2r_1 = out.i2r_1.p3(remainingByteCount);
|
|
193
|
+
var s = this.g2r_1;
|
|
194
|
+
while (currentOffset.a2(toLong(ensureNotNull(s).u2r_1 - s.t2r_1 | 0)) >= 0) {
|
|
195
|
+
currentOffset = currentOffset.q3(toLong(s.u2r_1 - s.t2r_1 | 0));
|
|
196
|
+
s = s.x2r_1;
|
|
197
197
|
}
|
|
198
198
|
while (remainingByteCount.a2(new (Long())(0, 0)) > 0) {
|
|
199
|
-
var copy = ensureNotNull(s).
|
|
200
|
-
copy.
|
|
199
|
+
var copy = ensureNotNull(s).j2s();
|
|
200
|
+
copy.t2r_1 = copy.t2r_1 + currentOffset.c2() | 0;
|
|
201
201
|
var tmp = copy;
|
|
202
|
-
var tmp0 = copy.
|
|
202
|
+
var tmp0 = copy.t2r_1 + remainingByteCount.c2() | 0;
|
|
203
203
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
204
|
-
var b = copy.
|
|
205
|
-
tmp.
|
|
204
|
+
var b = copy.u2r_1;
|
|
205
|
+
tmp.u2r_1 = Math.min(tmp0, b);
|
|
206
206
|
// Inline function 'kotlinx.io.Buffer.pushSegment' call
|
|
207
|
-
if (out.
|
|
208
|
-
out.
|
|
209
|
-
out.
|
|
207
|
+
if (out.g2r_1 == null) {
|
|
208
|
+
out.g2r_1 = copy;
|
|
209
|
+
out.h2r_1 = copy;
|
|
210
210
|
} else if (false) {
|
|
211
|
-
out.
|
|
212
|
-
if (ensureNotNull(out.
|
|
213
|
-
out.
|
|
211
|
+
out.h2r_1 = ensureNotNull(out.h2r_1).k2s(copy).l2s();
|
|
212
|
+
if (ensureNotNull(out.h2r_1).y2r_1 == null) {
|
|
213
|
+
out.g2r_1 = out.h2r_1;
|
|
214
214
|
}
|
|
215
215
|
} else {
|
|
216
|
-
out.
|
|
216
|
+
out.h2r_1 = ensureNotNull(out.h2r_1).k2s(copy);
|
|
217
217
|
}
|
|
218
|
-
remainingByteCount = remainingByteCount.q3(toLong(copy.
|
|
218
|
+
remainingByteCount = remainingByteCount.q3(toLong(copy.u2r_1 - copy.t2r_1 | 0));
|
|
219
219
|
currentOffset = new (Long())(0, 0);
|
|
220
|
-
s = s.
|
|
220
|
+
s = s.x2r_1;
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
m2s() {
|
|
224
224
|
var result = this.i1();
|
|
225
225
|
if (result.equals(new (Long())(0, 0)))
|
|
226
226
|
return new (Long())(0, 0);
|
|
227
|
-
var tail = ensureNotNull(this.
|
|
228
|
-
if (tail.
|
|
229
|
-
result = result.q3(toLong(tail.
|
|
227
|
+
var tail = ensureNotNull(this.h2r_1);
|
|
228
|
+
if (tail.u2r_1 < 8192 && tail.w2r_1) {
|
|
229
|
+
result = result.q3(toLong(tail.u2r_1 - tail.t2r_1 | 0));
|
|
230
230
|
}
|
|
231
231
|
return result;
|
|
232
232
|
}
|
|
233
|
-
|
|
233
|
+
n2s(position) {
|
|
234
234
|
if (position.a2(new (Long())(0, 0)) < 0 || position.a2(this.i1()) >= 0) {
|
|
235
235
|
throw IndexOutOfBoundsException().hf('position (' + position.toString() + ') is not within the range [0..size(' + this.i1().toString() + '))');
|
|
236
236
|
}
|
|
237
237
|
if (position.equals(new (Long())(0, 0))) {
|
|
238
|
-
return ensureNotNull(this.
|
|
238
|
+
return ensureNotNull(this.g2r_1).o2s(0);
|
|
239
239
|
}
|
|
240
240
|
// Inline function 'kotlinx.io.seek' call
|
|
241
|
-
if (this.
|
|
241
|
+
if (this.g2r_1 == null) {
|
|
242
242
|
var offset = new (Long())(-1, -1);
|
|
243
|
-
return ensureNotNull(null).
|
|
243
|
+
return ensureNotNull(null).o2s(position.q3(offset).c2());
|
|
244
244
|
}
|
|
245
245
|
if (this.i1().q3(position).a2(position) < 0) {
|
|
246
|
-
var s = this.
|
|
246
|
+
var s = this.h2r_1;
|
|
247
247
|
var offset_0 = this.i1();
|
|
248
248
|
$l$loop: while (!(s == null) && offset_0.a2(position) > 0) {
|
|
249
|
-
offset_0 = offset_0.q3(toLong(s.
|
|
249
|
+
offset_0 = offset_0.q3(toLong(s.u2r_1 - s.t2r_1 | 0));
|
|
250
250
|
if (offset_0.a2(position) <= 0)
|
|
251
251
|
break $l$loop;
|
|
252
|
-
s = s.
|
|
252
|
+
s = s.y2r_1;
|
|
253
253
|
}
|
|
254
254
|
var tmp0 = s;
|
|
255
255
|
var offset_1 = offset_0;
|
|
256
|
-
return ensureNotNull(tmp0).
|
|
256
|
+
return ensureNotNull(tmp0).o2s(position.q3(offset_1).c2());
|
|
257
257
|
} else {
|
|
258
|
-
var s_0 = this.
|
|
258
|
+
var s_0 = this.g2r_1;
|
|
259
259
|
var offset_2 = new (Long())(0, 0);
|
|
260
260
|
$l$loop_0: while (!(s_0 == null)) {
|
|
261
261
|
var tmp0_0 = offset_2;
|
|
262
262
|
// Inline function 'kotlin.Long.plus' call
|
|
263
|
-
var other = s_0.
|
|
263
|
+
var other = s_0.u2r_1 - s_0.t2r_1 | 0;
|
|
264
264
|
var nextOffset = tmp0_0.p3(toLong(other));
|
|
265
265
|
if (nextOffset.a2(position) > 0)
|
|
266
266
|
break $l$loop_0;
|
|
267
|
-
s_0 = s_0.
|
|
267
|
+
s_0 = s_0.x2r_1;
|
|
268
268
|
offset_2 = nextOffset;
|
|
269
269
|
}
|
|
270
270
|
var tmp0_1 = s_0;
|
|
271
271
|
var offset_3 = offset_2;
|
|
272
|
-
return ensureNotNull(tmp0_1).
|
|
272
|
+
return ensureNotNull(tmp0_1).o2s(position.q3(offset_3).c2());
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
z2() {
|
|
276
|
-
return this.
|
|
276
|
+
return this.p2s(this.i1());
|
|
277
277
|
}
|
|
278
|
-
|
|
278
|
+
p2s(byteCount) {
|
|
279
279
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
280
280
|
// Inline function 'kotlin.require' call
|
|
281
281
|
if (!(byteCount.a2(new (Long())(0, 0)) >= 0)) {
|
|
@@ -284,33 +284,33 @@ function Buffer() {
|
|
|
284
284
|
}
|
|
285
285
|
var remainingByteCount = byteCount;
|
|
286
286
|
while (remainingByteCount.a2(new (Long())(0, 0)) > 0) {
|
|
287
|
-
var tmp0_elvis_lhs = this.
|
|
287
|
+
var tmp0_elvis_lhs = this.g2r_1;
|
|
288
288
|
var tmp;
|
|
289
289
|
if (tmp0_elvis_lhs == null) {
|
|
290
|
-
throw EOFException().
|
|
290
|
+
throw EOFException().m2r('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
|
|
291
291
|
} else {
|
|
292
292
|
tmp = tmp0_elvis_lhs;
|
|
293
293
|
}
|
|
294
294
|
var head = tmp;
|
|
295
295
|
var tmp0 = remainingByteCount;
|
|
296
296
|
// Inline function 'kotlinx.io.minOf' call
|
|
297
|
-
var b = head.
|
|
297
|
+
var b = head.u2r_1 - head.t2r_1 | 0;
|
|
298
298
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
299
299
|
var b_0 = toLong(b);
|
|
300
300
|
var toSkip = (tmp0.a2(b_0) <= 0 ? tmp0 : b_0).c2();
|
|
301
|
-
this.
|
|
301
|
+
this.i2r_1 = this.i2r_1.q3(toLong(toSkip));
|
|
302
302
|
remainingByteCount = remainingByteCount.q3(toLong(toSkip));
|
|
303
|
-
head.
|
|
304
|
-
if (head.
|
|
305
|
-
this.
|
|
303
|
+
head.t2r_1 = head.t2r_1 + toSkip | 0;
|
|
304
|
+
if (head.t2r_1 === head.u2r_1) {
|
|
305
|
+
this.z2r();
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
|
|
309
|
+
q2s(sink, startIndex, endIndex) {
|
|
310
310
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
311
311
|
var size = sink.length;
|
|
312
312
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
313
|
-
var tmp0_elvis_lhs = this.
|
|
313
|
+
var tmp0_elvis_lhs = this.g2r_1;
|
|
314
314
|
var tmp;
|
|
315
315
|
if (tmp0_elvis_lhs == null) {
|
|
316
316
|
return -1;
|
|
@@ -322,14 +322,14 @@ function Buffer() {
|
|
|
322
322
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
323
323
|
var b = s.i1();
|
|
324
324
|
var toCopy = Math.min(tmp0, b);
|
|
325
|
-
s.
|
|
326
|
-
this.
|
|
325
|
+
s.r2s(sink, startIndex, startIndex + toCopy | 0);
|
|
326
|
+
this.i2r_1 = this.i2r_1.q3(toLong(toCopy));
|
|
327
327
|
if (isEmpty(s)) {
|
|
328
|
-
this.
|
|
328
|
+
this.z2r();
|
|
329
329
|
}
|
|
330
330
|
return toCopy;
|
|
331
331
|
}
|
|
332
|
-
|
|
332
|
+
s2s(sink, byteCount) {
|
|
333
333
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
334
334
|
// Inline function 'kotlin.require' call
|
|
335
335
|
if (!(byteCount.a2(new (Long())(0, 0)) >= 0)) {
|
|
@@ -339,10 +339,10 @@ function Buffer() {
|
|
|
339
339
|
if (this.i1().equals(new (Long())(0, 0)))
|
|
340
340
|
return new (Long())(-1, -1);
|
|
341
341
|
var bytesWritten = byteCount.a2(this.i1()) > 0 ? this.i1() : byteCount;
|
|
342
|
-
sink.
|
|
342
|
+
sink.t2s(this, bytesWritten);
|
|
343
343
|
return bytesWritten;
|
|
344
344
|
}
|
|
345
|
-
|
|
345
|
+
u2s(sink, byteCount) {
|
|
346
346
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
347
347
|
// Inline function 'kotlin.require' call
|
|
348
348
|
if (!(byteCount.a2(new (Long())(0, 0)) >= 0)) {
|
|
@@ -350,62 +350,62 @@ function Buffer() {
|
|
|
350
350
|
throw IllegalArgumentException().u(toString(message));
|
|
351
351
|
}
|
|
352
352
|
if (this.i1().a2(byteCount) < 0) {
|
|
353
|
-
sink.
|
|
354
|
-
throw EOFException().
|
|
353
|
+
sink.t2s(this, this.i1());
|
|
354
|
+
throw EOFException().m2r('Buffer exhausted before writing ' + byteCount.toString() + ' bytes. Only ' + this.i1().toString() + ' bytes were written.');
|
|
355
355
|
}
|
|
356
|
-
sink.
|
|
356
|
+
sink.t2s(this, byteCount);
|
|
357
357
|
}
|
|
358
|
-
|
|
358
|
+
v2s(sink) {
|
|
359
359
|
var byteCount = this.i1();
|
|
360
360
|
if (byteCount.a2(new (Long())(0, 0)) > 0) {
|
|
361
|
-
sink.
|
|
361
|
+
sink.t2s(this, byteCount);
|
|
362
362
|
}
|
|
363
363
|
return byteCount;
|
|
364
364
|
}
|
|
365
|
-
|
|
365
|
+
w2s() {
|
|
366
366
|
return buffered(new (PeekSource())(this));
|
|
367
367
|
}
|
|
368
|
-
|
|
368
|
+
x2s(minimumCapacity) {
|
|
369
369
|
// Inline function 'kotlin.require' call
|
|
370
370
|
if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
|
|
371
371
|
var message = 'unexpected capacity (' + minimumCapacity + '), should be in range [1, 8192]';
|
|
372
372
|
throw IllegalArgumentException().u(toString(message));
|
|
373
373
|
}
|
|
374
|
-
if (this.
|
|
375
|
-
var result = SegmentPool_instance.
|
|
376
|
-
this.
|
|
377
|
-
this.
|
|
374
|
+
if (this.h2r_1 == null) {
|
|
375
|
+
var result = SegmentPool_instance.a2t();
|
|
376
|
+
this.g2r_1 = result;
|
|
377
|
+
this.h2r_1 = result;
|
|
378
378
|
return result;
|
|
379
379
|
}
|
|
380
|
-
var t = ensureNotNull(this.
|
|
381
|
-
if ((t.
|
|
382
|
-
var newTail = t.
|
|
383
|
-
this.
|
|
380
|
+
var t = ensureNotNull(this.h2r_1);
|
|
381
|
+
if ((t.u2r_1 + minimumCapacity | 0) > 8192 || !t.w2r_1) {
|
|
382
|
+
var newTail = t.k2s(SegmentPool_instance.a2t());
|
|
383
|
+
this.h2r_1 = newTail;
|
|
384
384
|
return newTail;
|
|
385
385
|
}
|
|
386
386
|
return t;
|
|
387
387
|
}
|
|
388
|
-
|
|
388
|
+
b2t(source, startIndex, endIndex) {
|
|
389
389
|
// Inline function 'kotlinx.io.checkBounds' call
|
|
390
390
|
var size = source.length;
|
|
391
391
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
392
392
|
var currentOffset = startIndex;
|
|
393
393
|
while (currentOffset < endIndex) {
|
|
394
|
-
var tail = this.
|
|
394
|
+
var tail = this.x2s(1);
|
|
395
395
|
var tmp0 = endIndex - currentOffset | 0;
|
|
396
396
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
397
|
-
var b = tail.
|
|
397
|
+
var b = tail.c2t();
|
|
398
398
|
var toCopy = Math.min(tmp0, b);
|
|
399
|
-
tail.
|
|
399
|
+
tail.d2t(source, currentOffset, currentOffset + toCopy | 0);
|
|
400
400
|
currentOffset = currentOffset + toCopy | 0;
|
|
401
401
|
}
|
|
402
402
|
var tmp = this;
|
|
403
|
-
var tmp0_0 = this.
|
|
403
|
+
var tmp0_0 = this.i2r_1;
|
|
404
404
|
// Inline function 'kotlin.Long.plus' call
|
|
405
405
|
var other = endIndex - startIndex | 0;
|
|
406
|
-
tmp.
|
|
406
|
+
tmp.i2r_1 = tmp0_0.p3(toLong(other));
|
|
407
407
|
}
|
|
408
|
-
|
|
408
|
+
f2t(source, byteCount) {
|
|
409
409
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
410
410
|
// Inline function 'kotlin.require' call
|
|
411
411
|
if (!(byteCount.a2(new (Long())(0, 0)) >= 0)) {
|
|
@@ -414,108 +414,108 @@ function Buffer() {
|
|
|
414
414
|
}
|
|
415
415
|
var remainingByteCount = byteCount;
|
|
416
416
|
while (remainingByteCount.a2(new (Long())(0, 0)) > 0) {
|
|
417
|
-
var read = source.
|
|
417
|
+
var read = source.s2s(this, remainingByteCount);
|
|
418
418
|
if (read.equals(new (Long())(-1, -1))) {
|
|
419
|
-
throw EOFException().
|
|
419
|
+
throw EOFException().m2r('Source exhausted before reading ' + byteCount.toString() + ' bytes. ' + ('Only ' + byteCount.q3(remainingByteCount).toString() + ' were read.'));
|
|
420
420
|
}
|
|
421
421
|
remainingByteCount = remainingByteCount.q3(read);
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
|
|
424
|
+
t2s(source, byteCount) {
|
|
425
425
|
// Inline function 'kotlin.require' call
|
|
426
426
|
if (!!(source === this)) {
|
|
427
427
|
var message = 'source == this';
|
|
428
428
|
throw IllegalArgumentException().u(toString(message));
|
|
429
429
|
}
|
|
430
|
-
checkOffsetAndCount(source.
|
|
430
|
+
checkOffsetAndCount(source.i2r_1, new (Long())(0, 0), byteCount);
|
|
431
431
|
var remainingByteCount = byteCount;
|
|
432
432
|
while (remainingByteCount.a2(new (Long())(0, 0)) > 0) {
|
|
433
|
-
if (remainingByteCount.a2(toLong(ensureNotNull(source.
|
|
434
|
-
var tail = this.
|
|
433
|
+
if (remainingByteCount.a2(toLong(ensureNotNull(source.g2r_1).i1())) < 0) {
|
|
434
|
+
var tail = this.h2r_1;
|
|
435
435
|
var tmp;
|
|
436
|
-
if (!(tail == null) && tail.
|
|
436
|
+
if (!(tail == null) && tail.w2r_1) {
|
|
437
437
|
var tmp0 = remainingByteCount;
|
|
438
438
|
// Inline function 'kotlin.Long.plus' call
|
|
439
|
-
var other = tail.
|
|
439
|
+
var other = tail.u2r_1;
|
|
440
440
|
var tmp0_0 = tmp0.p3(toLong(other));
|
|
441
441
|
// Inline function 'kotlin.Long.minus' call
|
|
442
|
-
var other_0 = tail.
|
|
442
|
+
var other_0 = tail.g2t() ? 0 : tail.t2r_1;
|
|
443
443
|
tmp = tmp0_0.q3(toLong(other_0)).a2(new (Long())(8192, 0)) <= 0;
|
|
444
444
|
} else {
|
|
445
445
|
tmp = false;
|
|
446
446
|
}
|
|
447
447
|
if (tmp) {
|
|
448
|
-
ensureNotNull(source.
|
|
449
|
-
source.
|
|
450
|
-
this.
|
|
448
|
+
ensureNotNull(source.g2r_1).i2t(tail, remainingByteCount.c2());
|
|
449
|
+
source.i2r_1 = source.i2r_1.q3(remainingByteCount);
|
|
450
|
+
this.i2r_1 = this.i2r_1.p3(remainingByteCount);
|
|
451
451
|
return Unit_instance;
|
|
452
452
|
} else {
|
|
453
|
-
source.
|
|
453
|
+
source.g2r_1 = ensureNotNull(source.g2r_1).h2t(remainingByteCount.c2());
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
var segmentToMove = ensureNotNull(source.
|
|
456
|
+
var segmentToMove = ensureNotNull(source.g2r_1);
|
|
457
457
|
var movedByteCount = toLong(segmentToMove.i1());
|
|
458
|
-
source.
|
|
459
|
-
if (source.
|
|
460
|
-
source.
|
|
458
|
+
source.g2r_1 = segmentToMove.j2t();
|
|
459
|
+
if (source.g2r_1 == null) {
|
|
460
|
+
source.h2r_1 = null;
|
|
461
461
|
}
|
|
462
462
|
// Inline function 'kotlinx.io.Buffer.pushSegment' call
|
|
463
|
-
if (this.
|
|
464
|
-
this.
|
|
465
|
-
this.
|
|
463
|
+
if (this.g2r_1 == null) {
|
|
464
|
+
this.g2r_1 = segmentToMove;
|
|
465
|
+
this.h2r_1 = segmentToMove;
|
|
466
466
|
} else if (true) {
|
|
467
|
-
this.
|
|
468
|
-
if (ensureNotNull(this.
|
|
469
|
-
this.
|
|
467
|
+
this.h2r_1 = ensureNotNull(this.h2r_1).k2s(segmentToMove).l2s();
|
|
468
|
+
if (ensureNotNull(this.h2r_1).y2r_1 == null) {
|
|
469
|
+
this.g2r_1 = this.h2r_1;
|
|
470
470
|
}
|
|
471
471
|
} else {
|
|
472
|
-
this.
|
|
472
|
+
this.h2r_1 = ensureNotNull(this.h2r_1).k2s(segmentToMove);
|
|
473
473
|
}
|
|
474
|
-
source.
|
|
475
|
-
this.
|
|
474
|
+
source.i2r_1 = source.i2r_1.q3(movedByteCount);
|
|
475
|
+
this.i2r_1 = this.i2r_1.p3(movedByteCount);
|
|
476
476
|
remainingByteCount = remainingByteCount.q3(movedByteCount);
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
|
|
479
|
+
k2t(source) {
|
|
480
480
|
var totalBytesRead = new (Long())(0, 0);
|
|
481
481
|
$l$loop: while (true) {
|
|
482
|
-
var readCount = source.
|
|
482
|
+
var readCount = source.s2s(this, new (Long())(8192, 0));
|
|
483
483
|
if (readCount.equals(new (Long())(-1, -1)))
|
|
484
484
|
break $l$loop;
|
|
485
485
|
totalBytesRead = totalBytesRead.p3(readCount);
|
|
486
486
|
}
|
|
487
487
|
return totalBytesRead;
|
|
488
488
|
}
|
|
489
|
-
|
|
490
|
-
this.
|
|
491
|
-
this.
|
|
489
|
+
l2t(byte) {
|
|
490
|
+
this.x2s(1).m2t(byte);
|
|
491
|
+
this.i2r_1 = this.i2r_1.p3(new (Long())(1, 0));
|
|
492
492
|
}
|
|
493
|
-
|
|
494
|
-
this.
|
|
495
|
-
this.
|
|
493
|
+
n2t(short) {
|
|
494
|
+
this.x2s(2).o2t(short);
|
|
495
|
+
this.i2r_1 = this.i2r_1.p3(new (Long())(2, 0));
|
|
496
496
|
}
|
|
497
|
-
|
|
498
|
-
this.
|
|
499
|
-
this.
|
|
497
|
+
p2t(int) {
|
|
498
|
+
this.x2s(4).q2t(int);
|
|
499
|
+
this.i2r_1 = this.i2r_1.p3(new (Long())(4, 0));
|
|
500
500
|
}
|
|
501
|
-
|
|
502
|
-
this.
|
|
503
|
-
this.
|
|
501
|
+
r2t(long) {
|
|
502
|
+
this.x2s(8).s2t(long);
|
|
503
|
+
this.i2r_1 = this.i2r_1.p3(new (Long())(8, 0));
|
|
504
504
|
}
|
|
505
505
|
g1i() {
|
|
506
506
|
var result = new (Buffer())();
|
|
507
507
|
if (this.i1().equals(new (Long())(0, 0)))
|
|
508
508
|
return result;
|
|
509
|
-
var head = ensureNotNull(this.
|
|
510
|
-
var headCopy = head.
|
|
511
|
-
result.
|
|
512
|
-
result.
|
|
513
|
-
var s = head.
|
|
509
|
+
var head = ensureNotNull(this.g2r_1);
|
|
510
|
+
var headCopy = head.j2s();
|
|
511
|
+
result.g2r_1 = headCopy;
|
|
512
|
+
result.h2r_1 = headCopy;
|
|
513
|
+
var s = head.x2r_1;
|
|
514
514
|
while (!(s == null)) {
|
|
515
|
-
result.
|
|
516
|
-
s = s.
|
|
515
|
+
result.h2r_1 = ensureNotNull(result.h2r_1).k2s(s.j2s());
|
|
516
|
+
s = s.x2r_1;
|
|
517
517
|
}
|
|
518
|
-
result.
|
|
518
|
+
result.i2r_1 = this.i1();
|
|
519
519
|
return result;
|
|
520
520
|
}
|
|
521
521
|
v5() {
|
|
@@ -533,7 +533,7 @@ function Buffer() {
|
|
|
533
533
|
var builder = StringBuilder().mb(imul(len, 2) + (this.i1().a2(toLong(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
|
|
534
534
|
var bytesWritten = 0;
|
|
535
535
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
|
|
536
|
-
var curr = this.
|
|
536
|
+
var curr = this.g2r_1;
|
|
537
537
|
while (!(curr == null)) {
|
|
538
538
|
var tmp0 = get_SegmentReadContextImpl();
|
|
539
539
|
var segment = curr;
|
|
@@ -541,7 +541,7 @@ function Buffer() {
|
|
|
541
541
|
while (bytesWritten < len && idx < segment.i1()) {
|
|
542
542
|
var _unary__edvuaz = idx;
|
|
543
543
|
idx = _unary__edvuaz + 1 | 0;
|
|
544
|
-
var b_0 = tmp0.
|
|
544
|
+
var b_0 = tmp0.t2t(segment, _unary__edvuaz);
|
|
545
545
|
bytesWritten = bytesWritten + 1 | 0;
|
|
546
546
|
var tmp = get_HEX_DIGIT_CHARS();
|
|
547
547
|
// Inline function 'kotlinx.io.shr' call
|
|
@@ -552,39 +552,39 @@ function Buffer() {
|
|
|
552
552
|
var tmp$ret$3 = b_0 & 15;
|
|
553
553
|
tmp_0.kb(tmp_1[tmp$ret$3]);
|
|
554
554
|
}
|
|
555
|
-
curr = curr.
|
|
555
|
+
curr = curr.x2r_1;
|
|
556
556
|
}
|
|
557
557
|
if (this.i1().a2(toLong(maxPrintableBytes)) > 0) {
|
|
558
558
|
builder.kb(_Char___init__impl__6a9atx(8230));
|
|
559
559
|
}
|
|
560
560
|
return 'Buffer(size=' + this.i1().toString() + ' hex=' + builder.toString() + ')';
|
|
561
561
|
}
|
|
562
|
-
|
|
563
|
-
var oldHead = ensureNotNull(this.
|
|
564
|
-
var nextHead = oldHead.
|
|
565
|
-
this.
|
|
562
|
+
z2r() {
|
|
563
|
+
var oldHead = ensureNotNull(this.g2r_1);
|
|
564
|
+
var nextHead = oldHead.x2r_1;
|
|
565
|
+
this.g2r_1 = nextHead;
|
|
566
566
|
if (nextHead == null) {
|
|
567
|
-
this.
|
|
567
|
+
this.h2r_1 = null;
|
|
568
568
|
} else {
|
|
569
|
-
nextHead.
|
|
569
|
+
nextHead.y2r_1 = null;
|
|
570
570
|
}
|
|
571
|
-
oldHead.
|
|
572
|
-
SegmentPool_instance.
|
|
571
|
+
oldHead.x2r_1 = null;
|
|
572
|
+
SegmentPool_instance.u2t(oldHead);
|
|
573
573
|
}
|
|
574
|
-
|
|
575
|
-
var oldTail = ensureNotNull(this.
|
|
576
|
-
var newTail = oldTail.
|
|
577
|
-
this.
|
|
574
|
+
v2t() {
|
|
575
|
+
var oldTail = ensureNotNull(this.h2r_1);
|
|
576
|
+
var newTail = oldTail.y2r_1;
|
|
577
|
+
this.h2r_1 = newTail;
|
|
578
578
|
if (newTail == null) {
|
|
579
|
-
this.
|
|
579
|
+
this.g2r_1 = null;
|
|
580
580
|
} else {
|
|
581
|
-
newTail.
|
|
581
|
+
newTail.x2r_1 = null;
|
|
582
582
|
}
|
|
583
|
-
oldTail.
|
|
584
|
-
SegmentPool_instance.
|
|
583
|
+
oldTail.y2r_1 = null;
|
|
584
|
+
SegmentPool_instance.u2t(oldTail);
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
protoOf($).
|
|
587
|
+
protoOf($).e2t = write$default;
|
|
588
588
|
initMetadataForClass($, 'Buffer', Buffer, VOID, [Source(), Sink()]);
|
|
589
589
|
BufferClass = $;
|
|
590
590
|
}
|