@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
|
@@ -31,11 +31,11 @@ function Companion() {
|
|
|
31
31
|
if (CompanionClass === VOID) {
|
|
32
32
|
class $ {
|
|
33
33
|
constructor() {
|
|
34
|
-
this.
|
|
35
|
-
this.
|
|
34
|
+
this.f2u_1 = 8192;
|
|
35
|
+
this.g2u_1 = 1024;
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
return Segment().
|
|
37
|
+
h2u() {
|
|
38
|
+
return Segment().i2u();
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
initMetadataForCompanion($);
|
|
@@ -48,95 +48,95 @@ function Companion_getInstance() {
|
|
|
48
48
|
return Companion_instance;
|
|
49
49
|
}
|
|
50
50
|
function init_kotlinx_io_Segment(_this__u8e3s4) {
|
|
51
|
-
_this__u8e3s4.
|
|
52
|
-
_this__u8e3s4.
|
|
53
|
-
_this__u8e3s4.
|
|
54
|
-
_this__u8e3s4.
|
|
55
|
-
_this__u8e3s4.
|
|
56
|
-
_this__u8e3s4.
|
|
51
|
+
_this__u8e3s4.t2r_1 = 0;
|
|
52
|
+
_this__u8e3s4.u2r_1 = 0;
|
|
53
|
+
_this__u8e3s4.v2r_1 = null;
|
|
54
|
+
_this__u8e3s4.w2r_1 = false;
|
|
55
|
+
_this__u8e3s4.x2r_1 = null;
|
|
56
|
+
_this__u8e3s4.y2r_1 = null;
|
|
57
57
|
}
|
|
58
58
|
var SegmentClass;
|
|
59
59
|
function Segment() {
|
|
60
60
|
if (SegmentClass === VOID) {
|
|
61
61
|
class $ {
|
|
62
|
-
|
|
63
|
-
var tmp0_safe_receiver = this.
|
|
64
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
62
|
+
g2t() {
|
|
63
|
+
var tmp0_safe_receiver = this.v2r_1;
|
|
64
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j2u();
|
|
65
65
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
66
66
|
}
|
|
67
|
-
static
|
|
67
|
+
static i2u() {
|
|
68
68
|
var $this = createThis(this);
|
|
69
69
|
init_kotlinx_io_Segment($this);
|
|
70
|
-
$this.
|
|
71
|
-
$this.
|
|
72
|
-
$this.
|
|
70
|
+
$this.s2r_1 = new Int8Array(8192);
|
|
71
|
+
$this.w2r_1 = true;
|
|
72
|
+
$this.v2r_1 = null;
|
|
73
73
|
return $this;
|
|
74
74
|
}
|
|
75
|
-
static
|
|
75
|
+
static k2u(data, pos, limit, shareToken, owner) {
|
|
76
76
|
var $this = createThis(this);
|
|
77
77
|
init_kotlinx_io_Segment($this);
|
|
78
|
-
$this.
|
|
79
|
-
$this.
|
|
80
|
-
$this.
|
|
81
|
-
$this.
|
|
82
|
-
$this.
|
|
78
|
+
$this.s2r_1 = data;
|
|
79
|
+
$this.t2r_1 = pos;
|
|
80
|
+
$this.u2r_1 = limit;
|
|
81
|
+
$this.v2r_1 = shareToken;
|
|
82
|
+
$this.w2r_1 = owner;
|
|
83
83
|
return $this;
|
|
84
84
|
}
|
|
85
|
-
|
|
86
|
-
var tmp0_elvis_lhs = this.
|
|
85
|
+
j2s() {
|
|
86
|
+
var tmp0_elvis_lhs = this.v2r_1;
|
|
87
87
|
var tmp;
|
|
88
88
|
if (tmp0_elvis_lhs == null) {
|
|
89
89
|
// Inline function 'kotlin.also' call
|
|
90
|
-
var this_0 = SegmentPool_instance.
|
|
91
|
-
this.
|
|
90
|
+
var this_0 = SegmentPool_instance.l2u();
|
|
91
|
+
this.v2r_1 = this_0;
|
|
92
92
|
tmp = this_0;
|
|
93
93
|
} else {
|
|
94
94
|
tmp = tmp0_elvis_lhs;
|
|
95
95
|
}
|
|
96
96
|
var t = tmp;
|
|
97
|
-
var tmp_0 = this.
|
|
98
|
-
var tmp_1 = this.
|
|
97
|
+
var tmp_0 = this.t2r_1;
|
|
98
|
+
var tmp_1 = this.u2r_1;
|
|
99
99
|
// Inline function 'kotlin.also' call
|
|
100
|
-
t.
|
|
101
|
-
return Segment().
|
|
100
|
+
t.m2u();
|
|
101
|
+
return Segment().k2u(this.s2r_1, tmp_0, tmp_1, t, false);
|
|
102
102
|
}
|
|
103
|
-
|
|
104
|
-
var result = this.
|
|
105
|
-
if (!(this.
|
|
106
|
-
ensureNotNull(this.
|
|
103
|
+
j2t() {
|
|
104
|
+
var result = this.x2r_1;
|
|
105
|
+
if (!(this.y2r_1 == null)) {
|
|
106
|
+
ensureNotNull(this.y2r_1).x2r_1 = this.x2r_1;
|
|
107
107
|
}
|
|
108
|
-
if (!(this.
|
|
109
|
-
ensureNotNull(this.
|
|
108
|
+
if (!(this.x2r_1 == null)) {
|
|
109
|
+
ensureNotNull(this.x2r_1).y2r_1 = this.y2r_1;
|
|
110
110
|
}
|
|
111
|
-
this.
|
|
112
|
-
this.
|
|
111
|
+
this.x2r_1 = null;
|
|
112
|
+
this.y2r_1 = null;
|
|
113
113
|
return result;
|
|
114
114
|
}
|
|
115
|
-
|
|
116
|
-
segment.
|
|
117
|
-
segment.
|
|
118
|
-
if (!(this.
|
|
119
|
-
ensureNotNull(this.
|
|
115
|
+
k2s(segment) {
|
|
116
|
+
segment.y2r_1 = this;
|
|
117
|
+
segment.x2r_1 = this.x2r_1;
|
|
118
|
+
if (!(this.x2r_1 == null)) {
|
|
119
|
+
ensureNotNull(this.x2r_1).y2r_1 = segment;
|
|
120
120
|
}
|
|
121
|
-
this.
|
|
121
|
+
this.x2r_1 = segment;
|
|
122
122
|
return segment;
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
h2t(byteCount) {
|
|
125
125
|
// Inline function 'kotlin.require' call
|
|
126
|
-
if (!(byteCount > 0 && byteCount <= (this.
|
|
126
|
+
if (!(byteCount > 0 && byteCount <= (this.u2r_1 - this.t2r_1 | 0))) {
|
|
127
127
|
var message = 'byteCount out of range';
|
|
128
128
|
throw IllegalArgumentException().u(toString(message));
|
|
129
129
|
}
|
|
130
130
|
var prefix;
|
|
131
131
|
if (byteCount >= 1024) {
|
|
132
|
-
prefix = this.
|
|
132
|
+
prefix = this.j2s();
|
|
133
133
|
} else {
|
|
134
|
-
prefix = SegmentPool_instance.
|
|
135
|
-
var tmp0 = this.
|
|
136
|
-
var tmp2 = prefix.
|
|
137
|
-
var tmp4 = this.
|
|
134
|
+
prefix = SegmentPool_instance.a2t();
|
|
135
|
+
var tmp0 = this.s2r_1;
|
|
136
|
+
var tmp2 = prefix.s2r_1;
|
|
137
|
+
var tmp4 = this.t2r_1;
|
|
138
138
|
// Inline function 'kotlin.collections.copyInto' call
|
|
139
|
-
var endIndex = this.
|
|
139
|
+
var endIndex = this.t2r_1 + byteCount | 0;
|
|
140
140
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
141
141
|
// Inline function 'kotlin.js.asDynamic' call
|
|
142
142
|
var tmp = tmp0;
|
|
@@ -144,57 +144,57 @@ function Segment() {
|
|
|
144
144
|
// Inline function 'kotlin.js.asDynamic' call
|
|
145
145
|
arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
|
|
146
146
|
}
|
|
147
|
-
prefix.
|
|
148
|
-
this.
|
|
149
|
-
if (!(this.
|
|
150
|
-
ensureNotNull(this.
|
|
147
|
+
prefix.u2r_1 = prefix.t2r_1 + byteCount | 0;
|
|
148
|
+
this.t2r_1 = this.t2r_1 + byteCount | 0;
|
|
149
|
+
if (!(this.y2r_1 == null)) {
|
|
150
|
+
ensureNotNull(this.y2r_1).k2s(prefix);
|
|
151
151
|
} else {
|
|
152
|
-
prefix.
|
|
153
|
-
this.
|
|
152
|
+
prefix.x2r_1 = this;
|
|
153
|
+
this.y2r_1 = prefix;
|
|
154
154
|
}
|
|
155
155
|
return prefix;
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
l2s() {
|
|
158
158
|
// Inline function 'kotlin.check' call
|
|
159
|
-
if (!!(this.
|
|
159
|
+
if (!!(this.y2r_1 == null)) {
|
|
160
160
|
var message = 'cannot compact';
|
|
161
161
|
throw IllegalStateException().o4(toString(message));
|
|
162
162
|
}
|
|
163
|
-
if (!ensureNotNull(this.
|
|
163
|
+
if (!ensureNotNull(this.y2r_1).w2r_1)
|
|
164
164
|
return this;
|
|
165
|
-
var byteCount = this.
|
|
166
|
-
var availableByteCount = (8192 - ensureNotNull(this.
|
|
165
|
+
var byteCount = this.u2r_1 - this.t2r_1 | 0;
|
|
166
|
+
var availableByteCount = (8192 - ensureNotNull(this.y2r_1).u2r_1 | 0) + (ensureNotNull(this.y2r_1).g2t() ? 0 : ensureNotNull(this.y2r_1).t2r_1) | 0;
|
|
167
167
|
if (byteCount > availableByteCount)
|
|
168
168
|
return this;
|
|
169
|
-
var predecessor = this.
|
|
170
|
-
this.
|
|
171
|
-
var successor = this.
|
|
169
|
+
var predecessor = this.y2r_1;
|
|
170
|
+
this.i2t(ensureNotNull(predecessor), byteCount);
|
|
171
|
+
var successor = this.j2t();
|
|
172
172
|
// Inline function 'kotlin.check' call
|
|
173
173
|
if (!(successor == null)) {
|
|
174
174
|
throw IllegalStateException().o4('Check failed.');
|
|
175
175
|
}
|
|
176
|
-
SegmentPool_instance.
|
|
176
|
+
SegmentPool_instance.u2t(this);
|
|
177
177
|
return predecessor;
|
|
178
178
|
}
|
|
179
|
-
|
|
180
|
-
var _unary__edvuaz = this.
|
|
181
|
-
this.
|
|
182
|
-
this.
|
|
179
|
+
m2t(byte) {
|
|
180
|
+
var _unary__edvuaz = this.u2r_1;
|
|
181
|
+
this.u2r_1 = _unary__edvuaz + 1 | 0;
|
|
182
|
+
this.s2r_1[_unary__edvuaz] = byte;
|
|
183
183
|
}
|
|
184
|
-
|
|
185
|
-
var data = this.
|
|
186
|
-
var limit = this.
|
|
184
|
+
o2t(short) {
|
|
185
|
+
var data = this.s2r_1;
|
|
186
|
+
var limit = this.u2r_1;
|
|
187
187
|
var _unary__edvuaz = limit;
|
|
188
188
|
limit = _unary__edvuaz + 1 | 0;
|
|
189
189
|
data[_unary__edvuaz] = toByte((short >>> 8 | 0) & 255);
|
|
190
190
|
var _unary__edvuaz_0 = limit;
|
|
191
191
|
limit = _unary__edvuaz_0 + 1 | 0;
|
|
192
192
|
data[_unary__edvuaz_0] = toByte(short & 255);
|
|
193
|
-
this.
|
|
193
|
+
this.u2r_1 = limit;
|
|
194
194
|
}
|
|
195
|
-
|
|
196
|
-
var data = this.
|
|
197
|
-
var limit = this.
|
|
195
|
+
q2t(int) {
|
|
196
|
+
var data = this.s2r_1;
|
|
197
|
+
var limit = this.u2r_1;
|
|
198
198
|
var _unary__edvuaz = limit;
|
|
199
199
|
limit = _unary__edvuaz + 1 | 0;
|
|
200
200
|
data[_unary__edvuaz] = toByte((int >>> 24 | 0) & 255);
|
|
@@ -207,11 +207,11 @@ function Segment() {
|
|
|
207
207
|
var _unary__edvuaz_2 = limit;
|
|
208
208
|
limit = _unary__edvuaz_2 + 1 | 0;
|
|
209
209
|
data[_unary__edvuaz_2] = toByte(int & 255);
|
|
210
|
-
this.
|
|
210
|
+
this.u2r_1 = limit;
|
|
211
211
|
}
|
|
212
|
-
|
|
213
|
-
var data = this.
|
|
214
|
-
var limit = this.
|
|
212
|
+
s2t(long) {
|
|
213
|
+
var data = this.s2r_1;
|
|
214
|
+
var limit = this.u2r_1;
|
|
215
215
|
var _unary__edvuaz = limit;
|
|
216
216
|
limit = _unary__edvuaz + 1 | 0;
|
|
217
217
|
data[_unary__edvuaz] = long.b4(56).c4(new (Long())(255, 0)).f4();
|
|
@@ -236,16 +236,16 @@ function Segment() {
|
|
|
236
236
|
var _unary__edvuaz_6 = limit;
|
|
237
237
|
limit = _unary__edvuaz_6 + 1 | 0;
|
|
238
238
|
data[_unary__edvuaz_6] = long.c4(new (Long())(255, 0)).f4();
|
|
239
|
-
this.
|
|
239
|
+
this.u2r_1 = limit;
|
|
240
240
|
}
|
|
241
|
-
|
|
242
|
-
var _unary__edvuaz = this.
|
|
243
|
-
this.
|
|
244
|
-
return this.
|
|
241
|
+
a2s() {
|
|
242
|
+
var _unary__edvuaz = this.t2r_1;
|
|
243
|
+
this.t2r_1 = _unary__edvuaz + 1 | 0;
|
|
244
|
+
return this.s2r_1[_unary__edvuaz];
|
|
245
245
|
}
|
|
246
|
-
|
|
247
|
-
var data = this.
|
|
248
|
-
var pos = this.
|
|
246
|
+
c2s() {
|
|
247
|
+
var data = this.s2r_1;
|
|
248
|
+
var pos = this.t2r_1;
|
|
249
249
|
var _unary__edvuaz = pos;
|
|
250
250
|
pos = _unary__edvuaz + 1 | 0;
|
|
251
251
|
// Inline function 'kotlinx.io.and' call
|
|
@@ -255,12 +255,12 @@ function Segment() {
|
|
|
255
255
|
// Inline function 'kotlinx.io.and' call
|
|
256
256
|
var tmp$ret$1 = data[_unary__edvuaz_0] & 255;
|
|
257
257
|
var s = toShort(tmp | tmp$ret$1);
|
|
258
|
-
this.
|
|
258
|
+
this.t2r_1 = pos;
|
|
259
259
|
return s;
|
|
260
260
|
}
|
|
261
|
-
|
|
262
|
-
var data = this.
|
|
263
|
-
var pos = this.
|
|
261
|
+
e2s() {
|
|
262
|
+
var data = this.s2r_1;
|
|
263
|
+
var pos = this.t2r_1;
|
|
264
264
|
var _unary__edvuaz = pos;
|
|
265
265
|
pos = _unary__edvuaz + 1 | 0;
|
|
266
266
|
// Inline function 'kotlinx.io.and' call
|
|
@@ -277,12 +277,12 @@ function Segment() {
|
|
|
277
277
|
pos = _unary__edvuaz_2 + 1 | 0;
|
|
278
278
|
// Inline function 'kotlinx.io.and' call
|
|
279
279
|
var i = tmp_1 | data[_unary__edvuaz_2] & 255;
|
|
280
|
-
this.
|
|
280
|
+
this.t2r_1 = pos;
|
|
281
281
|
return i;
|
|
282
282
|
}
|
|
283
|
-
|
|
284
|
-
var data = this.
|
|
285
|
-
var pos = this.
|
|
283
|
+
g2s() {
|
|
284
|
+
var data = this.s2r_1;
|
|
285
|
+
var pos = this.t2r_1;
|
|
286
286
|
var _unary__edvuaz = pos;
|
|
287
287
|
pos = _unary__edvuaz + 1 | 0;
|
|
288
288
|
var tmp0 = data[_unary__edvuaz];
|
|
@@ -338,106 +338,106 @@ function Segment() {
|
|
|
338
338
|
var other_6 = new (Long())(255, 0);
|
|
339
339
|
var tmp$ret$7 = toLong(tmp0_6).c4(other_6);
|
|
340
340
|
var v = tmp_5.d4(tmp$ret$7);
|
|
341
|
-
this.
|
|
341
|
+
this.t2r_1 = pos;
|
|
342
342
|
return v;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
i2t(sink, byteCount) {
|
|
345
345
|
// Inline function 'kotlin.check' call
|
|
346
|
-
if (!sink.
|
|
346
|
+
if (!sink.w2r_1) {
|
|
347
347
|
var message = 'only owner can write';
|
|
348
348
|
throw IllegalStateException().o4(toString(message));
|
|
349
349
|
}
|
|
350
|
-
if ((sink.
|
|
351
|
-
if (sink.
|
|
350
|
+
if ((sink.u2r_1 + byteCount | 0) > 8192) {
|
|
351
|
+
if (sink.g2t())
|
|
352
352
|
throw IllegalArgumentException().te();
|
|
353
|
-
if (((sink.
|
|
353
|
+
if (((sink.u2r_1 + byteCount | 0) - sink.t2r_1 | 0) > 8192)
|
|
354
354
|
throw IllegalArgumentException().te();
|
|
355
|
-
var tmp0 = sink.
|
|
356
|
-
var tmp2 = sink.
|
|
357
|
-
var tmp4 = sink.
|
|
355
|
+
var tmp0 = sink.s2r_1;
|
|
356
|
+
var tmp2 = sink.s2r_1;
|
|
357
|
+
var tmp4 = sink.t2r_1;
|
|
358
358
|
// Inline function 'kotlin.collections.copyInto' call
|
|
359
|
-
var endIndex = sink.
|
|
359
|
+
var endIndex = sink.u2r_1;
|
|
360
360
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
361
361
|
// Inline function 'kotlin.js.asDynamic' call
|
|
362
362
|
var tmp = tmp0;
|
|
363
363
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
364
364
|
// Inline function 'kotlin.js.asDynamic' call
|
|
365
365
|
arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
|
|
366
|
-
sink.
|
|
367
|
-
sink.
|
|
366
|
+
sink.u2r_1 = sink.u2r_1 - sink.t2r_1 | 0;
|
|
367
|
+
sink.t2r_1 = 0;
|
|
368
368
|
}
|
|
369
|
-
var tmp0_0 = this.
|
|
370
|
-
var tmp2_0 = sink.
|
|
371
|
-
var tmp4_0 = sink.
|
|
372
|
-
var tmp6 = this.
|
|
369
|
+
var tmp0_0 = this.s2r_1;
|
|
370
|
+
var tmp2_0 = sink.s2r_1;
|
|
371
|
+
var tmp4_0 = sink.u2r_1;
|
|
372
|
+
var tmp6 = this.t2r_1;
|
|
373
373
|
// Inline function 'kotlin.collections.copyInto' call
|
|
374
|
-
var endIndex_0 = this.
|
|
374
|
+
var endIndex_0 = this.t2r_1 + byteCount | 0;
|
|
375
375
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
376
376
|
// Inline function 'kotlin.js.asDynamic' call
|
|
377
377
|
var tmp_0 = tmp0_0;
|
|
378
378
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
379
379
|
// Inline function 'kotlin.js.asDynamic' call
|
|
380
380
|
arrayCopy(tmp_0, tmp2_0, tmp4_0, tmp6, endIndex_0);
|
|
381
|
-
sink.
|
|
382
|
-
this.
|
|
381
|
+
sink.u2r_1 = sink.u2r_1 + byteCount | 0;
|
|
382
|
+
this.t2r_1 = this.t2r_1 + byteCount | 0;
|
|
383
383
|
}
|
|
384
|
-
|
|
384
|
+
r2s(dst, dstStartOffset, dstEndOffset) {
|
|
385
385
|
var len = dstEndOffset - dstStartOffset | 0;
|
|
386
|
-
var tmp0 = this.
|
|
387
|
-
var tmp6 = this.
|
|
386
|
+
var tmp0 = this.s2r_1;
|
|
387
|
+
var tmp6 = this.t2r_1;
|
|
388
388
|
// Inline function 'kotlin.collections.copyInto' call
|
|
389
|
-
var endIndex = this.
|
|
389
|
+
var endIndex = this.t2r_1 + len | 0;
|
|
390
390
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
391
391
|
// Inline function 'kotlin.js.asDynamic' call
|
|
392
392
|
var tmp = tmp0;
|
|
393
393
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
394
394
|
// Inline function 'kotlin.js.asDynamic' call
|
|
395
395
|
arrayCopy(tmp, dst, dstStartOffset, tmp6, endIndex);
|
|
396
|
-
this.
|
|
396
|
+
this.t2r_1 = this.t2r_1 + len | 0;
|
|
397
397
|
}
|
|
398
|
-
|
|
399
|
-
var tmp2 = this.
|
|
398
|
+
d2t(src, srcStartOffset, srcEndOffset) {
|
|
399
|
+
var tmp2 = this.s2r_1;
|
|
400
400
|
// Inline function 'kotlin.collections.copyInto' call
|
|
401
|
-
var destinationOffset = this.
|
|
401
|
+
var destinationOffset = this.u2r_1;
|
|
402
402
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
403
403
|
// Inline function 'kotlin.js.asDynamic' call
|
|
404
404
|
var tmp = src;
|
|
405
405
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
406
406
|
// Inline function 'kotlin.js.asDynamic' call
|
|
407
407
|
arrayCopy(tmp, tmp2, destinationOffset, srcStartOffset, srcEndOffset);
|
|
408
|
-
this.
|
|
408
|
+
this.u2r_1 = this.u2r_1 + (srcEndOffset - srcStartOffset | 0) | 0;
|
|
409
409
|
}
|
|
410
410
|
i1() {
|
|
411
|
-
return this.
|
|
411
|
+
return this.u2r_1 - this.t2r_1 | 0;
|
|
412
412
|
}
|
|
413
|
-
|
|
414
|
-
return this.
|
|
413
|
+
c2t() {
|
|
414
|
+
return this.s2r_1.length - this.u2r_1 | 0;
|
|
415
415
|
}
|
|
416
|
-
|
|
417
|
-
return this.
|
|
416
|
+
n2u(readOnly) {
|
|
417
|
+
return this.s2r_1;
|
|
418
418
|
}
|
|
419
|
-
|
|
420
|
-
return this.
|
|
419
|
+
o2s(index) {
|
|
420
|
+
return this.s2r_1[this.t2r_1 + index | 0];
|
|
421
421
|
}
|
|
422
|
-
|
|
423
|
-
this.
|
|
422
|
+
o2u(index, value) {
|
|
423
|
+
this.s2r_1[this.u2r_1 + index | 0] = value;
|
|
424
424
|
}
|
|
425
|
-
|
|
426
|
-
var d = this.
|
|
427
|
-
var l = this.
|
|
425
|
+
p2u(index, b0, b1) {
|
|
426
|
+
var d = this.s2r_1;
|
|
427
|
+
var l = this.u2r_1;
|
|
428
428
|
d[l + index | 0] = b0;
|
|
429
429
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
430
430
|
}
|
|
431
|
-
|
|
432
|
-
var d = this.
|
|
433
|
-
var l = this.
|
|
431
|
+
q2u(index, b0, b1, b2) {
|
|
432
|
+
var d = this.s2r_1;
|
|
433
|
+
var l = this.u2r_1;
|
|
434
434
|
d[l + index | 0] = b0;
|
|
435
435
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
436
436
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
437
437
|
}
|
|
438
|
-
|
|
439
|
-
var d = this.
|
|
440
|
-
var l = this.
|
|
438
|
+
r2u(index, b0, b1, b2, b3) {
|
|
439
|
+
var d = this.s2r_1;
|
|
440
|
+
var l = this.u2r_1;
|
|
441
441
|
d[l + index | 0] = b0;
|
|
442
442
|
d[(l + index | 0) + 1 | 0] = b1;
|
|
443
443
|
d[(l + index | 0) + 2 | 0] = b2;
|
|
@@ -470,10 +470,10 @@ function AlwaysSharedCopyTracker() {
|
|
|
470
470
|
super();
|
|
471
471
|
AlwaysSharedCopyTracker_instance = this;
|
|
472
472
|
}
|
|
473
|
-
|
|
473
|
+
j2u() {
|
|
474
474
|
return true;
|
|
475
475
|
}
|
|
476
|
-
|
|
476
|
+
m2u() {
|
|
477
477
|
return Unit_instance;
|
|
478
478
|
}
|
|
479
479
|
}
|
|
@@ -499,8 +499,8 @@ function indexOf(_this__u8e3s4, byte, startOffset, endOffset) {
|
|
|
499
499
|
var message_0 = '' + endOffset;
|
|
500
500
|
throw IllegalArgumentException().u(toString(message_0));
|
|
501
501
|
}
|
|
502
|
-
var p = _this__u8e3s4.
|
|
503
|
-
var data = _this__u8e3s4.
|
|
502
|
+
var p = _this__u8e3s4.t2r_1;
|
|
503
|
+
var data = _this__u8e3s4.n2u(true);
|
|
504
504
|
var inductionVariable = startOffset;
|
|
505
505
|
if (inductionVariable < endOffset)
|
|
506
506
|
do {
|
|
@@ -13,15 +13,15 @@ function SegmentPool() {
|
|
|
13
13
|
if (SegmentPoolClass === VOID) {
|
|
14
14
|
class $ {
|
|
15
15
|
constructor() {
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
16
|
+
this.y2s_1 = 0;
|
|
17
|
+
this.z2s_1 = 0;
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
return Companion_instance.
|
|
19
|
+
a2t() {
|
|
20
|
+
return Companion_instance.h2u();
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
u2t(segment) {
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
l2u() {
|
|
25
25
|
return AlwaysSharedCopyTracker_getInstance();
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -11,10 +11,10 @@ function write$default(source, startIndex, endIndex, $super) {
|
|
|
11
11
|
endIndex = endIndex === VOID ? source.length : endIndex;
|
|
12
12
|
var tmp;
|
|
13
13
|
if ($super === VOID) {
|
|
14
|
-
this.
|
|
14
|
+
this.b2t(source, startIndex, endIndex);
|
|
15
15
|
tmp = Unit_instance;
|
|
16
16
|
} else {
|
|
17
|
-
tmp = $super.
|
|
17
|
+
tmp = $super.b2t.call(this, source, startIndex, endIndex);
|
|
18
18
|
}
|
|
19
19
|
return tmp;
|
|
20
20
|
}
|
|
@@ -19,7 +19,7 @@ function writeUByte(_this__u8e3s4, byte) {
|
|
|
19
19
|
_init_properties_Sinks_kt__92ml72();
|
|
20
20
|
// Inline function 'kotlin.UByte.toByte' call
|
|
21
21
|
var tmp$ret$0 = _UByte___get_data__impl__jof9qr(byte);
|
|
22
|
-
_this__u8e3s4.
|
|
22
|
+
_this__u8e3s4.l2t(tmp$ret$0);
|
|
23
23
|
}
|
|
24
24
|
function writeUShortLe(_this__u8e3s4, short) {
|
|
25
25
|
_init_properties_Sinks_kt__92ml72();
|
|
@@ -35,11 +35,11 @@ function writeULongLe(_this__u8e3s4, long) {
|
|
|
35
35
|
}
|
|
36
36
|
function writeLongLe(_this__u8e3s4, long) {
|
|
37
37
|
_init_properties_Sinks_kt__92ml72();
|
|
38
|
-
_this__u8e3s4.
|
|
38
|
+
_this__u8e3s4.r2t(reverseBytes(long));
|
|
39
39
|
}
|
|
40
40
|
function writeShortLe(_this__u8e3s4, short) {
|
|
41
41
|
_init_properties_Sinks_kt__92ml72();
|
|
42
|
-
_this__u8e3s4.
|
|
42
|
+
_this__u8e3s4.n2t(reverseBytes_0(short));
|
|
43
43
|
}
|
|
44
44
|
var properties_initialized_Sinks_kt_u7wmts;
|
|
45
45
|
function _init_properties_Sinks_kt__92ml72() {
|
|
@@ -23,7 +23,7 @@ import { indexOfnhqfh629ytad as indexOf } from './Buffers.mjs';
|
|
|
23
23
|
//endregion
|
|
24
24
|
function readUByte(_this__u8e3s4) {
|
|
25
25
|
// Inline function 'kotlin.toUByte' call
|
|
26
|
-
var this_0 = _this__u8e3s4.
|
|
26
|
+
var this_0 = _this__u8e3s4.r2r();
|
|
27
27
|
return _UByte___init__impl__g9hnc4(this_0);
|
|
28
28
|
}
|
|
29
29
|
function readByteArray(_this__u8e3s4) {
|
|
@@ -50,31 +50,31 @@ function readULongLe(_this__u8e3s4) {
|
|
|
50
50
|
return _ULong___init__impl__c78o9k(this_0);
|
|
51
51
|
}
|
|
52
52
|
function readLongLe(_this__u8e3s4) {
|
|
53
|
-
return reverseBytes(_this__u8e3s4.
|
|
53
|
+
return reverseBytes(_this__u8e3s4.f2s());
|
|
54
54
|
}
|
|
55
55
|
function readByteArrayImpl(_this__u8e3s4, size) {
|
|
56
56
|
var arraySize = size;
|
|
57
57
|
if (size === -1) {
|
|
58
58
|
var fetchSize = new (Long())(2147483647, 0);
|
|
59
|
-
while (_this__u8e3s4.
|
|
59
|
+
while (_this__u8e3s4.n2r().i1().a2(new (Long())(2147483647, 0)) < 0 && _this__u8e3s4.q2r(fetchSize)) {
|
|
60
60
|
// Inline function 'kotlin.Long.times' call
|
|
61
61
|
fetchSize = fetchSize.r3(toLong(2));
|
|
62
62
|
}
|
|
63
63
|
// Inline function 'kotlin.check' call
|
|
64
|
-
if (!(_this__u8e3s4.
|
|
65
|
-
var message = "Can't create an array of size " + _this__u8e3s4.
|
|
64
|
+
if (!(_this__u8e3s4.n2r().i1().a2(new (Long())(2147483647, 0)) < 0)) {
|
|
65
|
+
var message = "Can't create an array of size " + _this__u8e3s4.n2r().i1().toString();
|
|
66
66
|
throw IllegalStateException().o4(toString(message));
|
|
67
67
|
}
|
|
68
|
-
arraySize = _this__u8e3s4.
|
|
68
|
+
arraySize = _this__u8e3s4.n2r().i1().c2();
|
|
69
69
|
} else {
|
|
70
|
-
_this__u8e3s4.
|
|
70
|
+
_this__u8e3s4.p2r(toLong(size));
|
|
71
71
|
}
|
|
72
72
|
var array = new Int8Array(arraySize);
|
|
73
|
-
readTo(_this__u8e3s4.
|
|
73
|
+
readTo(_this__u8e3s4.n2r(), array);
|
|
74
74
|
return array;
|
|
75
75
|
}
|
|
76
76
|
function readShortLe(_this__u8e3s4) {
|
|
77
|
-
return reverseBytes_0(_this__u8e3s4.
|
|
77
|
+
return reverseBytes_0(_this__u8e3s4.b2s());
|
|
78
78
|
}
|
|
79
79
|
function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
|
|
80
80
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -84,9 +84,9 @@ function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
|
|
|
84
84
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
85
85
|
var offset = startIndex;
|
|
86
86
|
while (offset < endIndex) {
|
|
87
|
-
var bytesRead = _this__u8e3s4.
|
|
87
|
+
var bytesRead = _this__u8e3s4.q2s(sink, offset, endIndex);
|
|
88
88
|
if (bytesRead === -1) {
|
|
89
|
-
throw EOFException().
|
|
89
|
+
throw EOFException().m2r('Source exhausted before reading ' + (endIndex - startIndex | 0) + ' bytes. ' + ('Only ' + bytesRead + ' bytes were read.'));
|
|
90
90
|
}
|
|
91
91
|
offset = offset + bytesRead | 0;
|
|
92
92
|
}
|
|
@@ -113,23 +113,23 @@ function indexOf_0(_this__u8e3s4, byte, startIndex, endIndex) {
|
|
|
113
113
|
if (offset.a2(endIndex) < 0) {
|
|
114
114
|
// Inline function 'kotlin.Long.plus' call
|
|
115
115
|
var tmp$ret$2 = offset.p3(toLong(1));
|
|
116
|
-
tmp_0 = _this__u8e3s4.
|
|
116
|
+
tmp_0 = _this__u8e3s4.q2r(tmp$ret$2);
|
|
117
117
|
} else {
|
|
118
118
|
tmp_0 = false;
|
|
119
119
|
}
|
|
120
120
|
if (!tmp_0) {
|
|
121
121
|
break $l$loop;
|
|
122
122
|
}
|
|
123
|
-
var tmp_1 = _this__u8e3s4.
|
|
123
|
+
var tmp_1 = _this__u8e3s4.n2r();
|
|
124
124
|
var tmp_2 = offset;
|
|
125
125
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
126
|
-
var b = _this__u8e3s4.
|
|
126
|
+
var b = _this__u8e3s4.n2r().i1();
|
|
127
127
|
var tmp$ret$3 = endIndex.a2(b) <= 0 ? endIndex : b;
|
|
128
128
|
var idx = indexOf(tmp_1, byte, tmp_2, tmp$ret$3);
|
|
129
129
|
if (!idx.equals(new (Long())(-1, -1))) {
|
|
130
130
|
return idx;
|
|
131
131
|
}
|
|
132
|
-
offset = _this__u8e3s4.
|
|
132
|
+
offset = _this__u8e3s4.n2r().i1();
|
|
133
133
|
}
|
|
134
134
|
return new (Long())(-1, -1);
|
|
135
135
|
}
|