From e2de09f89b70f2dec4ed6eefd3c2205e7a4b0636 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 11 Feb 2023 12:44:49 -0600 Subject: [PATCH] Generated updated documentation --- docs/package-list | 104 ++++++++++-------- .../-parcelable-saver.md | 7 +- .../-saver-scope/can-be-saved.md | 10 ++ .../-saver-scope/index.md | 18 +++ .../com.chrynan.parcelable.compose/-saver.md | 10 ++ .../-saver/index.md | 19 ++++ .../-saver/restore.md | 10 ++ .../-saver/save.md | 10 ++ .../auto-saver.md | 10 ++ .../com.chrynan.parcelable.compose/index.md | 18 ++- .../list-saver.md | 10 ++ .../map-saver.md | 10 ++ .../remember-savable.md | 6 +- .../remember-saveable.md | 23 ++++ .../-android-parcel/data-buffer-capacity.md | 2 + .../-android-parcel/data-position.md | 2 + .../-android-parcel/data-size.md | 2 + .../-android-parcel/equals.md | 6 + .../-android-parcel/hash-code.md | 6 + .../-android-parcel/index.md | 32 +++--- .../-android-parcel/recycle.md | 2 +- .../-android-parcel/set-data-position.md | 10 ++ .../-android-parcel/to-byte-array.md | 2 +- .../-android-parcel/to-string.md | 6 + .../data-buffer-capacity.md | 2 + .../-byte-array-parcel/data-index.md | 8 ++ .../-byte-array-parcel/data-item-count.md | 8 ++ .../-byte-array-parcel/data-position.md | 4 +- .../-byte-array-parcel/data-size.md | 2 + .../-byte-array-parcel/equals.md | 6 + .../-byte-array-parcel/hash-code.md | 6 + .../-byte-array-parcel/index.md | 18 ++- .../-byte-array-parcel/recycle.md | 2 +- .../-byte-array-parcel/set-data-position.md | 10 ++ .../-byte-array-parcel/to-byte-array.md | 2 +- .../-byte-array-parcel/to-string.md | 6 + .../-invalid-parcel-value-exception/index.md | 7 -- .../-parcel-decoder/-parcel-decoder.md | 2 +- .../-parcel-decoder/equals.md | 6 + .../-parcel-decoder/hash-code.md | 6 + .../-parcel-decoder/index.md | 15 ++- .../-parcel-decoder/to-string.md | 6 + .../-parcel-encoder/-parcel-encoder.md | 2 +- .../-parcel-encoder/equals.md | 6 + .../-parcel-encoder/hash-code.md | 6 + .../-parcel-encoder/index.md | 11 +- .../-parcel-encoder/to-string.md | 6 + .../com.chrynan.parcelable.core/-parcel.md | 5 + .../-parcel/data-buffer-capacity.md | 2 + .../-parcel/data-position.md | 2 + .../-parcel/data-remaining.md | 2 + .../-parcel/data-size.md | 2 + .../-parcel/index.md | 13 ++- .../-parcel/recycle.md | 2 +- .../-parcel/set-data-position.md | 10 ++ .../-parcel/to-byte-array.md | 2 +- .../index.md | 2 + .../-parcelable-configuration/index.md | 2 + .../-parcelable.md | 7 +- .../-parcelable/-custom/equals.md | 6 + .../-parcelable/-custom/hash-code.md | 6 + .../-parcelable/-custom/index.md | 17 ++- .../-parcelable/-custom/to-string.md | 6 + .../-parcelable/-default/index.md | 14 ++- .../-parcelable/decode-from-parcel.md | 13 ++- .../-parcelable/encode-to-parcel.md | 14 ++- .../-parcelable/index.md | 19 ++-- .../[android]decode-from-parcel.md | 25 +++++ .../[android]encode-to-parcel.md | 26 +++++ .../[jvm]decode-from-parcel.md | 25 +++++ .../[jvm]encode-to-parcel.md | 26 +++++ .../decode-from-bundle-or-null.md | 7 +- .../decode-from-bundle.md | 15 ++- .../decode-from-intent.md | 17 +++ .../decode-from-parcel.md | 24 ++-- .../encode-to-bundle.md | 17 ++- .../encode-to-intent.md | 17 +++ .../encode-to-parcel.md | 25 +++-- .../get-parcelable-extra.md | 13 ++- .../get-parcelable.md | 13 ++- .../com.chrynan.parcelable.core/index.md | 46 ++++---- .../com.chrynan.parcelable.core/put-extra.md | 13 ++- .../put-parcelable.md | 13 ++- .../read-from-parcel.md | 8 ++ .../reset-data-position.md | 8 ++ .../com.chrynan.parcelable.core/to-parcel.md | 8 ++ 86 files changed, 800 insertions(+), 174 deletions(-) create mode 100644 docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver-scope/can-be-saved.md create mode 100644 docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver-scope/index.md create mode 100644 docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver.md create mode 100644 docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver/index.md create mode 100644 docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver/restore.md create mode 100644 docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver/save.md create mode 100644 docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/auto-saver.md create mode 100644 docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/list-saver.md create mode 100644 docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/map-saver.md create mode 100644 docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/remember-saveable.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/equals.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/hash-code.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/set-data-position.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/to-string.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-index.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-item-count.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/equals.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/hash-code.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/set-data-position.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/to-string.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/equals.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/hash-code.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/to-string.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/equals.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/hash-code.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/to-string.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/set-data-position.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/equals.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/hash-code.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/to-string.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[android]decode-from-parcel.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[android]encode-to-parcel.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]decode-from-parcel.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]encode-to-parcel.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-intent.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-intent.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/read-from-parcel.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/reset-data-position.md create mode 100644 docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/to-parcel.md diff --git a/docs/package-list b/docs/package-list index 55b4823..5182ac4 100644 --- a/docs/package-list +++ b/docs/package-list @@ -2,59 +2,63 @@ $dokka.format:gfm-v1 $dokka.linkExtension:md $dokka.location:com.chrynan.parcelable.compose////PointingToDeclaration/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/index.md $dokka.location:com.chrynan.parcelable.compose//ParcelableSaver/#com.chrynan.parcelable.core.Parcelable#kotlinx.serialization.KSerializer[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-parcelable-saver.md +$dokka.location:com.chrynan.parcelable.compose//Saver/#kotlin.Function2[com.chrynan.parcelable.compose.SaverScope,TypeParam(bounds=[kotlin.Any?]),TypeParam(bounds=[kotlin.Any])?]#kotlin.Function1[TypeParam(bounds=[kotlin.Any]),TypeParam(bounds=[kotlin.Any?])?]/PointingToDeclaration/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver.md +$dokka.location:com.chrynan.parcelable.compose//autoSaver/#/PointingToDeclaration/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/auto-saver.md +$dokka.location:com.chrynan.parcelable.compose//listSaver/#kotlin.Function2[com.chrynan.parcelable.compose.SaverScope,TypeParam(bounds=[kotlin.Any?]),kotlin.collections.List[TypeParam(bounds=[kotlin.Any?])]]#kotlin.Function1[kotlin.collections.List[TypeParam(bounds=[kotlin.Any?])],TypeParam(bounds=[kotlin.Any?])?]/PointingToDeclaration/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/list-saver.md +$dokka.location:com.chrynan.parcelable.compose//mapSaver/#kotlin.Function2[com.chrynan.parcelable.compose.SaverScope,TypeParam(bounds=[kotlin.Any?]),kotlin.collections.Map[kotlin.String,kotlin.Any?]]#kotlin.Function1[kotlin.collections.Map[kotlin.String,kotlin.Any?],TypeParam(bounds=[kotlin.Any?])?]/PointingToDeclaration/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/map-saver.md $dokka.location:com.chrynan.parcelable.compose//rememberSavable/#kotlin.Array[kotlin.Any?]#com.chrynan.parcelable.core.Parcelable#kotlinx.serialization.KSerializer[TypeParam(bounds=[kotlin.Any])]#kotlin.String?#kotlin.Function0[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/remember-savable.md +$dokka.location:com.chrynan.parcelable.compose//rememberSaveable/#kotlin.Array[kotlin.Any?]#com.chrynan.parcelable.compose.Saver[TypeParam(bounds=[kotlin.Any?]),kotlin.Any]#kotlin.String?#kotlin.Function0[androidx.compose.runtime.MutableState[TypeParam(bounds=[kotlin.Any?])]]/PointingToDeclaration/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/remember-saveable.md +$dokka.location:com.chrynan.parcelable.compose//rememberSaveable/#kotlin.Array[kotlin.Any?]#com.chrynan.parcelable.compose.Saver[TypeParam(bounds=[kotlin.Any]),kotlin.Any]#kotlin.String?#kotlin.Function0[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/remember-saveable.md +$dokka.location:com.chrynan.parcelable.compose//rememberSaveable/#kotlin.Array[kotlin.Any?]#com.chrynan.parcelable.core.Parcelable#kotlinx.serialization.KSerializer[TypeParam(bounds=[kotlin.Any])]#kotlin.String?#kotlin.Function0[androidx.compose.runtime.MutableState[TypeParam(bounds=[kotlin.Any])]]/PointingToDeclaration/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/remember-saveable.md +$dokka.location:com.chrynan.parcelable.compose/Saver///PointingToDeclaration/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver/index.md +$dokka.location:com.chrynan.parcelable.compose/Saver/restore/#TypeParam(bounds=[kotlin.Any])/PointingToDeclaration/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver/restore.md +$dokka.location:com.chrynan.parcelable.compose/Saver/save/com.chrynan.parcelable.compose.SaverScope#TypeParam(bounds=[kotlin.Any?])/PointingToDeclaration/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver/save.md +$dokka.location:com.chrynan.parcelable.compose/SaverScope///PointingToDeclaration/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver-scope/index.md +$dokka.location:com.chrynan.parcelable.compose/SaverScope/canBeSaved/#kotlin.Any/PointingToDeclaration/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver-scope/can-be-saved.md $dokka.location:com.chrynan.parcelable.core////PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/index.md $dokka.location:com.chrynan.parcelable.core//Parcel/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel.md +$dokka.location:com.chrynan.parcelable.core//Parcel/#android.os.Parcel/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel.md $dokka.location:com.chrynan.parcelable.core//Parcel/#kotlin.ByteArray/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel.md $dokka.location:com.chrynan.parcelable.core//Parcelable/#com.chrynan.parcelable.core.Parcelable#kotlin.Function1[com.chrynan.parcelable.core.ParcelableConfigurationBuilder,kotlin.Unit]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable.md -$dokka.location:com.chrynan.parcelable.core//createFromParcel/com.chrynan.parcelable.core.AndroidParceler#android.os.Parcel/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/create-from-parcel.md -$dokka.location:com.chrynan.parcelable.core//decodeFromBundle/com.chrynan.parcelable.core.AndroidParceler#android.os.Bundle#kotlin.Int/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle.md -$dokka.location:com.chrynan.parcelable.core//decodeFromBundle/com.chrynan.parcelable.core.AndroidParceler#android.os.Bundle#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]#kotlin.Int/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle.md -$dokka.location:com.chrynan.parcelable.core//decodeFromBundle/com.chrynan.parcelable.core.AndroidParceler#android.os.Bundle#kotlinx.serialization.DeserializationStrategy[TypeParam(bounds=[kotlin.Any])]#kotlin.Int/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle.md $dokka.location:com.chrynan.parcelable.core//decodeFromBundle/com.chrynan.parcelable.core.Parcelable#android.os.Bundle#kotlin.Int/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle.md $dokka.location:com.chrynan.parcelable.core//decodeFromBundle/com.chrynan.parcelable.core.Parcelable#android.os.Bundle#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]#kotlin.Int/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle.md -$dokka.location:com.chrynan.parcelable.core//decodeFromBundle/com.chrynan.parcelable.core.Parcelable#android.os.Bundle#kotlinx.serialization.DeserializationStrategy[TypeParam(bounds=[kotlin.Any])]#kotlin.Int/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle.md -$dokka.location:com.chrynan.parcelable.core//decodeFromBundleOrNull/com.chrynan.parcelable.core.AndroidParceler#android.os.Bundle#kotlin.Int/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle-or-null.md -$dokka.location:com.chrynan.parcelable.core//decodeFromBundleOrNull/com.chrynan.parcelable.core.AndroidParceler#android.os.Bundle#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]#kotlin.Int/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle-or-null.md -$dokka.location:com.chrynan.parcelable.core//decodeFromBundleOrNull/com.chrynan.parcelable.core.Parcelable#android.os.Bundle#kotlin.Int#kotlinx.serialization.DeserializationStrategy[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle-or-null.md +$dokka.location:com.chrynan.parcelable.core//decodeFromBundle/com.chrynan.parcelable.core.Parcelable#android.os.Bundle#kotlinx.serialization.DeserializationStrategy[TypeParam(bounds=[kotlin.Any?])]#kotlin.Int/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle.md $dokka.location:com.chrynan.parcelable.core//decodeFromBundleOrNull/com.chrynan.parcelable.core.Parcelable#android.os.Bundle#kotlin.Int/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle-or-null.md $dokka.location:com.chrynan.parcelable.core//decodeFromBundleOrNull/com.chrynan.parcelable.core.Parcelable#android.os.Bundle#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]#kotlin.Int/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle-or-null.md -$dokka.location:com.chrynan.parcelable.core//decodeFromParcel/com.chrynan.parcelable.core.Parcelable#android.os.Parcel#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-parcel.md -$dokka.location:com.chrynan.parcelable.core//decodeFromParcel/com.chrynan.parcelable.core.Parcelable#android.os.Parcel#kotlinx.serialization.DeserializationStrategy[TypeParam(bounds=[kotlin.Any?])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-parcel.md -$dokka.location:com.chrynan.parcelable.core//decodeFromParcel/com.chrynan.parcelable.core.Parcelable#android.os.Parcel/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-parcel.md +$dokka.location:com.chrynan.parcelable.core//decodeFromIntent/com.chrynan.parcelable.core.Parcelable#kotlin.String#kotlin.Int#android.content.Intent/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-intent.md +$dokka.location:com.chrynan.parcelable.core//decodeFromIntent/com.chrynan.parcelable.core.Parcelable#kotlin.String#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]#kotlin.Int#android.content.Intent/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-intent.md +$dokka.location:com.chrynan.parcelable.core//decodeFromIntent/com.chrynan.parcelable.core.Parcelable#kotlin.String#kotlinx.serialization.DeserializationStrategy[TypeParam(bounds=[kotlin.Any?])]#kotlin.Int#android.content.Intent/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-intent.md +$dokka.location:com.chrynan.parcelable.core//decodeFromParcel/com.chrynan.parcelable.core.Parcelable#com.chrynan.parcelable.core.Parcel#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]decode-from-parcel.md $dokka.location:com.chrynan.parcelable.core//decodeFromParcel/com.chrynan.parcelable.core.Parcelable#com.chrynan.parcelable.core.Parcel/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-parcel.md -$dokka.location:com.chrynan.parcelable.core//decodeFromParcelOrNull/com.chrynan.parcelable.core.Parcelable#android.os.Parcel#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-parcel-or-null.md -$dokka.location:com.chrynan.parcelable.core//decodeFromParcelOrNull/com.chrynan.parcelable.core.Parcelable#android.os.Parcel#kotlinx.serialization.DeserializationStrategy[TypeParam(bounds=[kotlin.Any?])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-parcel-or-null.md -$dokka.location:com.chrynan.parcelable.core//decodeFromParcelOrNull/com.chrynan.parcelable.core.Parcelable#android.os.Parcel/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-parcel-or-null.md -$dokka.location:com.chrynan.parcelable.core//encodeToBundle/com.chrynan.parcelable.core.AndroidParceler#TypeParam(bounds=[kotlin.Any])#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-bundle.md -$dokka.location:com.chrynan.parcelable.core//encodeToBundle/com.chrynan.parcelable.core.AndroidParceler#TypeParam(bounds=[kotlin.Any])#kotlinx.serialization.SerializationStrategy[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-bundle.md -$dokka.location:com.chrynan.parcelable.core//encodeToBundle/com.chrynan.parcelable.core.AndroidParceler#TypeParam(bounds=[kotlin.Any])/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-bundle.md +$dokka.location:com.chrynan.parcelable.core//encodeToBundle/com.chrynan.parcelable.core.Parcelable#TypeParam(bounds=[kotlin.Any?])#kotlinx.serialization.SerializationStrategy[TypeParam(bounds=[kotlin.Any?])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-bundle.md +$dokka.location:com.chrynan.parcelable.core//encodeToBundle/com.chrynan.parcelable.core.Parcelable#TypeParam(bounds=[kotlin.Any?])/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-bundle.md $dokka.location:com.chrynan.parcelable.core//encodeToBundle/com.chrynan.parcelable.core.Parcelable#TypeParam(bounds=[kotlin.Any])#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-bundle.md -$dokka.location:com.chrynan.parcelable.core//encodeToBundle/com.chrynan.parcelable.core.Parcelable#TypeParam(bounds=[kotlin.Any])#kotlinx.serialization.SerializationStrategy[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-bundle.md -$dokka.location:com.chrynan.parcelable.core//encodeToBundle/com.chrynan.parcelable.core.Parcelable#TypeParam(bounds=[kotlin.Any])/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-bundle.md -$dokka.location:com.chrynan.parcelable.core//encodeToParcel/com.chrynan.parcelable.core.Parcelable#android.os.Parcel#TypeParam(bounds=[kotlin.Any?])/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-parcel.md -$dokka.location:com.chrynan.parcelable.core//encodeToParcel/com.chrynan.parcelable.core.Parcelable#android.os.Parcel#TypeParam(bounds=[kotlin.Any])#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-parcel.md -$dokka.location:com.chrynan.parcelable.core//encodeToParcel/com.chrynan.parcelable.core.Parcelable#android.os.Parcel#kotlinx.serialization.SerializationStrategy[TypeParam(bounds=[kotlin.Any?])]#TypeParam(bounds=[kotlin.Any?])/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-parcel.md +$dokka.location:com.chrynan.parcelable.core//encodeToIntent/com.chrynan.parcelable.core.Parcelable#kotlin.String#TypeParam(bounds=[kotlin.Any?])#android.content.Intent/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-intent.md +$dokka.location:com.chrynan.parcelable.core//encodeToIntent/com.chrynan.parcelable.core.Parcelable#kotlin.String#TypeParam(bounds=[kotlin.Any?])#kotlinx.serialization.SerializationStrategy[TypeParam(bounds=[kotlin.Any?])]#android.content.Intent/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-intent.md +$dokka.location:com.chrynan.parcelable.core//encodeToIntent/com.chrynan.parcelable.core.Parcelable#kotlin.String#TypeParam(bounds=[kotlin.Any])#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]#android.content.Intent/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-intent.md $dokka.location:com.chrynan.parcelable.core//encodeToParcel/com.chrynan.parcelable.core.Parcelable#com.chrynan.parcelable.core.Parcel#TypeParam(bounds=[kotlin.Any?])/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-parcel.md -$dokka.location:com.chrynan.parcelable.core//getParcelable/android.os.Bundle#kotlin.String#com.chrynan.parcelable.core.AndroidParceler/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable.md -$dokka.location:com.chrynan.parcelable.core//getParcelable/android.os.Bundle#kotlin.String#com.chrynan.parcelable.core.Parcelable#kotlinx.serialization.DeserializationStrategy[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable.md -$dokka.location:com.chrynan.parcelable.core//getParcelable/android.os.Bundle#kotlin.String#com.chrynan.parcelable.core.Parcelable/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable.md -$dokka.location:com.chrynan.parcelable.core//getParcelableExtra/android.content.Intent#kotlin.String#com.chrynan.parcelable.core.AndroidParceler/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable-extra.md -$dokka.location:com.chrynan.parcelable.core//getParcelableExtra/android.content.Intent#kotlin.String#com.chrynan.parcelable.core.Parcelable#kotlinx.serialization.DeserializationStrategy[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable-extra.md -$dokka.location:com.chrynan.parcelable.core//getParcelableExtra/android.content.Intent#kotlin.String#com.chrynan.parcelable.core.Parcelable/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable-extra.md -$dokka.location:com.chrynan.parcelable.core//newArrayInline/com.chrynan.parcelable.core.AndroidParceler#kotlin.Int/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/new-array-inline.md -$dokka.location:com.chrynan.parcelable.core//putExtra/android.content.Intent#kotlin.String#TypeParam(bounds=[kotlin.Any])#com.chrynan.parcelable.core.AndroidParceler/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-extra.md -$dokka.location:com.chrynan.parcelable.core//putExtra/android.content.Intent#kotlin.String#TypeParam(bounds=[kotlin.Any])#com.chrynan.parcelable.core.Parcelable#kotlinx.serialization.SerializationStrategy[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-extra.md -$dokka.location:com.chrynan.parcelable.core//putExtra/android.content.Intent#kotlin.String#TypeParam(bounds=[kotlin.Any])#com.chrynan.parcelable.core.Parcelable/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-extra.md -$dokka.location:com.chrynan.parcelable.core//putParcelable/android.os.Bundle#kotlin.String#TypeParam(bounds=[kotlin.Any])#com.chrynan.parcelable.core.AndroidParceler/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-parcelable.md -$dokka.location:com.chrynan.parcelable.core//putParcelable/android.os.Bundle#kotlin.String#TypeParam(bounds=[kotlin.Any])#com.chrynan.parcelable.core.Parcelable#kotlinx.serialization.SerializationStrategy[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-parcelable.md -$dokka.location:com.chrynan.parcelable.core//putParcelable/android.os.Bundle#kotlin.String#TypeParam(bounds=[kotlin.Any])#com.chrynan.parcelable.core.Parcelable/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-parcelable.md -$dokka.location:com.chrynan.parcelable.core//writeToParcel/com.chrynan.parcelable.core.AndroidParceler#TypeParam(bounds=[kotlin.Any])#android.os.Parcel/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/write-to-parcel.md +$dokka.location:com.chrynan.parcelable.core//encodeToParcel/com.chrynan.parcelable.core.Parcelable#com.chrynan.parcelable.core.Parcel#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]#TypeParam(bounds=[kotlin.Any])/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]encode-to-parcel.md +$dokka.location:com.chrynan.parcelable.core//getParcelable/android.os.Bundle#kotlin.String#kotlin.Int#com.chrynan.parcelable.core.Parcelable/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable.md +$dokka.location:com.chrynan.parcelable.core//getParcelable/android.os.Bundle#kotlin.String#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]#kotlin.Int#com.chrynan.parcelable.core.Parcelable/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable.md +$dokka.location:com.chrynan.parcelable.core//getParcelable/android.os.Bundle#kotlin.String#kotlinx.serialization.DeserializationStrategy[TypeParam(bounds=[kotlin.Any?])]#kotlin.Int#com.chrynan.parcelable.core.Parcelable/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable.md +$dokka.location:com.chrynan.parcelable.core//getParcelableExtra/android.content.Intent#kotlin.String#kotlin.Int#com.chrynan.parcelable.core.Parcelable/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable-extra.md +$dokka.location:com.chrynan.parcelable.core//getParcelableExtra/android.content.Intent#kotlin.String#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]#kotlin.Int#com.chrynan.parcelable.core.Parcelable/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable-extra.md +$dokka.location:com.chrynan.parcelable.core//getParcelableExtra/android.content.Intent#kotlin.String#kotlinx.serialization.DeserializationStrategy[TypeParam(bounds=[kotlin.Any])]#kotlin.Int#com.chrynan.parcelable.core.Parcelable/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable-extra.md +$dokka.location:com.chrynan.parcelable.core//putExtra/android.content.Intent#kotlin.String#TypeParam(bounds=[kotlin.Any?])#com.chrynan.parcelable.core.Parcelable/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-extra.md +$dokka.location:com.chrynan.parcelable.core//putExtra/android.content.Intent#kotlin.String#TypeParam(bounds=[kotlin.Any?])#kotlinx.serialization.SerializationStrategy[TypeParam(bounds=[kotlin.Any?])]#com.chrynan.parcelable.core.Parcelable/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-extra.md +$dokka.location:com.chrynan.parcelable.core//putExtra/android.content.Intent#kotlin.String#TypeParam(bounds=[kotlin.Any])#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]#com.chrynan.parcelable.core.Parcelable/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-extra.md +$dokka.location:com.chrynan.parcelable.core//putParcelable/android.os.Bundle#kotlin.String#TypeParam(bounds=[kotlin.Any?])#com.chrynan.parcelable.core.Parcelable/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-parcelable.md +$dokka.location:com.chrynan.parcelable.core//putParcelable/android.os.Bundle#kotlin.String#TypeParam(bounds=[kotlin.Any?])#kotlinx.serialization.SerializationStrategy[TypeParam(bounds=[kotlin.Any?])]#com.chrynan.parcelable.core.Parcelable/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-parcelable.md +$dokka.location:com.chrynan.parcelable.core//putParcelable/android.os.Bundle#kotlin.String#TypeParam(bounds=[kotlin.Any])#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]#com.chrynan.parcelable.core.Parcelable/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-parcelable.md +$dokka.location:com.chrynan.parcelable.core//readFromParcel/android.os.Bundle#com.chrynan.parcelable.core.Parcel/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/read-from-parcel.md +$dokka.location:com.chrynan.parcelable.core//resetDataPosition/com.chrynan.parcelable.core.Parcel#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/reset-data-position.md +$dokka.location:com.chrynan.parcelable.core//toParcel/android.os.Parcel#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/to-parcel.md $dokka.location:com.chrynan.parcelable.core/AndroidParcel///PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/index.md -$dokka.location:com.chrynan.parcelable.core/AndroidParcel/AndroidParcel/#android.os.Parcel/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/-android-parcel.md $dokka.location:com.chrynan.parcelable.core/AndroidParcel/dataBufferCapacity/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/data-buffer-capacity.md $dokka.location:com.chrynan.parcelable.core/AndroidParcel/dataPosition/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/data-position.md $dokka.location:com.chrynan.parcelable.core/AndroidParcel/dataSize/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/data-size.md +$dokka.location:com.chrynan.parcelable.core/AndroidParcel/equals/#kotlin.Any?/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/equals.md +$dokka.location:com.chrynan.parcelable.core/AndroidParcel/hashCode/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/hash-code.md $dokka.location:com.chrynan.parcelable.core/AndroidParcel/isRecycled/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/is-recycled.md $dokka.location:com.chrynan.parcelable.core/AndroidParcel/readBoolean/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/read-boolean.md $dokka.location:com.chrynan.parcelable.core/AndroidParcel/readByte/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/read-byte.md @@ -66,7 +70,9 @@ $dokka.location:com.chrynan.parcelable.core/AndroidParcel/readLong/#/PointingToD $dokka.location:com.chrynan.parcelable.core/AndroidParcel/readShort/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/read-short.md $dokka.location:com.chrynan.parcelable.core/AndroidParcel/readString/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/read-string.md $dokka.location:com.chrynan.parcelable.core/AndroidParcel/recycle/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/recycle.md +$dokka.location:com.chrynan.parcelable.core/AndroidParcel/setDataPosition/#kotlin.Int/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/set-data-position.md $dokka.location:com.chrynan.parcelable.core/AndroidParcel/toByteArray/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/to-byte-array.md +$dokka.location:com.chrynan.parcelable.core/AndroidParcel/toString/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/to-string.md $dokka.location:com.chrynan.parcelable.core/AndroidParcel/writeBoolean/#kotlin.Boolean/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/write-boolean.md $dokka.location:com.chrynan.parcelable.core/AndroidParcel/writeByte/#kotlin.Byte/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/write-byte.md $dokka.location:com.chrynan.parcelable.core/AndroidParcel/writeChar/#kotlin.Char/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/write-char.md @@ -76,19 +82,15 @@ $dokka.location:com.chrynan.parcelable.core/AndroidParcel/writeInt/#kotlin.Int/P $dokka.location:com.chrynan.parcelable.core/AndroidParcel/writeLong/#kotlin.Long/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/write-long.md $dokka.location:com.chrynan.parcelable.core/AndroidParcel/writeShort/#kotlin.Short/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/write-short.md $dokka.location:com.chrynan.parcelable.core/AndroidParcel/writeString/#kotlin.String/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/write-string.md -$dokka.location:com.chrynan.parcelable.core/AndroidParceler///PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parceler/index.md -$dokka.location:com.chrynan.parcelable.core/AndroidParceler/AndroidParceler/#com.chrynan.parcelable.core.Parcelable/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parceler/-android-parceler.md -$dokka.location:com.chrynan.parcelable.core/AndroidParceler/createFromParcel/#android.os.Parcel#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parceler/create-from-parcel.md -$dokka.location:com.chrynan.parcelable.core/AndroidParceler/createFromParcel/#android.os.Parcel#kotlinx.serialization.DeserializationStrategy[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parceler/create-from-parcel.md -$dokka.location:com.chrynan.parcelable.core/AndroidParceler/describeContents/#TypeParam(bounds=[kotlin.Any?])/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parceler/describe-contents.md -$dokka.location:com.chrynan.parcelable.core/AndroidParceler/newArray/#kotlin.Int/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parceler/new-array.md -$dokka.location:com.chrynan.parcelable.core/AndroidParceler/writeToParcel/#TypeParam(bounds=[kotlin.Any])#android.os.Parcel#kotlin.reflect.KClass[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parceler/write-to-parcel.md -$dokka.location:com.chrynan.parcelable.core/AndroidParceler/writeToParcel/#TypeParam(bounds=[kotlin.Any])#android.os.Parcel#kotlinx.serialization.SerializationStrategy[TypeParam(bounds=[kotlin.Any])]/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parceler/write-to-parcel.md $dokka.location:com.chrynan.parcelable.core/ByteArrayParcel.Companion///PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/-companion/index.md $dokka.location:com.chrynan.parcelable.core/ByteArrayParcel///PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/index.md $dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/dataBufferCapacity/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-buffer-capacity.md +$dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/dataIndex/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-index.md +$dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/dataItemCount/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-item-count.md $dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/dataPosition/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-position.md $dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/dataSize/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-size.md +$dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/equals/#kotlin.Any?/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/equals.md +$dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/hashCode/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/hash-code.md $dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/isRecycled/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/is-recycled.md $dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/readBoolean/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/read-boolean.md $dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/readByte/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/read-byte.md @@ -100,7 +102,9 @@ $dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/readLong/#/PointingT $dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/readShort/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/read-short.md $dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/readString/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/read-string.md $dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/recycle/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/recycle.md +$dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/setDataPosition/#kotlin.Int/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/set-data-position.md $dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/toByteArray/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/to-byte-array.md +$dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/toString/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/to-string.md $dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/writeBoolean/#kotlin.Boolean/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/write-boolean.md $dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/writeByte/#kotlin.Byte/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/write-byte.md $dokka.location:com.chrynan.parcelable.core/ByteArrayParcel/writeChar/#kotlin.Char/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/write-char.md @@ -139,6 +143,7 @@ $dokka.location:com.chrynan.parcelable.core/Parcel/dataRemaining/#/PointingToDec $dokka.location:com.chrynan.parcelable.core/Parcel/dataSize/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-size.md $dokka.location:com.chrynan.parcelable.core/Parcel/isRecycled/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/is-recycled.md $dokka.location:com.chrynan.parcelable.core/Parcel/recycle/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/recycle.md +$dokka.location:com.chrynan.parcelable.core/Parcel/setDataPosition/#kotlin.Int/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/set-data-position.md $dokka.location:com.chrynan.parcelable.core/Parcel/toByteArray/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/to-byte-array.md $dokka.location:com.chrynan.parcelable.core/ParcelDecoder///PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/index.md $dokka.location:com.chrynan.parcelable.core/ParcelDecoder/ParcelDecoder/#kotlinx.serialization.modules.SerializersModule#com.chrynan.parcelable.core.Parcel/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/-parcel-decoder.md @@ -157,7 +162,10 @@ $dokka.location:com.chrynan.parcelable.core/ParcelDecoder/decodeNotNullMark/#/Po $dokka.location:com.chrynan.parcelable.core/ParcelDecoder/decodeSequentially/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/decode-sequentially.md $dokka.location:com.chrynan.parcelable.core/ParcelDecoder/decodeShort/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/decode-short.md $dokka.location:com.chrynan.parcelable.core/ParcelDecoder/decodeString/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/decode-string.md +$dokka.location:com.chrynan.parcelable.core/ParcelDecoder/equals/#kotlin.Any?/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/equals.md +$dokka.location:com.chrynan.parcelable.core/ParcelDecoder/hashCode/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/hash-code.md $dokka.location:com.chrynan.parcelable.core/ParcelDecoder/serializersModule/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/serializers-module.md +$dokka.location:com.chrynan.parcelable.core/ParcelDecoder/toString/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/to-string.md $dokka.location:com.chrynan.parcelable.core/ParcelEncoder///PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/index.md $dokka.location:com.chrynan.parcelable.core/ParcelEncoder/ParcelEncoder/#kotlinx.serialization.modules.SerializersModule#com.chrynan.parcelable.core.Parcel/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/-parcel-encoder.md $dokka.location:com.chrynan.parcelable.core/ParcelEncoder/beginCollection/#kotlinx.serialization.descriptors.SerialDescriptor#kotlin.Int/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/begin-collection.md @@ -173,8 +181,14 @@ $dokka.location:com.chrynan.parcelable.core/ParcelEncoder/encodeNotNullMark/#/Po $dokka.location:com.chrynan.parcelable.core/ParcelEncoder/encodeNull/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/encode-null.md $dokka.location:com.chrynan.parcelable.core/ParcelEncoder/encodeShort/#kotlin.Short/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/encode-short.md $dokka.location:com.chrynan.parcelable.core/ParcelEncoder/encodeString/#kotlin.String/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/encode-string.md +$dokka.location:com.chrynan.parcelable.core/ParcelEncoder/equals/#kotlin.Any?/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/equals.md +$dokka.location:com.chrynan.parcelable.core/ParcelEncoder/hashCode/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/hash-code.md $dokka.location:com.chrynan.parcelable.core/ParcelEncoder/serializersModule/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/serializers-module.md +$dokka.location:com.chrynan.parcelable.core/ParcelEncoder/toString/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/to-string.md $dokka.location:com.chrynan.parcelable.core/Parcelable.Custom///PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/index.md +$dokka.location:com.chrynan.parcelable.core/Parcelable.Custom/equals/#kotlin.Any?/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/equals.md +$dokka.location:com.chrynan.parcelable.core/Parcelable.Custom/hashCode/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/hash-code.md +$dokka.location:com.chrynan.parcelable.core/Parcelable.Custom/toString/#/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/to-string.md $dokka.location:com.chrynan.parcelable.core/Parcelable.Default///PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-default/index.md $dokka.location:com.chrynan.parcelable.core/Parcelable///PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/index.md $dokka.location:com.chrynan.parcelable.core/Parcelable/decodeFromByteArray/#kotlinx.serialization.DeserializationStrategy[TypeParam(bounds=[kotlin.Any?])]#kotlin.ByteArray/PointingToDeclaration/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-byte-array.md diff --git a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-parcelable-saver.md b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-parcelable-saver.md index c662ff9..59d90e4 100644 --- a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-parcelable-saver.md +++ b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-parcelable-saver.md @@ -3,6 +3,9 @@ # ParcelableSaver [common]\ -fun <[T](-parcelable-saver.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [ParcelableSaver](-parcelable-saver.md)(parcelable: [Parcelable](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/index.md) = Parcelable.Default, serializer: KSerializer<[T](-parcelable-saver.md)>): Saver<[T](-parcelable-saver.md), *> -Creates a Saver that uses the provided [parcelable](-parcelable-saver.md) and [serializer](-parcelable-saver.md) to save and restore the value. +@ExperimentalSerializationApi + +fun <[T](-parcelable-saver.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [ParcelableSaver](-parcelable-saver.md)(parcelable: [Parcelable](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/index.md) = Parcelable.Default, serializer: KSerializer<[T](-parcelable-saver.md)>): [Saver](-saver/index.md)<[T](-parcelable-saver.md), *> + +Creates a [Saver](-saver/index.md) that uses the provided [parcelable](-parcelable-saver.md) and [serializer](-parcelable-saver.md) to save and restore the value. diff --git a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver-scope/can-be-saved.md b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver-scope/can-be-saved.md new file mode 100644 index 0000000..6cf5bb3 --- /dev/null +++ b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver-scope/can-be-saved.md @@ -0,0 +1,10 @@ +//[parcelable-compose](../../../index.md)/[com.chrynan.parcelable.compose](../index.md)/[SaverScope](index.md)/[canBeSaved](can-be-saved.md) + +# canBeSaved + +[common, js]\ +[common]\ +expect abstract fun [canBeSaved](can-be-saved.md)(value: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) + +[js]\ +actual abstract fun [canBeSaved](can-be-saved.md)(value: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver-scope/index.md b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver-scope/index.md new file mode 100644 index 0000000..a270d37 --- /dev/null +++ b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver-scope/index.md @@ -0,0 +1,18 @@ +//[parcelable-compose](../../../index.md)/[com.chrynan.parcelable.compose](../index.md)/[SaverScope](index.md) + +# SaverScope + +[common]\ +expect fun interface [SaverScope](index.md) + +[js]\ +actual fun interface [SaverScope](index.md) + +[android, jvm]\ +actual typealias [SaverScope](index.md) = [SaverScope](https://developer.android.com/reference/kotlin/androidx/compose/runtime/saveable/SaverScope.html) + +## Functions + +| Name | Summary | +|---|---| +| [canBeSaved](can-be-saved.md) | [common, js]
[common]
expect abstract fun [canBeSaved](can-be-saved.md)(value: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
[js]
actual abstract fun [canBeSaved](can-be-saved.md)(value: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | diff --git a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver.md b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver.md new file mode 100644 index 0000000..3a5f81f --- /dev/null +++ b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver.md @@ -0,0 +1,10 @@ +//[parcelable-compose](../../index.md)/[com.chrynan.parcelable.compose](index.md)/[Saver](-saver.md) + +# Saver + +[common, js]\ +[common]\ +expect fun <[Original](-saver.md), [Saveable](-saver.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Saver](-saver.md)(save: [SaverScope](-saver-scope/index.md).(value: [Original](-saver.md)) -> [Saveable](-saver.md)?, restore: (value: [Saveable](-saver.md)) -> [Original](-saver.md)?): [Saver](-saver/index.md)<[Original](-saver.md), [Saveable](-saver.md)> + +[js]\ +actual fun <[Original](-saver.md), [Saveable](-saver.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Saver](-saver.md)(save: [SaverScope](-saver-scope/index.md).(value: [Original](-saver.md)) -> [Saveable](-saver.md)?, restore: (value: [Saveable](-saver.md)) -> [Original](-saver.md)?): [Saver](-saver/index.md)<[Original](-saver.md), [Saveable](-saver.md)> diff --git a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver/index.md b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver/index.md new file mode 100644 index 0000000..d820d63 --- /dev/null +++ b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver/index.md @@ -0,0 +1,19 @@ +//[parcelable-compose](../../../index.md)/[com.chrynan.parcelable.compose](../index.md)/[Saver](index.md) + +# Saver + +[common]\ +expect interface [Saver](index.md)<[Original](index.md), [Saveable](index.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> + +[js]\ +actual interface [Saver](index.md)<[Original](index.md), [Saveable](index.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> + +[android, jvm]\ +actual typealias [Saver](index.md) = [Saver](https://developer.android.com/reference/kotlin/androidx/compose/runtime/saveable/Saver.html)<[Original](index.md), [Saveable](index.md)> + +## Functions + +| Name | Summary | +|---|---| +| [restore](restore.md) | [common, js]
[common]
expect abstract fun [restore](restore.md)(value: [Saveable](index.md)): [Original](index.md)?
[js]
actual abstract fun [restore](restore.md)(value: [Saveable](index.md)): [Original](index.md)? | +| [save](save.md) | [common, js]
[common]
expect abstract fun [SaverScope](../-saver-scope/index.md).[save](save.md)(value: [Original](index.md)): [Saveable](index.md)?
[js]
actual abstract fun [SaverScope](../-saver-scope/index.md).[save](save.md)(value: [Original](index.md)): [Saveable](index.md)? | diff --git a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver/restore.md b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver/restore.md new file mode 100644 index 0000000..0321f2f --- /dev/null +++ b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver/restore.md @@ -0,0 +1,10 @@ +//[parcelable-compose](../../../index.md)/[com.chrynan.parcelable.compose](../index.md)/[Saver](index.md)/[restore](restore.md) + +# restore + +[common, js]\ +[common]\ +expect abstract fun [restore](restore.md)(value: [Saveable](index.md)): [Original](index.md)? + +[js]\ +actual abstract fun [restore](restore.md)(value: [Saveable](index.md)): [Original](index.md)? diff --git a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver/save.md b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver/save.md new file mode 100644 index 0000000..0aafa00 --- /dev/null +++ b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/-saver/save.md @@ -0,0 +1,10 @@ +//[parcelable-compose](../../../index.md)/[com.chrynan.parcelable.compose](../index.md)/[Saver](index.md)/[save](save.md) + +# save + +[common, js]\ +[common]\ +expect abstract fun [SaverScope](../-saver-scope/index.md).[save](save.md)(value: [Original](index.md)): [Saveable](index.md)? + +[js]\ +actual abstract fun [SaverScope](../-saver-scope/index.md).[save](save.md)(value: [Original](index.md)): [Saveable](index.md)? diff --git a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/auto-saver.md b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/auto-saver.md new file mode 100644 index 0000000..c7d8479 --- /dev/null +++ b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/auto-saver.md @@ -0,0 +1,10 @@ +//[parcelable-compose](../../index.md)/[com.chrynan.parcelable.compose](index.md)/[autoSaver](auto-saver.md) + +# autoSaver + +[common, android, js, jvm]\ +[common]\ +expect fun <[T](auto-saver.md)> [autoSaver](auto-saver.md)(): [Saver](-saver/index.md)<[T](auto-saver.md), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> + +[android, js, jvm]\ +actual fun <[T](auto-saver.md)> [autoSaver](auto-saver.md)(): [Saver](-saver/index.md)<[T](auto-saver.md), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> diff --git a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/index.md b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/index.md index 7e9dbb2..ba48672 100644 --- a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/index.md +++ b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/index.md @@ -1,10 +1,22 @@ //[parcelable-compose](../../index.md)/[com.chrynan.parcelable.compose](index.md) -# Package com.chrynan.parcelable.compose +# Package-level declarations + +## Types + +| Name | Summary | +|---|---| +| [Saver](-saver/index.md) | [common, js, android, jvm]
[common]
expect interface [Saver](-saver/index.md)<[Original](-saver/index.md), [Saveable](-saver/index.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>
[js]
actual interface [Saver](-saver/index.md)<[Original](-saver/index.md), [Saveable](-saver/index.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>
[android, jvm]
actual typealias [Saver](-saver/index.md) = [Saver](https://developer.android.com/reference/kotlin/androidx/compose/runtime/saveable/Saver.html)<[Original](-saver/index.md), [Saveable](-saver/index.md)> | +| [SaverScope](-saver-scope/index.md) | [common, js, android, jvm]
[common]
expect fun interface [SaverScope](-saver-scope/index.md)
[js]
actual fun interface [SaverScope](-saver-scope/index.md)
[android, jvm]
actual typealias [SaverScope](-saver-scope/index.md) = [SaverScope](https://developer.android.com/reference/kotlin/androidx/compose/runtime/saveable/SaverScope.html) | ## Functions | Name | Summary | |---|---| -| [ParcelableSaver](-parcelable-saver.md) | [common]
fun <[T](-parcelable-saver.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [ParcelableSaver](-parcelable-saver.md)(parcelable: [Parcelable](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/index.md) = Parcelable.Default, serializer: KSerializer<[T](-parcelable-saver.md)>): Saver<[T](-parcelable-saver.md), *>
Creates a Saver that uses the provided [parcelable](-parcelable-saver.md) and [serializer](-parcelable-saver.md) to save and restore the value. | -| [rememberSavable](remember-savable.md) | [common]
@Composable
fun <[T](remember-savable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [rememberSavable](remember-savable.md)(vararg inputs: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?, parcelable: [Parcelable](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/index.md) = Parcelable.Default, serializer: KSerializer<[T](remember-savable.md)>, key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, init: () -> [T](remember-savable.md)): [T](remember-savable.md)
Calls rememberSaveable using a [ParcelableSaver](-parcelable-saver.md) created using the provided [parcelable](remember-savable.md) and [serializer](remember-savable.md). | +| [autoSaver](auto-saver.md) | [common, android, js, jvm]
[common]
expect fun <[T](auto-saver.md)> [autoSaver](auto-saver.md)(): [Saver](-saver/index.md)<[T](auto-saver.md), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>
[android, js, jvm]
actual fun <[T](auto-saver.md)> [autoSaver](auto-saver.md)(): [Saver](-saver/index.md)<[T](auto-saver.md), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> | +| [listSaver](list-saver.md) | [common, js]
[common]
expect fun <[Original](list-saver.md), [Saveable](list-saver.md)> [listSaver](list-saver.md)(save: [SaverScope](-saver-scope/index.md).(value: [Original](list-saver.md)) -> [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[Saveable](list-saver.md)>, restore: (list: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[Saveable](list-saver.md)>) -> [Original](list-saver.md)?): [Saver](-saver/index.md)<[Original](list-saver.md), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>
[js]
actual fun <[Original](list-saver.md), [Saveable](list-saver.md)> [listSaver](list-saver.md)(save: [SaverScope](-saver-scope/index.md).(value: [Original](list-saver.md)) -> [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[Saveable](list-saver.md)>, restore: (list: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[Saveable](list-saver.md)>) -> [Original](list-saver.md)?): [Saver](-saver/index.md)<[Original](list-saver.md), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> | +| [mapSaver](map-saver.md) | [common, js]
[common]
expect fun <[T](map-saver.md)> [mapSaver](map-saver.md)(save: [SaverScope](-saver-scope/index.md).(value: [T](map-saver.md)) -> [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?>, restore: ([Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?>) -> [T](map-saver.md)?): [Saver](-saver/index.md)<[T](map-saver.md), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>
[js]
actual fun <[T](map-saver.md)> [mapSaver](map-saver.md)(save: [SaverScope](-saver-scope/index.md).(value: [T](map-saver.md)) -> [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?>, restore: ([Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?>) -> [T](map-saver.md)?): [Saver](-saver/index.md)<[T](map-saver.md), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> | +| [ParcelableSaver](-parcelable-saver.md) | [common]
@ExperimentalSerializationApi
fun <[T](-parcelable-saver.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [ParcelableSaver](-parcelable-saver.md)(parcelable: [Parcelable](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/index.md) = Parcelable.Default, serializer: KSerializer<[T](-parcelable-saver.md)>): [Saver](-saver/index.md)<[T](-parcelable-saver.md), *>
Creates a [Saver](-saver/index.md) that uses the provided [parcelable](-parcelable-saver.md) and [serializer](-parcelable-saver.md) to save and restore the value. | +| [rememberSavable](remember-savable.md) | [common]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
@ExperimentalSerializationApi
fun <[T](remember-savable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [rememberSavable](remember-savable.md)(vararg inputs: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?, parcelable: [Parcelable](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/index.md) = Parcelable.Default, serializer: KSerializer<[T](remember-savable.md)>, key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, init: () -> [T](remember-savable.md)): [T](remember-savable.md)
Calls [rememberSaveable](remember-saveable.md) using a [ParcelableSaver](-parcelable-saver.md) created using the provided [parcelable](remember-savable.md) and [serializer](remember-savable.md). | +| [rememberSaveable](remember-saveable.md) | [common]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun <[T](remember-saveable.md)> [rememberSaveable](remember-saveable.md)(vararg inputs: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?, stateSaver: [Saver](-saver/index.md)<[T](remember-saveable.md), out [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>, key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, init: () -> [MutableState](https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html)<[T](remember-saveable.md)>): [MutableState](https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html)<[T](remember-saveable.md)>
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
fun <[T](remember-saveable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [rememberSaveable](remember-saveable.md)(vararg inputs: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?, saver: [Saver](-saver/index.md)<[T](remember-saveable.md), out [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> = autoSaver(), key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, init: () -> [T](remember-saveable.md)): [T](remember-saveable.md)
[common]
@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)
@ExperimentalSerializationApi
fun <[T](remember-saveable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [rememberSaveable](remember-saveable.md)(vararg inputs: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?, parcelable: [Parcelable](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/index.md) = Parcelable.Default, serializer: KSerializer<[T](remember-saveable.md)>, key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, init: () -> [MutableState](https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html)<[T](remember-saveable.md)>): [MutableState](https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html)<[T](remember-saveable.md)>
Calls [rememberSaveable](remember-saveable.md) using a [ParcelableSaver](-parcelable-saver.md) created using the provided [parcelable](remember-saveable.md) and [serializer](remember-saveable.md). | +| [Saver](-saver.md) | [common, js]
[common]
expect fun <[Original](-saver.md), [Saveable](-saver.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Saver](-saver.md)(save: [SaverScope](-saver-scope/index.md).(value: [Original](-saver.md)) -> [Saveable](-saver.md)?, restore: (value: [Saveable](-saver.md)) -> [Original](-saver.md)?): [Saver](-saver/index.md)<[Original](-saver.md), [Saveable](-saver.md)>
[js]
actual fun <[Original](-saver.md), [Saveable](-saver.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Saver](-saver.md)(save: [SaverScope](-saver-scope/index.md).(value: [Original](-saver.md)) -> [Saveable](-saver.md)?, restore: (value: [Saveable](-saver.md)) -> [Original](-saver.md)?): [Saver](-saver/index.md)<[Original](-saver.md), [Saveable](-saver.md)> | diff --git a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/list-saver.md b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/list-saver.md new file mode 100644 index 0000000..885be6a --- /dev/null +++ b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/list-saver.md @@ -0,0 +1,10 @@ +//[parcelable-compose](../../index.md)/[com.chrynan.parcelable.compose](index.md)/[listSaver](list-saver.md) + +# listSaver + +[common, js]\ +[common]\ +expect fun <[Original](list-saver.md), [Saveable](list-saver.md)> [listSaver](list-saver.md)(save: [SaverScope](-saver-scope/index.md).(value: [Original](list-saver.md)) -> [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[Saveable](list-saver.md)>, restore: (list: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[Saveable](list-saver.md)>) -> [Original](list-saver.md)?): [Saver](-saver/index.md)<[Original](list-saver.md), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> + +[js]\ +actual fun <[Original](list-saver.md), [Saveable](list-saver.md)> [listSaver](list-saver.md)(save: [SaverScope](-saver-scope/index.md).(value: [Original](list-saver.md)) -> [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[Saveable](list-saver.md)>, restore: (list: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)<[Saveable](list-saver.md)>) -> [Original](list-saver.md)?): [Saver](-saver/index.md)<[Original](list-saver.md), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> diff --git a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/map-saver.md b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/map-saver.md new file mode 100644 index 0000000..7b07c67 --- /dev/null +++ b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/map-saver.md @@ -0,0 +1,10 @@ +//[parcelable-compose](../../index.md)/[com.chrynan.parcelable.compose](index.md)/[mapSaver](map-saver.md) + +# mapSaver + +[common, js]\ +[common]\ +expect fun <[T](map-saver.md)> [mapSaver](map-saver.md)(save: [SaverScope](-saver-scope/index.md).(value: [T](map-saver.md)) -> [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?>, restore: ([Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?>) -> [T](map-saver.md)?): [Saver](-saver/index.md)<[T](map-saver.md), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> + +[js]\ +actual fun <[T](map-saver.md)> [mapSaver](map-saver.md)(save: [SaverScope](-saver-scope/index.md).(value: [T](map-saver.md)) -> [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?>, restore: ([Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?>) -> [T](map-saver.md)?): [Saver](-saver/index.md)<[T](map-saver.md), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> diff --git a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/remember-savable.md b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/remember-savable.md index db53e4b..40e7eb5 100644 --- a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/remember-savable.md +++ b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/remember-savable.md @@ -4,8 +4,10 @@ [common]\ -@Composable +@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html) + +@ExperimentalSerializationApi fun <[T](remember-savable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [rememberSavable](remember-savable.md)(vararg inputs: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?, parcelable: [Parcelable](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/index.md) = Parcelable.Default, serializer: KSerializer<[T](remember-savable.md)>, key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, init: () -> [T](remember-savable.md)): [T](remember-savable.md) -Calls rememberSaveable using a [ParcelableSaver](-parcelable-saver.md) created using the provided [parcelable](remember-savable.md) and [serializer](remember-savable.md). +Calls [rememberSaveable](remember-saveable.md) using a [ParcelableSaver](-parcelable-saver.md) created using the provided [parcelable](remember-savable.md) and [serializer](remember-savable.md). diff --git a/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/remember-saveable.md b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/remember-saveable.md new file mode 100644 index 0000000..8d7b719 --- /dev/null +++ b/docs/parcelable-compose/parcelable-compose/com.chrynan.parcelable.compose/remember-saveable.md @@ -0,0 +1,23 @@ +//[parcelable-compose](../../index.md)/[com.chrynan.parcelable.compose](index.md)/[rememberSaveable](remember-saveable.md) + +# rememberSaveable + +[common]\ + +@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html) + +@ExperimentalSerializationApi + +fun <[T](remember-saveable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [rememberSaveable](remember-saveable.md)(vararg inputs: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?, parcelable: [Parcelable](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/index.md) = Parcelable.Default, serializer: KSerializer<[T](remember-saveable.md)>, key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, init: () -> [MutableState](https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html)<[T](remember-saveable.md)>): [MutableState](https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html)<[T](remember-saveable.md)> + +Calls [rememberSaveable](remember-saveable.md) using a [ParcelableSaver](-parcelable-saver.md) created using the provided [parcelable](remember-saveable.md) and [serializer](remember-saveable.md). + +[common]\ + +@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html) + +fun <[T](remember-saveable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [rememberSaveable](remember-saveable.md)(vararg inputs: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?, saver: [Saver](-saver/index.md)<[T](remember-saveable.md), out [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> = autoSaver(), key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, init: () -> [T](remember-saveable.md)): [T](remember-saveable.md) + +@[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html) + +fun <[T](remember-saveable.md)> [rememberSaveable](remember-saveable.md)(vararg inputs: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?, stateSaver: [Saver](-saver/index.md)<[T](remember-saveable.md), out [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>, key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, init: () -> [MutableState](https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html)<[T](remember-saveable.md)>): [MutableState](https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState.html)<[T](remember-saveable.md)> diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/data-buffer-capacity.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/data-buffer-capacity.md index 23005ac..8186b32 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/data-buffer-capacity.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/data-buffer-capacity.md @@ -6,3 +6,5 @@ open override val [dataBufferCapacity](data-buffer-capacity.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) The total amount of space available in this parcel. This should always be greater than or equal to [dataSize](data-size.md). There may be more space available ([dataBufferCapacity](data-buffer-capacity.md)) in the underlying data buffer than there is data available ([dataSize](data-size.md)). The difference between [dataBufferCapacity](data-buffer-capacity.md) and [dataSize](data-size.md) indicates the amount of room remaining in the underlying data buffer until more space needs to be allocated. + +This value represents an amount of bytes. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/data-position.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/data-position.md index 310bb15..c4c1c14 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/data-position.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/data-position.md @@ -6,3 +6,5 @@ open override val [dataPosition](data-position.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) The current index position in the data buffer. Should never be more than [dataSize](data-size.md). + +This value represents an amount of bytes. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/data-size.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/data-size.md index 94d42ef..ea24fd9 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/data-size.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/data-size.md @@ -6,3 +6,5 @@ open override val [dataSize](data-size.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) The total amount of data contained in this parcel. + +This value represents an amount of bytes. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/equals.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/equals.md new file mode 100644 index 0000000..5aae337 --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/equals.md @@ -0,0 +1,6 @@ +//[parcelable-core](../../../index.md)/[com.chrynan.parcelable.core](../index.md)/[AndroidParcel](index.md)/[equals](equals.md) + +# equals + +[android]\ +open operator override fun [equals](equals.md)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/hash-code.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/hash-code.md new file mode 100644 index 0000000..05d6649 --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/hash-code.md @@ -0,0 +1,6 @@ +//[parcelable-core](../../../index.md)/[com.chrynan.parcelable.core](../index.md)/[AndroidParcel](index.md)/[hashCode](hash-code.md) + +# hashCode + +[android]\ +open override fun [hashCode](hash-code.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/index.md index 1343487..10a42e8 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/index.md @@ -3,31 +3,27 @@ # AndroidParcel [android]\ -class [AndroidParcel](index.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html)) : [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) +class [AndroidParcel](index.md) : [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) An Android implementation of the [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) interface. This class wraps the provided [android.os.Parcel](../../../../parcelable-core/com.chrynan.parcelable.core/-android-parcel/parcel.md) and delegates the reading and writing to it. Note that this class should not be confused with the [android.os.Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html). Instead, this class wraps that class and implements the [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) interface of this library. -## See also +#### See also android -| | | -|---|---| -| [com.chrynan.parcelable.core.Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) | | -| [android.os.Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html) | | - -## Constructors - -| | | -|---|---| -| [AndroidParcel](-android-parcel.md) | [android]
fun [AndroidParcel](-android-parcel.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html)) | +| | +|---| +| [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) | +| [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html) | ## Functions | Name | Summary | |---|---| +| [equals](equals.md) | [android]
open operator override fun [equals](equals.md)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](hash-code.md) | [android]
open override fun [hashCode](hash-code.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | | [readBoolean](read-boolean.md) | [android]
open override fun [readBoolean](read-boolean.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
Retrieves a [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) from the Parcel at the current data position. | | [readByte](read-byte.md) | [android]
open override fun [readByte](read-byte.md)(): [Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html)
Retrieves a [Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) from the Parcel at the current data position. | | [readChar](read-char.md) | [android]
open override fun [readChar](read-char.md)(): [Char](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html)
Retrieves a [Char](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html) from the Parcel at the current data position. | @@ -37,8 +33,10 @@ android | [readLong](read-long.md) | [android]
open override fun [readLong](read-long.md)(): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)
Retrieves a [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) from the Parcel at the current data position. | | [readShort](read-short.md) | [android]
open override fun [readShort](read-short.md)(): [Short](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html)
Retrieves a [Short](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html) from the Parcel at the current data position. | | [readString](read-string.md) | [android]
open override fun [readString](read-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
Retrieves a [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) from the Parcel at the current data position. | -| [recycle](recycle.md) | [android]
open override fun [recycle](recycle.md)()
Puts this parcel object back into the pool, removing its data. This parcel object should not be used after it is recycled. | -| [toByteArray](to-byte-array.md) | [android]
open override fun [toByteArray](to-byte-array.md)(): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)
Obtains a [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) of the underlying values of this [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md). | +| [recycle](recycle.md) | [android]
open override fun [recycle](recycle.md)()
Puts this parcel object back into the pool, removing its data. This parcel object should not be used after it is recycled. Attempting to write or read from a recycled [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) may cause an exception to be thrown. | +| [setDataPosition](set-data-position.md) | [android]
open override fun [setDataPosition](set-data-position.md)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html))
Sets the [dataPosition](data-position.md) to the provided [position](set-data-position.md) value. This will throw an exception if the provided [position](set-data-position.md) value is less than zero or exceeds [dataSize](data-size.md). | +| [toByteArray](to-byte-array.md) | [android]
open override fun [toByteArray](to-byte-array.md)(): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)
Obtains a [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) of the underlying values of this [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md). Note that the returned [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) data is structured in a way that is meaningful for this implementation, but doesn't guarantee any structure for outside usage or usage between different implementations. | +| [toString](to-string.md) | [android]
open override fun [toString](to-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | | [writeBoolean](write-boolean.md) | [android]
open override fun [writeBoolean](write-boolean.md)(value: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))
Writes the [Boolean](write-boolean.md) to the Parcel at the current data position. | | [writeByte](write-byte.md) | [android]
open override fun [writeByte](write-byte.md)(value: [Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html))
Writes the [Byte](write-byte.md) to the Parcel at the current data position. | | [writeChar](write-char.md) | [android]
open override fun [writeChar](write-char.md)(value: [Char](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html))
Writes the [Char](write-char.md) to the Parcel at the current data position. | @@ -58,3 +56,9 @@ android | [dataRemaining](index.md#-139993914%2FProperties%2F-1462739831) | [android]
open val [dataRemaining](index.md#-139993914%2FProperties%2F-1462739831): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The remaining amount of data to be read ([dataSize](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-size.md) - [dataPosition](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md)). | | [dataSize](data-size.md) | [android]
open override val [dataSize](data-size.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The total amount of data contained in this parcel. | | [isRecycled](is-recycled.md) | [android]
open override var [isRecycled](is-recycled.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) = false
Determines whether this [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)s [recycle](recycle.md) function has been called already. A parcel object should not be used after it is recycled. | + +## Extensions + +| Name | Summary | +|---|---| +| [resetDataPosition](../reset-data-position.md) | [common]
inline fun [Parcel](../-parcel/index.md).[resetDataPosition](../reset-data-position.md)()
A convenience function for calling the [Parcel.setDataPosition](../-parcel/set-data-position.md) with an index value of zero. | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/recycle.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/recycle.md index 699fcf5..05e3949 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/recycle.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/recycle.md @@ -5,4 +5,4 @@ [android]\ open override fun [recycle](recycle.md)() -Puts this parcel object back into the pool, removing its data. This parcel object should not be used after it is recycled. +Puts this parcel object back into the pool, removing its data. This parcel object should not be used after it is recycled. Attempting to write or read from a recycled [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) may cause an exception to be thrown. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/set-data-position.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/set-data-position.md new file mode 100644 index 0000000..f770a51 --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/set-data-position.md @@ -0,0 +1,10 @@ +//[parcelable-core](../../../index.md)/[com.chrynan.parcelable.core](../index.md)/[AndroidParcel](index.md)/[setDataPosition](set-data-position.md) + +# setDataPosition + +[android]\ +open override fun [setDataPosition](set-data-position.md)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) + +Sets the [dataPosition](data-position.md) to the provided [position](set-data-position.md) value. This will throw an exception if the provided [position](set-data-position.md) value is less than zero or exceeds [dataSize](data-size.md). + +The position value represents an amount of bytes. For instance, an [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) is a 32-bit (4 byte) integer value, when it is stored in this [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), the [dataSize](data-size.md) will increase by a value of four. To skip over the integer value to the next item, call this function with the current value plus four. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/to-byte-array.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/to-byte-array.md index 93e7b05..1cfc2d4 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/to-byte-array.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/to-byte-array.md @@ -5,4 +5,4 @@ [android]\ open override fun [toByteArray](to-byte-array.md)(): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) -Obtains a [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) of the underlying values of this [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md). +Obtains a [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) of the underlying values of this [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md). Note that the returned [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) data is structured in a way that is meaningful for this implementation, but doesn't guarantee any structure for outside usage or usage between different implementations. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/to-string.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/to-string.md new file mode 100644 index 0000000..d467d1f --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-android-parcel/to-string.md @@ -0,0 +1,6 @@ +//[parcelable-core](../../../index.md)/[com.chrynan.parcelable.core](../index.md)/[AndroidParcel](index.md)/[toString](to-string.md) + +# toString + +[android]\ +open override fun [toString](to-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-buffer-capacity.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-buffer-capacity.md index 2e0b6cd..90af058 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-buffer-capacity.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-buffer-capacity.md @@ -6,3 +6,5 @@ open override val [dataBufferCapacity](data-buffer-capacity.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) The total amount of space available in this parcel. This should always be greater than or equal to [dataSize](data-size.md). There may be more space available ([dataBufferCapacity](data-buffer-capacity.md)) in the underlying data buffer than there is data available ([dataSize](data-size.md)). The difference between [dataBufferCapacity](data-buffer-capacity.md) and [dataSize](data-size.md) indicates the amount of room remaining in the underlying data buffer until more space needs to be allocated. + +This value represents an amount of bytes. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-index.md new file mode 100644 index 0000000..36097eb --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-index.md @@ -0,0 +1,8 @@ +//[parcelable-core](../../../index.md)/[com.chrynan.parcelable.core](../index.md)/[ByteArrayParcel](index.md)/[dataIndex](data-index.md) + +# dataIndex + +[common]\ +var [dataIndex](data-index.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0 + +Represents the current item index within the data structure. This is different from [dataPosition](data-position.md) as that represents the byte value position, whereas this represents the item position. For instance, a [ByteArrayParcel](index.md) containing two [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) values will have a [dataSize](data-size.md) of eight (four bytes for each [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)). If the [dataIndex](data-index.md) equals one, the [dataPosition](data-position.md) should equal four. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-item-count.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-item-count.md new file mode 100644 index 0000000..dc990d0 --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-item-count.md @@ -0,0 +1,8 @@ +//[parcelable-core](../../../index.md)/[com.chrynan.parcelable.core](../index.md)/[ByteArrayParcel](index.md)/[dataItemCount](data-item-count.md) + +# dataItemCount + +[common]\ +val [dataItemCount](data-item-count.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) + +Retrieves the amount of items stored within this data structure. This is different from [dataSize](data-size.md) as that represents the total amount of bytes stored and this [dataItemCount](data-item-count.md) represents the total amount of items stored. For instance, if there are two [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) values stored, then this [dataItemCount](data-item-count.md) will return a value of two, whereas the [dataSize](data-size.md) will return a value of eight (each [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) has four bytes). diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-position.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-position.md index 282b2ac..00bac22 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-position.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-position.md @@ -3,6 +3,8 @@ # dataPosition [common]\ -open override var [dataPosition](data-position.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0 +open override val [dataPosition](data-position.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) The current index position in the data buffer. Should never be more than [dataSize](data-size.md). + +This value represents an amount of bytes. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-size.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-size.md index bf7eb1c..94a6989 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-size.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/data-size.md @@ -6,3 +6,5 @@ open override val [dataSize](data-size.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) The total amount of data contained in this parcel. + +This value represents an amount of bytes. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/equals.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/equals.md new file mode 100644 index 0000000..9a2b5bd --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/equals.md @@ -0,0 +1,6 @@ +//[parcelable-core](../../../index.md)/[com.chrynan.parcelable.core](../index.md)/[ByteArrayParcel](index.md)/[equals](equals.md) + +# equals + +[common]\ +open operator override fun [equals](equals.md)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/hash-code.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/hash-code.md new file mode 100644 index 0000000..8c8b898 --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/hash-code.md @@ -0,0 +1,6 @@ +//[parcelable-core](../../../index.md)/[com.chrynan.parcelable.core](../index.md)/[ByteArrayParcel](index.md)/[hashCode](hash-code.md) + +# hashCode + +[common]\ +open override fun [hashCode](hash-code.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/index.md index 680d952..6c20497 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/index.md @@ -21,6 +21,8 @@ Note that the underlying [ByteArray](https://kotlinlang.org/api/latest/jvm/stdli | Name | Summary | |---|---| +| [equals](equals.md) | [common]
open operator override fun [equals](equals.md)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](hash-code.md) | [common]
open override fun [hashCode](hash-code.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | | [readBoolean](read-boolean.md) | [common]
open override fun [readBoolean](read-boolean.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
Retrieves a [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) from the Parcel at the current data position. | | [readByte](read-byte.md) | [common]
open override fun [readByte](read-byte.md)(): [Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html)
Retrieves a [Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) from the Parcel at the current data position. | | [readChar](read-char.md) | [common]
open override fun [readChar](read-char.md)(): [Char](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html)
Retrieves a [Char](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html) from the Parcel at the current data position. | @@ -30,8 +32,10 @@ Note that the underlying [ByteArray](https://kotlinlang.org/api/latest/jvm/stdli | [readLong](read-long.md) | [common]
open override fun [readLong](read-long.md)(): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)
Retrieves a [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) from the Parcel at the current data position. | | [readShort](read-short.md) | [common]
open override fun [readShort](read-short.md)(): [Short](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html)
Retrieves a [Short](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html) from the Parcel at the current data position. | | [readString](read-string.md) | [common]
open override fun [readString](read-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
Retrieves a [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) from the Parcel at the current data position. | -| [recycle](recycle.md) | [common]
open override fun [recycle](recycle.md)()
Puts this parcel object back into the pool, removing its data. This parcel object should not be used after it is recycled. | -| [toByteArray](to-byte-array.md) | [common]
open override fun [toByteArray](to-byte-array.md)(): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)
Obtains a [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) of the underlying values of this [Parcel](../-parcel/index.md). | +| [recycle](recycle.md) | [common]
open override fun [recycle](recycle.md)()
Puts this parcel object back into the pool, removing its data. This parcel object should not be used after it is recycled. Attempting to write or read from a recycled [Parcel](../-parcel/index.md) may cause an exception to be thrown. | +| [setDataPosition](set-data-position.md) | [common]
open override fun [setDataPosition](set-data-position.md)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html))
Sets the [dataPosition](data-position.md) to the provided [position](set-data-position.md) value. This will throw an exception if the provided [position](set-data-position.md) value is less than zero or exceeds [dataSize](data-size.md). | +| [toByteArray](to-byte-array.md) | [common]
open override fun [toByteArray](to-byte-array.md)(): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)
Obtains a [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) of the underlying values of this [Parcel](../-parcel/index.md). Note that the returned [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) data is structured in a way that is meaningful for this implementation, but doesn't guarantee any structure for outside usage or usage between different implementations. | +| [toString](to-string.md) | [common]
open override fun [toString](to-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | | [writeBoolean](write-boolean.md) | [common]
open override fun [writeBoolean](write-boolean.md)(value: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))
Writes the [Boolean](write-boolean.md) to the Parcel at the current data position. | | [writeByte](write-byte.md) | [common]
open override fun [writeByte](write-byte.md)(value: [Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html))
Writes the [Byte](write-byte.md) to the Parcel at the current data position. | | [writeChar](write-char.md) | [common]
open override fun [writeChar](write-char.md)(value: [Char](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html))
Writes the [Char](write-char.md) to the Parcel at the current data position. | @@ -47,7 +51,15 @@ Note that the underlying [ByteArray](https://kotlinlang.org/api/latest/jvm/stdli | Name | Summary | |---|---| | [dataBufferCapacity](data-buffer-capacity.md) | [common]
open override val [dataBufferCapacity](data-buffer-capacity.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The total amount of space available in this parcel. This should always be greater than or equal to [dataSize](data-size.md). There may be more space available ([dataBufferCapacity](data-buffer-capacity.md)) in the underlying data buffer than there is data available ([dataSize](data-size.md)). The difference between [dataBufferCapacity](data-buffer-capacity.md) and [dataSize](data-size.md) indicates the amount of room remaining in the underlying data buffer until more space needs to be allocated. | -| [dataPosition](data-position.md) | [common]
open override var [dataPosition](data-position.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0
The current index position in the data buffer. Should never be more than [dataSize](data-size.md). | +| [dataIndex](data-index.md) | [common]
var [dataIndex](data-index.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0
Represents the current item index within the data structure. This is different from [dataPosition](data-position.md) as that represents the byte value position, whereas this represents the item position. For instance, a [ByteArrayParcel](index.md) containing two [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) values will have a [dataSize](data-size.md) of eight (four bytes for each [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)). If the [dataIndex](data-index.md) equals one, the [dataPosition](data-position.md) should equal four. | +| [dataItemCount](data-item-count.md) | [common]
val [dataItemCount](data-item-count.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Retrieves the amount of items stored within this data structure. This is different from [dataSize](data-size.md) as that represents the total amount of bytes stored and this [dataItemCount](data-item-count.md) represents the total amount of items stored. For instance, if there are two [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) values stored, then this [dataItemCount](data-item-count.md) will return a value of two, whereas the [dataSize](data-size.md) will return a value of eight (each [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) has four bytes). | +| [dataPosition](data-position.md) | [common]
open override val [dataPosition](data-position.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The current index position in the data buffer. Should never be more than [dataSize](data-size.md). | | [dataRemaining](../-parcel/data-remaining.md) | [common]
open val [dataRemaining](../-parcel/data-remaining.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The remaining amount of data to be read ([dataSize](../-parcel/data-size.md) - [dataPosition](../-parcel/data-position.md)). | | [dataSize](data-size.md) | [common]
open override val [dataSize](data-size.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
The total amount of data contained in this parcel. | | [isRecycled](is-recycled.md) | [common]
open override var [isRecycled](is-recycled.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) = false
Determines whether this [Parcel](../-parcel/index.md)s [recycle](recycle.md) function has been called already. A parcel object should not be used after it is recycled. | + +## Extensions + +| Name | Summary | +|---|---| +| [resetDataPosition](../reset-data-position.md) | [common]
inline fun [Parcel](../-parcel/index.md).[resetDataPosition](../reset-data-position.md)()
A convenience function for calling the [Parcel.setDataPosition](../-parcel/set-data-position.md) with an index value of zero. | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/recycle.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/recycle.md index 4a8aa89..35f7ca4 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/recycle.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/recycle.md @@ -5,4 +5,4 @@ [common]\ open override fun [recycle](recycle.md)() -Puts this parcel object back into the pool, removing its data. This parcel object should not be used after it is recycled. +Puts this parcel object back into the pool, removing its data. This parcel object should not be used after it is recycled. Attempting to write or read from a recycled [Parcel](../-parcel/index.md) may cause an exception to be thrown. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/set-data-position.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/set-data-position.md new file mode 100644 index 0000000..e6d05c3 --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/set-data-position.md @@ -0,0 +1,10 @@ +//[parcelable-core](../../../index.md)/[com.chrynan.parcelable.core](../index.md)/[ByteArrayParcel](index.md)/[setDataPosition](set-data-position.md) + +# setDataPosition + +[common]\ +open override fun [setDataPosition](set-data-position.md)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) + +Sets the [dataPosition](data-position.md) to the provided [position](set-data-position.md) value. This will throw an exception if the provided [position](set-data-position.md) value is less than zero or exceeds [dataSize](data-size.md). + +The position value represents an amount of bytes. For instance, an [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) is a 32-bit (4 byte) integer value, when it is stored in this [Parcel](../-parcel/index.md), the [dataSize](data-size.md) will increase by a value of four. To skip over the integer value to the next item, call this function with the current value plus four. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/to-byte-array.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/to-byte-array.md index 27f1173..5943c05 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/to-byte-array.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/to-byte-array.md @@ -5,4 +5,4 @@ [common]\ open override fun [toByteArray](to-byte-array.md)(): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) -Obtains a [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) of the underlying values of this [Parcel](../-parcel/index.md). +Obtains a [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) of the underlying values of this [Parcel](../-parcel/index.md). Note that the returned [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) data is structured in a way that is meaningful for this implementation, but doesn't guarantee any structure for outside usage or usage between different implementations. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/to-string.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/to-string.md new file mode 100644 index 0000000..0efcbde --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-byte-array-parcel/to-string.md @@ -0,0 +1,6 @@ +//[parcelable-core](../../../index.md)/[com.chrynan.parcelable.core](../index.md)/[ByteArrayParcel](index.md)/[toString](to-string.md) + +# toString + +[common]\ +open override fun [toString](to-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-invalid-parcel-value-exception/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-invalid-parcel-value-exception/index.md index e2d8ac4..3ce9ef0 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-invalid-parcel-value-exception/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-invalid-parcel-value-exception/index.md @@ -14,10 +14,3 @@ For instance, if we expect an [Int](https://kotlinlang.org/api/latest/jvm/stdlib | | | |---|---| | [InvalidParcelValueException](-invalid-parcel-value-exception.md) | [common]
fun [InvalidParcelValueException](-invalid-parcel-value-exception.md)(message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) | - -## Properties - -| Name | Summary | -|---|---| -| [cause](index.md#-654012527%2FProperties%2F1557879601) | [common]
open val [cause](index.md#-654012527%2FProperties%2F1557879601): [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)? | -| [message](index.md#1824300659%2FProperties%2F1557879601) | [common]
open val [message](index.md#1824300659%2FProperties%2F1557879601): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/-parcel-decoder.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/-parcel-decoder.md index 6b1d3da..684c2cc 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/-parcel-decoder.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/-parcel-decoder.md @@ -3,4 +3,4 @@ # ParcelDecoder [common]\ -fun [ParcelDecoder](-parcel-decoder.md)(serializersModule: SerializersModule = EmptySerializersModule, input: [Parcel](../-parcel/index.md)) +fun [ParcelDecoder](-parcel-decoder.md)(serializersModule: SerializersModule = EmptySerializersModule(), input: [Parcel](../-parcel/index.md)) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/equals.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/equals.md new file mode 100644 index 0000000..be26eda --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/equals.md @@ -0,0 +1,6 @@ +//[parcelable-core](../../../index.md)/[com.chrynan.parcelable.core](../index.md)/[ParcelDecoder](index.md)/[equals](equals.md) + +# equals + +[common]\ +open operator override fun [equals](equals.md)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/hash-code.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/hash-code.md new file mode 100644 index 0000000..7a7164b --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/hash-code.md @@ -0,0 +1,6 @@ +//[parcelable-core](../../../index.md)/[com.chrynan.parcelable.core](../index.md)/[ParcelDecoder](index.md)/[hashCode](hash-code.md) + +# hashCode + +[common]\ +open override fun [hashCode](hash-code.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/index.md index c5d01b1..27561c6 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/index.md @@ -3,7 +3,9 @@ # ParcelDecoder [common]\ -class [ParcelDecoder](index.md)(serializersModule: SerializersModule, input: [Parcel](../-parcel/index.md)) : AbstractDecoder +@ExperimentalSerializationApi + +class [ParcelDecoder](index.md)(val serializersModule: SerializersModule = EmptySerializersModule(), input: [Parcel](../-parcel/index.md)) : AbstractDecoder A Decoder that decodes its values from the provided [input](../-parcel/index.md). @@ -11,7 +13,7 @@ A Decoder that decodes its values from the provided [input](../-parcel/index.md) | | | |---|---| -| [ParcelDecoder](-parcel-decoder.md) | [common]
fun [ParcelDecoder](-parcel-decoder.md)(serializersModule: SerializersModule = EmptySerializersModule, input: [Parcel](../-parcel/index.md)) | +| [ParcelDecoder](-parcel-decoder.md) | [common]
fun [ParcelDecoder](-parcel-decoder.md)(serializersModule: SerializersModule = EmptySerializersModule(), input: [Parcel](../-parcel/index.md)) | ## Functions @@ -31,8 +33,8 @@ A Decoder that decodes its values from the provided [input](../-parcel/index.md) | [decodeEnum](decode-enum.md) | [common]
open override fun [decodeEnum](decode-enum.md)(enumDescriptor: SerialDescriptor): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | | [decodeFloat](decode-float.md) | [common]
open override fun [decodeFloat](decode-float.md)(): [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | | [decodeFloatElement](index.md#-1593052636%2FFunctions%2F1557879601) | [common]
override fun [decodeFloatElement](index.md#-1593052636%2FFunctions%2F1557879601)(descriptor: SerialDescriptor, index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | -| [decodeInline](index.md#-1467422496%2FFunctions%2F1557879601) | [common]
open override fun [decodeInline](index.md#-1467422496%2FFunctions%2F1557879601)(inlineDescriptor: SerialDescriptor): Decoder | -| [decodeInlineElement](index.md#-744803901%2FFunctions%2F1557879601) | [common]
override fun [decodeInlineElement](index.md#-744803901%2FFunctions%2F1557879601)(descriptor: SerialDescriptor, index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): Decoder | +| [decodeInline](index.md#-1467422496%2FFunctions%2F1557879601) | [common]
open override fun [decodeInline](index.md#-1467422496%2FFunctions%2F1557879601)(descriptor: SerialDescriptor): Decoder | +| [decodeInlineElement](index.md#-744803901%2FFunctions%2F1557879601) | [common]
open override fun [decodeInlineElement](index.md#-744803901%2FFunctions%2F1557879601)(descriptor: SerialDescriptor, index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): Decoder | | [decodeInt](decode-int.md) | [common]
open override fun [decodeInt](decode-int.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | | [decodeIntElement](index.md#1722943985%2FFunctions%2F1557879601) | [common]
override fun [decodeIntElement](index.md#1722943985%2FFunctions%2F1557879601)(descriptor: SerialDescriptor, index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | | [decodeLong](decode-long.md) | [common]
open override fun [decodeLong](decode-long.md)(): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | @@ -42,7 +44,7 @@ A Decoder that decodes its values from the provided [input](../-parcel/index.md) | [decodeNullableSerializableElement](index.md#688572507%2FFunctions%2F1557879601) | [common]
override fun <[T](index.md#688572507%2FFunctions%2F1557879601) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [decodeNullableSerializableElement](index.md#688572507%2FFunctions%2F1557879601)(descriptor: SerialDescriptor, index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), deserializer: DeserializationStrategy<[T](index.md#688572507%2FFunctions%2F1557879601)?>, previousValue: [T](index.md#688572507%2FFunctions%2F1557879601)?): [T](index.md#688572507%2FFunctions%2F1557879601)? | | [decodeNullableSerializableValue](index.md#-1990472531%2FFunctions%2F1557879601) | [common]
open fun <[T](index.md#-1990472531%2FFunctions%2F1557879601) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [decodeNullableSerializableValue](index.md#-1990472531%2FFunctions%2F1557879601)(deserializer: DeserializationStrategy<[T](index.md#-1990472531%2FFunctions%2F1557879601)?>): [T](index.md#-1990472531%2FFunctions%2F1557879601)? | | [decodeSequentially](decode-sequentially.md) | [common]
open override fun [decodeSequentially](decode-sequentially.md)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | -| [decodeSerializableElement](index.md#-197381303%2FFunctions%2F1557879601) | [common]
override fun <[T](index.md#-197381303%2FFunctions%2F1557879601)> [decodeSerializableElement](index.md#-197381303%2FFunctions%2F1557879601)(descriptor: SerialDescriptor, index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), deserializer: DeserializationStrategy<[T](index.md#-197381303%2FFunctions%2F1557879601)>, previousValue: [T](index.md#-197381303%2FFunctions%2F1557879601)?): [T](index.md#-197381303%2FFunctions%2F1557879601) | +| [decodeSerializableElement](index.md#-197381303%2FFunctions%2F1557879601) | [common]
open override fun <[T](index.md#-197381303%2FFunctions%2F1557879601)> [decodeSerializableElement](index.md#-197381303%2FFunctions%2F1557879601)(descriptor: SerialDescriptor, index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), deserializer: DeserializationStrategy<[T](index.md#-197381303%2FFunctions%2F1557879601)>, previousValue: [T](index.md#-197381303%2FFunctions%2F1557879601)?): [T](index.md#-197381303%2FFunctions%2F1557879601) | | [decodeSerializableValue](index.md#-815868476%2FFunctions%2F1557879601) | [common]
open fun <[T](index.md#-815868476%2FFunctions%2F1557879601)> [decodeSerializableValue](index.md#-815868476%2FFunctions%2F1557879601)(deserializer: DeserializationStrategy<[T](index.md#-815868476%2FFunctions%2F1557879601)>): [T](index.md#-815868476%2FFunctions%2F1557879601)
open fun <[T](index.md#1910178398%2FFunctions%2F1557879601)> [decodeSerializableValue](index.md#1910178398%2FFunctions%2F1557879601)(deserializer: DeserializationStrategy<[T](index.md#1910178398%2FFunctions%2F1557879601)>, previousValue: [T](index.md#1910178398%2FFunctions%2F1557879601)?): [T](index.md#1910178398%2FFunctions%2F1557879601) | | [decodeShort](decode-short.md) | [common]
open override fun [decodeShort](decode-short.md)(): [Short](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html) | | [decodeShortElement](index.md#-1405074428%2FFunctions%2F1557879601) | [common]
override fun [decodeShortElement](index.md#-1405074428%2FFunctions%2F1557879601)(descriptor: SerialDescriptor, index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Short](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html) | @@ -50,6 +52,9 @@ A Decoder that decodes its values from the provided [input](../-parcel/index.md) | [decodeStringElement](index.md#1875429195%2FFunctions%2F1557879601) | [common]
override fun [decodeStringElement](index.md#1875429195%2FFunctions%2F1557879601)(descriptor: SerialDescriptor, index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | | [decodeValue](index.md#-247490770%2FFunctions%2F1557879601) | [common]
open fun [decodeValue](index.md#-247490770%2FFunctions%2F1557879601)(): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) | | [endStructure](index.md#-1401965681%2FFunctions%2F1557879601) | [common]
open override fun [endStructure](index.md#-1401965681%2FFunctions%2F1557879601)(descriptor: SerialDescriptor) | +| [equals](equals.md) | [common]
open operator override fun [equals](equals.md)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](hash-code.md) | [common]
open override fun [hashCode](hash-code.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](to-string.md) | [common]
open override fun [toString](to-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | ## Properties diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/to-string.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/to-string.md new file mode 100644 index 0000000..ea7a95a --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-decoder/to-string.md @@ -0,0 +1,6 @@ +//[parcelable-core](../../../index.md)/[com.chrynan.parcelable.core](../index.md)/[ParcelDecoder](index.md)/[toString](to-string.md) + +# toString + +[common]\ +open override fun [toString](to-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/-parcel-encoder.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/-parcel-encoder.md index 34c18e8..491369b 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/-parcel-encoder.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/-parcel-encoder.md @@ -3,4 +3,4 @@ # ParcelEncoder [common]\ -fun [ParcelEncoder](-parcel-encoder.md)(serializersModule: SerializersModule = EmptySerializersModule, output: [Parcel](../-parcel/index.md)) +fun [ParcelEncoder](-parcel-encoder.md)(serializersModule: SerializersModule = EmptySerializersModule(), output: [Parcel](../-parcel/index.md)) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/equals.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/equals.md new file mode 100644 index 0000000..6960cfa --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/equals.md @@ -0,0 +1,6 @@ +//[parcelable-core](../../../index.md)/[com.chrynan.parcelable.core](../index.md)/[ParcelEncoder](index.md)/[equals](equals.md) + +# equals + +[common]\ +open operator override fun [equals](equals.md)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/hash-code.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/hash-code.md new file mode 100644 index 0000000..0f211af --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/hash-code.md @@ -0,0 +1,6 @@ +//[parcelable-core](../../../index.md)/[com.chrynan.parcelable.core](../index.md)/[ParcelEncoder](index.md)/[hashCode](hash-code.md) + +# hashCode + +[common]\ +open override fun [hashCode](hash-code.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/index.md index 074762f..d3f4cdd 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/index.md @@ -3,7 +3,9 @@ # ParcelEncoder [common]\ -class [ParcelEncoder](index.md)(serializersModule: SerializersModule, output: [Parcel](../-parcel/index.md)) : AbstractEncoder +@ExperimentalSerializationApi + +class [ParcelEncoder](index.md)(val serializersModule: SerializersModule = EmptySerializersModule(), output: [Parcel](../-parcel/index.md)) : AbstractEncoder An Encoder that encodes its values to the provided [output](../-parcel/index.md). @@ -11,7 +13,7 @@ An Encoder that encodes its values to the provided [output](../-parcel/index.md) | | | |---|---| -| [ParcelEncoder](-parcel-encoder.md) | [common]
fun [ParcelEncoder](-parcel-encoder.md)(serializersModule: SerializersModule = EmptySerializersModule, output: [Parcel](../-parcel/index.md)) | +| [ParcelEncoder](-parcel-encoder.md) | [common]
fun [ParcelEncoder](-parcel-encoder.md)(serializersModule: SerializersModule = EmptySerializersModule(), output: [Parcel](../-parcel/index.md)) | ## Functions @@ -31,7 +33,7 @@ An Encoder that encodes its values to the provided [output](../-parcel/index.md) | [encodeEnum](encode-enum.md) | [common]
open override fun [encodeEnum](encode-enum.md)(enumDescriptor: SerialDescriptor, index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) | | [encodeFloat](encode-float.md) | [common]
open override fun [encodeFloat](encode-float.md)(value: [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)) | | [encodeFloatElement](index.md#-570516580%2FFunctions%2F1557879601) | [common]
override fun [encodeFloatElement](index.md#-570516580%2FFunctions%2F1557879601)(descriptor: SerialDescriptor, index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), value: [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)) | -| [encodeInline](index.md#-3972464%2FFunctions%2F1557879601) | [common]
open override fun [encodeInline](index.md#-3972464%2FFunctions%2F1557879601)(inlineDescriptor: SerialDescriptor): Encoder | +| [encodeInline](index.md#-3972464%2FFunctions%2F1557879601) | [common]
open override fun [encodeInline](index.md#-3972464%2FFunctions%2F1557879601)(descriptor: SerialDescriptor): Encoder | | [encodeInlineElement](index.md#2108465011%2FFunctions%2F1557879601) | [common]
override fun [encodeInlineElement](index.md#2108465011%2FFunctions%2F1557879601)(descriptor: SerialDescriptor, index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): Encoder | | [encodeInt](encode-int.md) | [common]
open override fun [encodeInt](encode-int.md)(value: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) | | [encodeIntElement](index.md#-761765764%2FFunctions%2F1557879601) | [common]
override fun [encodeIntElement](index.md#-761765764%2FFunctions%2F1557879601)(descriptor: SerialDescriptor, index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), value: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) | @@ -49,7 +51,10 @@ An Encoder that encodes its values to the provided [output](../-parcel/index.md) | [encodeStringElement](index.md#283493024%2FFunctions%2F1557879601) | [common]
override fun [encodeStringElement](index.md#283493024%2FFunctions%2F1557879601)(descriptor: SerialDescriptor, index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), value: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) | | [encodeValue](index.md#733233407%2FFunctions%2F1557879601) | [common]
open fun [encodeValue](index.md#733233407%2FFunctions%2F1557879601)(value: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)) | | [endStructure](index.md#578274407%2FFunctions%2F1557879601) | [common]
open override fun [endStructure](index.md#578274407%2FFunctions%2F1557879601)(descriptor: SerialDescriptor) | +| [equals](equals.md) | [common]
open operator override fun [equals](equals.md)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](hash-code.md) | [common]
open override fun [hashCode](hash-code.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | | [shouldEncodeElementDefault](index.md#-1741660893%2FFunctions%2F1557879601) | [common]
open fun [shouldEncodeElementDefault](index.md#-1741660893%2FFunctions%2F1557879601)(descriptor: SerialDescriptor, index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [toString](to-string.md) | [common]
open override fun [toString](to-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | ## Properties diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/to-string.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/to-string.md new file mode 100644 index 0000000..306ea2e --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel-encoder/to-string.md @@ -0,0 +1,6 @@ +//[parcelable-core](../../../index.md)/[com.chrynan.parcelable.core](../index.md)/[ParcelEncoder](index.md)/[toString](to-string.md) + +# toString + +[common]\ +open override fun [toString](to-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel.md index 66ec72a..2998bf3 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel.md @@ -2,6 +2,11 @@ # Parcel +[android]\ +inline fun [Parcel](-parcel.md)(androidParcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) + +Creates a [com.chrynan.parcelable.core.Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) instance from the provided [android.os.Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html) class. + [common]\ expect fun [Parcel](-parcel.md)(): [Parcel](-parcel/index.md) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-buffer-capacity.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-buffer-capacity.md index bde85cd..c3438eb 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-buffer-capacity.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-buffer-capacity.md @@ -6,3 +6,5 @@ abstract val [dataBufferCapacity](data-buffer-capacity.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) The total amount of space available in this parcel. This should always be greater than or equal to [dataSize](data-size.md). There may be more space available ([dataBufferCapacity](data-buffer-capacity.md)) in the underlying data buffer than there is data available ([dataSize](data-size.md)). The difference between [dataBufferCapacity](data-buffer-capacity.md) and [dataSize](data-size.md) indicates the amount of room remaining in the underlying data buffer until more space needs to be allocated. + +This value represents an amount of bytes. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md index be72e57..2d2a1fc 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md @@ -6,3 +6,5 @@ abstract val [dataPosition](data-position.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) The current index position in the data buffer. Should never be more than [dataSize](data-size.md). + +This value represents an amount of bytes. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-remaining.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-remaining.md index af1d552..4f2ce30 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-remaining.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-remaining.md @@ -6,3 +6,5 @@ open val [dataRemaining](data-remaining.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) The remaining amount of data to be read ([dataSize](data-size.md) - [dataPosition](data-position.md)). + +This value represents an amount of bytes. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-size.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-size.md index 952b9ca..b7e2cc9 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-size.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-size.md @@ -6,3 +6,5 @@ abstract val [dataSize](data-size.md): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) The total amount of data contained in this parcel. + +This value represents an amount of bytes. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md index 2136f58..c5d8b06 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md @@ -11,7 +11,7 @@ Note that this is not meant to represent a persistent storage component. Instead Note that this is based off of the Android Parcel component. -## See also +#### See also common @@ -32,8 +32,9 @@ common | [readLong](../-input-parcel/read-long.md) | [common]
abstract fun [readLong](../-input-parcel/read-long.md)(): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)
Retrieves a [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) from the Parcel at the current data position. | | [readShort](../-input-parcel/read-short.md) | [common]
abstract fun [readShort](../-input-parcel/read-short.md)(): [Short](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html)
Retrieves a [Short](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html) from the Parcel at the current data position. | | [readString](../-input-parcel/read-string.md) | [common]
abstract fun [readString](../-input-parcel/read-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
Retrieves a [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) from the Parcel at the current data position. | -| [recycle](recycle.md) | [common]
abstract fun [recycle](recycle.md)()
Puts this parcel object back into the pool, removing its data. This parcel object should not be used after it is recycled. | -| [toByteArray](to-byte-array.md) | [common]
abstract fun [toByteArray](to-byte-array.md)(): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)
Obtains a [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) of the underlying values of this [Parcel](index.md). | +| [recycle](recycle.md) | [common]
abstract fun [recycle](recycle.md)()
Puts this parcel object back into the pool, removing its data. This parcel object should not be used after it is recycled. Attempting to write or read from a recycled [Parcel](index.md) may cause an exception to be thrown. | +| [setDataPosition](set-data-position.md) | [common]
abstract fun [setDataPosition](set-data-position.md)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html))
Sets the [dataPosition](data-position.md) to the provided [position](set-data-position.md) value. This will throw an exception if the provided [position](set-data-position.md) value is less than zero or exceeds [dataSize](data-size.md). | +| [toByteArray](to-byte-array.md) | [common]
abstract fun [toByteArray](to-byte-array.md)(): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)
Obtains a [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) of the underlying values of this [Parcel](index.md). Note that the returned [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) data is structured in a way that is meaningful for this implementation, but doesn't guarantee any structure for outside usage or usage between different implementations. | | [writeBoolean](../-output-parcel/write-boolean.md) | [common]
abstract fun [writeBoolean](../-output-parcel/write-boolean.md)(value: [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html))
Writes the [Boolean](../-output-parcel/write-boolean.md) to the Parcel at the current data position. | | [writeByte](../-output-parcel/write-byte.md) | [common]
abstract fun [writeByte](../-output-parcel/write-byte.md)(value: [Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html))
Writes the [Byte](../-output-parcel/write-byte.md) to the Parcel at the current data position. | | [writeChar](../-output-parcel/write-char.md) | [common]
abstract fun [writeChar](../-output-parcel/write-char.md)(value: [Char](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html))
Writes the [Char](../-output-parcel/write-char.md) to the Parcel at the current data position. | @@ -60,3 +61,9 @@ common |---| | [AndroidParcel](../-android-parcel/index.md) | | [ByteArrayParcel](../-byte-array-parcel/index.md) | + +## Extensions + +| Name | Summary | +|---|---| +| [resetDataPosition](../reset-data-position.md) | [common]
inline fun [Parcel](index.md).[resetDataPosition](../reset-data-position.md)()
A convenience function for calling the [Parcel.setDataPosition](set-data-position.md) with an index value of zero. | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/recycle.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/recycle.md index 2e778f0..664ca5f 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/recycle.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/recycle.md @@ -5,4 +5,4 @@ [common]\ abstract fun [recycle](recycle.md)() -Puts this parcel object back into the pool, removing its data. This parcel object should not be used after it is recycled. +Puts this parcel object back into the pool, removing its data. This parcel object should not be used after it is recycled. Attempting to write or read from a recycled [Parcel](index.md) may cause an exception to be thrown. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/set-data-position.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/set-data-position.md new file mode 100644 index 0000000..9241854 --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/set-data-position.md @@ -0,0 +1,10 @@ +//[parcelable-core](../../../index.md)/[com.chrynan.parcelable.core](../index.md)/[Parcel](index.md)/[setDataPosition](set-data-position.md) + +# setDataPosition + +[common]\ +abstract fun [setDataPosition](set-data-position.md)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)) + +Sets the [dataPosition](data-position.md) to the provided [position](set-data-position.md) value. This will throw an exception if the provided [position](set-data-position.md) value is less than zero or exceeds [dataSize](data-size.md). + +The position value represents an amount of bytes. For instance, an [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) is a 32-bit (4 byte) integer value, when it is stored in this [Parcel](index.md), the [dataSize](data-size.md) will increase by a value of four. To skip over the integer value to the next item, call this function with the current value plus four. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/to-byte-array.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/to-byte-array.md index 1877e96..1280dd3 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/to-byte-array.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/to-byte-array.md @@ -5,4 +5,4 @@ [common]\ abstract fun [toByteArray](to-byte-array.md)(): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) -Obtains a [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) of the underlying values of this [Parcel](index.md). +Obtains a [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) of the underlying values of this [Parcel](index.md). Note that the returned [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) data is structured in a way that is meaningful for this implementation, but doesn't guarantee any structure for outside usage or usage between different implementations. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable-configuration-builder/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable-configuration-builder/index.md index 2243761..484fc1a 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable-configuration-builder/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable-configuration-builder/index.md @@ -3,6 +3,8 @@ # ParcelableConfigurationBuilder [common]\ +@ExperimentalSerializationApi + class [ParcelableConfigurationBuilder](index.md) A builder class to create an instance of [ParcelableConfiguration](../-parcelable-configuration/index.md). diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable-configuration/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable-configuration/index.md index d3b03c4..aedce47 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable-configuration/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable-configuration/index.md @@ -3,6 +3,8 @@ # ParcelableConfiguration [common]\ +@ExperimentalSerializationApi + data class [ParcelableConfiguration](index.md) A class containing configuration values used in a [Parcelable](../-parcelable/index.md) instance. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable.md index f1d098a..83eb178 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable.md @@ -3,7 +3,10 @@ # Parcelable [common]\ -fun [Parcelable](-parcelable.md)(from: [Parcelable](-parcelable/index.md) = Parcelable.Default, builderAction: [ParcelableConfigurationBuilder](-parcelable-configuration-builder/index.md).() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): [Parcelable](-parcelable/index.md) + +@ExperimentalSerializationApi + +fun [Parcelable](-parcelable.md)(from: [Parcelable](-parcelable/index.md) = Parcelable.Default, builderAction: [ParcelableConfigurationBuilder](-parcelable-configuration-builder/index.md).() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): [Parcelable.Custom](-parcelable/-custom/index.md) Creates a custom [Parcelable](-parcelable/index.md) implementation using the provided [from](-parcelable/index.md) as a base for the configuration and the provided [builderAction](-parcelable.md) function to override those configuration values. @@ -11,7 +14,7 @@ Creates a custom [Parcelable](-parcelable/index.md) implementation using the pro A [Parcelable.Custom](-parcelable/-custom/index.md) instance using the provided configuration values. -## Parameters +#### Parameters common diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/equals.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/equals.md new file mode 100644 index 0000000..ead8fc7 --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/equals.md @@ -0,0 +1,6 @@ +//[parcelable-core](../../../../index.md)/[com.chrynan.parcelable.core](../../index.md)/[Parcelable](../index.md)/[Custom](index.md)/[equals](equals.md) + +# equals + +[common]\ +open operator override fun [equals](equals.md)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/hash-code.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/hash-code.md new file mode 100644 index 0000000..52922ce --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/hash-code.md @@ -0,0 +1,6 @@ +//[parcelable-core](../../../../index.md)/[com.chrynan.parcelable.core](../../index.md)/[Parcelable](../index.md)/[Custom](index.md)/[hashCode](hash-code.md) + +# hashCode + +[common]\ +open override fun [hashCode](hash-code.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/index.md index 09a9fb5..4efffcc 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/index.md @@ -16,10 +16,25 @@ Note that instances of this class are created using the [Parcelable](../index.md | [decodeFromByteArray](../decode-from-byte-array.md) | [common]
open override fun <[T](../decode-from-byte-array.md)> [decodeFromByteArray](../decode-from-byte-array.md)(deserializer: DeserializationStrategy<[T](../decode-from-byte-array.md)>, bytes: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)): [T](../decode-from-byte-array.md) | | [decodeFromParcel](../decode-from-parcel.md) | [common]
fun <[T](../decode-from-parcel.md)> [decodeFromParcel](../decode-from-parcel.md)(parcel: [Parcel](../../-parcel/index.md), deserializer: DeserializationStrategy<[T](../decode-from-parcel.md)>): [T](../decode-from-parcel.md)
Decodes the value of [T](../decode-from-parcel.md) from the provided [parcel](../decode-from-parcel.md) using the provided [deserializer](../decode-from-parcel.md). | | [encodeToByteArray](../encode-to-byte-array.md) | [common]
open override fun <[T](../encode-to-byte-array.md)> [encodeToByteArray](../encode-to-byte-array.md)(serializer: SerializationStrategy<[T](../encode-to-byte-array.md)>, value: [T](../encode-to-byte-array.md)): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) | -| [encodeToParcel](../encode-to-parcel.md) | [common]
fun <[T](../encode-to-parcel.md)> [encodeToParcel](../encode-to-parcel.md)(parcel: [Parcel](../../-parcel/index.md), serializer: SerializationStrategy<[T](../encode-to-parcel.md)>, value: [T](../encode-to-parcel.md)): [Parcel](../../-parcel/index.md)
Encodes the provided [value](../encode-to-parcel.md) to the provided [parcel](../encode-to-parcel.md) using the provided [serializer](../encode-to-parcel.md). | +| [encodeToParcel](../encode-to-parcel.md) | [common]
fun <[T](../encode-to-parcel.md)> [encodeToParcel](../encode-to-parcel.md)(parcel: [Parcel](../../-parcel/index.md) = Parcel(), serializer: SerializationStrategy<[T](../encode-to-parcel.md)>, value: [T](../encode-to-parcel.md)): [Parcel](../../-parcel/index.md)
Encodes the provided [value](../encode-to-parcel.md) to the provided [parcel](../encode-to-parcel.md) using the provided [serializer](../encode-to-parcel.md). | +| [equals](equals.md) | [common]
open operator override fun [equals](equals.md)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | +| [hashCode](hash-code.md) | [common]
open override fun [hashCode](hash-code.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | +| [toString](to-string.md) | [common]
open override fun [toString](to-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | ## Properties | Name | Summary | |---|---| | [serializersModule](../serializers-module.md) | [common]
open override val [serializersModule](../serializers-module.md): SerializersModule | + +## Extensions + +| Name | Summary | +|---|---| +| [decodeFromBundle](../../decode-from-bundle.md) | [android]
@ExperimentalSerializationApi
fun <[T](../../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](../../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle.md)
Retrieves a value of [T](../../decode-from-bundle.md) of [kClass](../../decode-from-bundle.md) from the provided [bundle](../../decode-from-bundle.md) and [flags](../../decode-from-bundle.md), or null if the [bundle](../../decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](../../decode-from-bundle.md)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](../../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](../../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle.md)
Retrieves a value of [T](../../decode-from-bundle.md) of [deserializer](../../decode-from-bundle.md) from the provided [bundle](../../decode-from-bundle.md) and [flags](../../decode-from-bundle.md), or null if the [bundle](../../decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](../../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle.md)
Retrieves a value of [T](../../decode-from-bundle.md) from the deserializer obtained from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [bundle](../../decode-from-bundle.md) and [flags](../../decode-from-bundle.md), or null if the [bundle](../../decode-from-bundle.md) is empty or | +| [decodeFromBundleOrNull](../../decode-from-bundle-or-null.md) | [android]
@ExperimentalSerializationApi
fun <[T](../../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundleOrNull](../../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../decode-from-bundle-or-null.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle-or-null.md)?
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundleOrNull](../../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle-or-null.md)? | +| [decodeFromIntent](../../decode-from-intent.md) | [android]
@ExperimentalSerializationApi
fun <[T](../../decode-from-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromIntent](../../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../../decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](../../decode-from-intent.md)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromIntent](../../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](../../decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../../decode-from-intent.md)?
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-intent.md)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromIntent](../../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../../decode-from-intent.md)? | +| [decodeFromParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]decode-from-parcel.md) | [android]
@ExperimentalSerializationApi
fun <[T](../../[android]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcel](../../[android]decode-from-parcel.md)(parcel: [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[android]decode-from-parcel.md)>): [T](../../[android]decode-from-parcel.md)
Decodes the value of [T](../../[android]decode-from-parcel.md) from the provided [parcel](../../[android]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass](../../[android]decode-from-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T](../../[jvm]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F1959883941).[decodeFromParcel](../../[jvm]decode-from-parcel.md)(parcel: [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[jvm]decode-from-parcel.md)>): [T](../../[jvm]decode-from-parcel.md)
Decodes the value of [T](../../[jvm]decode-from-parcel.md) from the provided [parcel](../../[jvm]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass](../../[jvm]decode-from-parcel.md).
[common]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-parcel.md)> [Parcelable](../index.md).[decodeFromParcel](../../decode-from-parcel.md)(parcel: [Parcel](../../-parcel/index.md)): [T](../../decode-from-parcel.md)
Decodes the value of [T](../../decode-from-parcel.md) from the provided [parcel](../../decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../serializers-module.md). | +| [encodeToBundle](../../encode-to-bundle.md) | [android]
@ExperimentalSerializationApi
fun <[T](../../encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](../../encode-to-bundle.md)(value: [T](../../encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../../encode-to-bundle.md) of [kClass](../../encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](../../encode-to-bundle.md)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](../../encode-to-bundle.md)(value: [T](../../encode-to-bundle.md), serializer: SerializationStrategy<[T](../../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../../encode-to-bundle.md) of [serializer](../../encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
inline fun <[T](../../encode-to-bundle.md)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](../../encode-to-bundle.md)(value: [T](../../encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../../encode-to-bundle.md) of serializer obtained from this [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. | +| [encodeToIntent](../../encode-to-intent.md) | [android]
@ExperimentalSerializationApi
fun <[T](../../encode-to-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[encodeToIntent](../../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../../encode-to-intent.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](../../encode-to-intent.md)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[encodeToIntent](../../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../../encode-to-intent.md), serializer: SerializationStrategy<[T](../../encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
inline fun <[T](../../encode-to-intent.md)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[encodeToIntent](../../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../../encode-to-intent.md), intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) | +| [encodeToParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]encode-to-parcel.md) | [android]
@ExperimentalSerializationApi
fun <[T](../../[android]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[encodeToParcel](../../[android]encode-to-parcel.md)(parcel: [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[android]encode-to-parcel.md)>, value: [T](../../[android]encode-to-parcel.md)): [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Encodes the provided [value](../../[android]encode-to-parcel.md) to the provided [parcel](../../[android]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass](../../[android]encode-to-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T](../../[jvm]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F1959883941).[encodeToParcel](../../[jvm]encode-to-parcel.md)(parcel: [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[jvm]encode-to-parcel.md)>, value: [T](../../[jvm]encode-to-parcel.md)): [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Encodes the provided [value](../../[jvm]encode-to-parcel.md) to the provided [parcel](../../[jvm]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass](../../[jvm]encode-to-parcel.md).
[common]
@ExperimentalSerializationApi
inline fun <[T](../../encode-to-parcel.md)> [Parcelable](../index.md).[encodeToParcel](../../encode-to-parcel.md)(parcel: [Parcel](../../-parcel/index.md) = Parcel(), value: [T](../../encode-to-parcel.md)): [Parcel](../../-parcel/index.md)
Encodes the provided [value](../../encode-to-parcel.md) to the provided [parcel](../../encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../serializers-module.md). | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/to-string.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/to-string.md new file mode 100644 index 0000000..10bc91f --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-custom/to-string.md @@ -0,0 +1,6 @@ +//[parcelable-core](../../../../index.md)/[com.chrynan.parcelable.core](../../index.md)/[Parcelable](../index.md)/[Custom](index.md)/[toString](to-string.md) + +# toString + +[common]\ +open override fun [toString](to-string.md)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-default/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-default/index.md index 7e32e46..6827943 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-default/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/-default/index.md @@ -14,10 +14,22 @@ The default [Parcelable](../index.md) implementation using the default [Parcelab | [decodeFromByteArray](../decode-from-byte-array.md) | [common]
open override fun <[T](../decode-from-byte-array.md)> [decodeFromByteArray](../decode-from-byte-array.md)(deserializer: DeserializationStrategy<[T](../decode-from-byte-array.md)>, bytes: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)): [T](../decode-from-byte-array.md) | | [decodeFromParcel](../decode-from-parcel.md) | [common]
fun <[T](../decode-from-parcel.md)> [decodeFromParcel](../decode-from-parcel.md)(parcel: [Parcel](../../-parcel/index.md), deserializer: DeserializationStrategy<[T](../decode-from-parcel.md)>): [T](../decode-from-parcel.md)
Decodes the value of [T](../decode-from-parcel.md) from the provided [parcel](../decode-from-parcel.md) using the provided [deserializer](../decode-from-parcel.md). | | [encodeToByteArray](../encode-to-byte-array.md) | [common]
open override fun <[T](../encode-to-byte-array.md)> [encodeToByteArray](../encode-to-byte-array.md)(serializer: SerializationStrategy<[T](../encode-to-byte-array.md)>, value: [T](../encode-to-byte-array.md)): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) | -| [encodeToParcel](../encode-to-parcel.md) | [common]
fun <[T](../encode-to-parcel.md)> [encodeToParcel](../encode-to-parcel.md)(parcel: [Parcel](../../-parcel/index.md), serializer: SerializationStrategy<[T](../encode-to-parcel.md)>, value: [T](../encode-to-parcel.md)): [Parcel](../../-parcel/index.md)
Encodes the provided [value](../encode-to-parcel.md) to the provided [parcel](../encode-to-parcel.md) using the provided [serializer](../encode-to-parcel.md). | +| [encodeToParcel](../encode-to-parcel.md) | [common]
fun <[T](../encode-to-parcel.md)> [encodeToParcel](../encode-to-parcel.md)(parcel: [Parcel](../../-parcel/index.md) = Parcel(), serializer: SerializationStrategy<[T](../encode-to-parcel.md)>, value: [T](../encode-to-parcel.md)): [Parcel](../../-parcel/index.md)
Encodes the provided [value](../encode-to-parcel.md) to the provided [parcel](../encode-to-parcel.md) using the provided [serializer](../encode-to-parcel.md). | ## Properties | Name | Summary | |---|---| | [serializersModule](../serializers-module.md) | [common]
open override val [serializersModule](../serializers-module.md): SerializersModule | + +## Extensions + +| Name | Summary | +|---|---| +| [decodeFromBundle](../../decode-from-bundle.md) | [android]
@ExperimentalSerializationApi
fun <[T](../../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](../../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle.md)
Retrieves a value of [T](../../decode-from-bundle.md) of [kClass](../../decode-from-bundle.md) from the provided [bundle](../../decode-from-bundle.md) and [flags](../../decode-from-bundle.md), or null if the [bundle](../../decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](../../decode-from-bundle.md)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](../../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](../../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle.md)
Retrieves a value of [T](../../decode-from-bundle.md) of [deserializer](../../decode-from-bundle.md) from the provided [bundle](../../decode-from-bundle.md) and [flags](../../decode-from-bundle.md), or null if the [bundle](../../decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](../../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle.md)
Retrieves a value of [T](../../decode-from-bundle.md) from the deserializer obtained from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [bundle](../../decode-from-bundle.md) and [flags](../../decode-from-bundle.md), or null if the [bundle](../../decode-from-bundle.md) is empty or | +| [decodeFromBundleOrNull](../../decode-from-bundle-or-null.md) | [android]
@ExperimentalSerializationApi
fun <[T](../../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundleOrNull](../../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../decode-from-bundle-or-null.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle-or-null.md)?
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundleOrNull](../../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../../decode-from-bundle-or-null.md)? | +| [decodeFromIntent](../../decode-from-intent.md) | [android]
@ExperimentalSerializationApi
fun <[T](../../decode-from-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromIntent](../../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../../decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](../../decode-from-intent.md)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromIntent](../../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](../../decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../../decode-from-intent.md)?
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-intent.md)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromIntent](../../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../../decode-from-intent.md)? | +| [decodeFromParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]decode-from-parcel.md) | [android]
@ExperimentalSerializationApi
fun <[T](../../[android]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcel](../../[android]decode-from-parcel.md)(parcel: [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[android]decode-from-parcel.md)>): [T](../../[android]decode-from-parcel.md)
Decodes the value of [T](../../[android]decode-from-parcel.md) from the provided [parcel](../../[android]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass](../../[android]decode-from-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T](../../[jvm]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F1959883941).[decodeFromParcel](../../[jvm]decode-from-parcel.md)(parcel: [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[jvm]decode-from-parcel.md)>): [T](../../[jvm]decode-from-parcel.md)
Decodes the value of [T](../../[jvm]decode-from-parcel.md) from the provided [parcel](../../[jvm]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass](../../[jvm]decode-from-parcel.md).
[common]
@ExperimentalSerializationApi
inline fun <[T](../../decode-from-parcel.md)> [Parcelable](../index.md).[decodeFromParcel](../../decode-from-parcel.md)(parcel: [Parcel](../../-parcel/index.md)): [T](../../decode-from-parcel.md)
Decodes the value of [T](../../decode-from-parcel.md) from the provided [parcel](../../decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../serializers-module.md). | +| [encodeToBundle](../../encode-to-bundle.md) | [android]
@ExperimentalSerializationApi
fun <[T](../../encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](../../encode-to-bundle.md)(value: [T](../../encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../../encode-to-bundle.md) of [kClass](../../encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](../../encode-to-bundle.md)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](../../encode-to-bundle.md)(value: [T](../../encode-to-bundle.md), serializer: SerializationStrategy<[T](../../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../../encode-to-bundle.md) of [serializer](../../encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
inline fun <[T](../../encode-to-bundle.md)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](../../encode-to-bundle.md)(value: [T](../../encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../../encode-to-bundle.md) of serializer obtained from this [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. | +| [encodeToIntent](../../encode-to-intent.md) | [android]
@ExperimentalSerializationApi
fun <[T](../../encode-to-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[encodeToIntent](../../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../../encode-to-intent.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](../../encode-to-intent.md)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[encodeToIntent](../../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../../encode-to-intent.md), serializer: SerializationStrategy<[T](../../encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
inline fun <[T](../../encode-to-intent.md)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[encodeToIntent](../../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../../encode-to-intent.md), intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) | +| [encodeToParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]encode-to-parcel.md) | [android]
@ExperimentalSerializationApi
fun <[T](../../[android]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F-1462739831).[encodeToParcel](../../[android]encode-to-parcel.md)(parcel: [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[android]encode-to-parcel.md)>, value: [T](../../[android]encode-to-parcel.md)): [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Encodes the provided [value](../../[android]encode-to-parcel.md) to the provided [parcel](../../[android]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass](../../[android]encode-to-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T](../../[jvm]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](../index.md#1131268509%2FExtensions%2F1959883941).[encodeToParcel](../../[jvm]encode-to-parcel.md)(parcel: [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../../[jvm]encode-to-parcel.md)>, value: [T](../../[jvm]encode-to-parcel.md)): [Parcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Encodes the provided [value](../../[jvm]encode-to-parcel.md) to the provided [parcel](../../[jvm]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass](../../[jvm]encode-to-parcel.md).
[common]
@ExperimentalSerializationApi
inline fun <[T](../../encode-to-parcel.md)> [Parcelable](../index.md).[encodeToParcel](../../encode-to-parcel.md)(parcel: [Parcel](../../-parcel/index.md) = Parcel(), value: [T](../../encode-to-parcel.md)): [Parcel](../../-parcel/index.md)
Encodes the provided [value](../../encode-to-parcel.md) to the provided [parcel](../../encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../serializers-module.md). | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md index 225fa9d..596f689 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md @@ -7,6 +7,17 @@ fun <[T](decode-from-parcel.md)> [decodeFromParcel](decode-from-parcel.md) Decodes the value of [T](decode-from-parcel.md) from the provided [parcel](decode-from-parcel.md) using the provided [deserializer](decode-from-parcel.md). +Note that the provided [parcel](decode-from-parcel.md) must already be set to the appropriate [Parcel.dataPosition](../-parcel/data-position.md) before invoking this function, as this function does not make assumptions about where the starting [Parcel.dataPosition](../-parcel/data-position.md) is located. Failure to do so may result in an exception being thrown when attempting to decode. + #### Return -The decoded value of [T](decode-from-parcel.md). +The decoded value of [T](decode-from-parcel.md) obtained from the [parcel](decode-from-parcel.md). + +#### Parameters + +common + +| | | +|---|---| +| parcel | The [Parcel](../-parcel/index.md) to decode the returned value from. The [Parcel.dataPosition](../-parcel/data-position.md) must be set correctly. | +| deserializer | The DeserializationStrategy used to decode the value from the [parcel](decode-from-parcel.md). | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md index 46c9952..300112b 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md @@ -3,10 +3,22 @@ # encodeToParcel [common]\ -fun <[T](encode-to-parcel.md)> [encodeToParcel](encode-to-parcel.md)(parcel: [Parcel](../-parcel/index.md), serializer: SerializationStrategy<[T](encode-to-parcel.md)>, value: [T](encode-to-parcel.md)): [Parcel](../-parcel/index.md) +fun <[T](encode-to-parcel.md)> [encodeToParcel](encode-to-parcel.md)(parcel: [Parcel](../-parcel/index.md) = Parcel(), serializer: SerializationStrategy<[T](encode-to-parcel.md)>, value: [T](encode-to-parcel.md)): [Parcel](../-parcel/index.md) Encodes the provided [value](encode-to-parcel.md) to the provided [parcel](encode-to-parcel.md) using the provided [serializer](encode-to-parcel.md). +Note that the provided [parcel](encode-to-parcel.md) must already be set to the appropriate [Parcel.dataPosition](../-parcel/data-position.md) before invoking this function, as this function does not make assumptions about where the starting [Parcel.dataPosition](../-parcel/data-position.md) is located. Failure to do so may result in an exception being thrown when attempting to encode. + #### Return The provided [parcel](encode-to-parcel.md) containing the encoded [value](encode-to-parcel.md). + +#### Parameters + +common + +| | | +|---|---| +| parcel | The [Parcel](../-parcel/index.md) to encode the [value](encode-to-parcel.md) to. Defaults to an empty [Parcel](../-parcel/index.md). The [Parcel.dataPosition](../-parcel/data-position.md) must be set correctly. | +| serializer | The SerializationStrategy used to encode the [value](encode-to-parcel.md) to the [parcel](encode-to-parcel.md). | +| value | The value that should be encoded into the [parcel](encode-to-parcel.md). | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/index.md index bb6aea2..78a3155 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/index.md @@ -3,13 +3,15 @@ # Parcelable [common]\ +@ExperimentalSerializationApi + sealed class [Parcelable](index.md) : SerialFormat, BinaryFormat Represents the serialization format for [ParcelEncoder](../-parcel-encoder/index.md)s and [ParcelDecoder](../-parcel-decoder/index.md)s. This is analogous to the Json class for the JSON serialization format. Note that this is not to be confused with the Android Parcelable interface. However, there is some overlap, and hence the same name, as the Android Parcelable interface provides a means of serializing data between different components and processes, this [Parcelable](index.md) interface performs a similar task. Though the way they perform their tasks differs. -## See also +#### See also common @@ -31,7 +33,7 @@ common | [decodeFromByteArray](decode-from-byte-array.md) | [common]
open override fun <[T](decode-from-byte-array.md)> [decodeFromByteArray](decode-from-byte-array.md)(deserializer: DeserializationStrategy<[T](decode-from-byte-array.md)>, bytes: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)): [T](decode-from-byte-array.md) | | [decodeFromParcel](decode-from-parcel.md) | [common]
fun <[T](decode-from-parcel.md)> [decodeFromParcel](decode-from-parcel.md)(parcel: [Parcel](../-parcel/index.md), deserializer: DeserializationStrategy<[T](decode-from-parcel.md)>): [T](decode-from-parcel.md)
Decodes the value of [T](decode-from-parcel.md) from the provided [parcel](decode-from-parcel.md) using the provided [deserializer](decode-from-parcel.md). | | [encodeToByteArray](encode-to-byte-array.md) | [common]
open override fun <[T](encode-to-byte-array.md)> [encodeToByteArray](encode-to-byte-array.md)(serializer: SerializationStrategy<[T](encode-to-byte-array.md)>, value: [T](encode-to-byte-array.md)): [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) | -| [encodeToParcel](encode-to-parcel.md) | [common]
fun <[T](encode-to-parcel.md)> [encodeToParcel](encode-to-parcel.md)(parcel: [Parcel](../-parcel/index.md), serializer: SerializationStrategy<[T](encode-to-parcel.md)>, value: [T](encode-to-parcel.md)): [Parcel](../-parcel/index.md)
Encodes the provided [value](encode-to-parcel.md) to the provided [parcel](encode-to-parcel.md) using the provided [serializer](encode-to-parcel.md). | +| [encodeToParcel](encode-to-parcel.md) | [common]
fun <[T](encode-to-parcel.md)> [encodeToParcel](encode-to-parcel.md)(parcel: [Parcel](../-parcel/index.md) = Parcel(), serializer: SerializationStrategy<[T](encode-to-parcel.md)>, value: [T](encode-to-parcel.md)): [Parcel](../-parcel/index.md)
Encodes the provided [value](encode-to-parcel.md) to the provided [parcel](encode-to-parcel.md) using the provided [serializer](encode-to-parcel.md). | ## Properties @@ -50,9 +52,10 @@ common | Name | Summary | |---|---| -| [decodeFromBundle](../decode-from-bundle.md) | [android]
fun <[T](../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle.md)
inline fun <[T](../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle.md)
fun <[T](../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle.md) | -| [decodeFromBundleOrNull](../decode-from-bundle-or-null.md) | [android]
fun <[T](../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundleOrNull](../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../decode-from-bundle-or-null.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle-or-null.md)?
inline fun <[T](../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundleOrNull](../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle-or-null.md)?
fun <[T](../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundleOrNull](../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, deserializer: DeserializationStrategy<[T](../decode-from-bundle-or-null.md)>): [T](../decode-from-bundle-or-null.md)? | -| [decodeFromParcel](../decode-from-parcel.md) | [android]
fun <[T](../decode-from-parcel.md)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcel](../decode-from-parcel.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html), deserializer: DeserializationStrategy<[T](../decode-from-parcel.md)>): [T](../decode-from-parcel.md)
inline fun <[T](../decode-from-parcel.md)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcel](../decode-from-parcel.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html)): [T](../decode-from-parcel.md)
fun <[T](../decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcel](../decode-from-parcel.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html), kclass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../decode-from-parcel.md)>): [T](../decode-from-parcel.md)
[common]
inline fun <[T](../decode-from-parcel.md)> [Parcelable](index.md).[decodeFromParcel](../decode-from-parcel.md)(parcel: [Parcel](../-parcel/index.md)): [T](../decode-from-parcel.md)
A convenience function to [Parcelable.decodeFromParcel](decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](serializers-module.md). | -| [decodeFromParcelOrNull](../decode-from-parcel-or-null.md) | [android]
fun <[T](../decode-from-parcel-or-null.md)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcelOrNull](../decode-from-parcel-or-null.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html), deserializer: DeserializationStrategy<[T](../decode-from-parcel-or-null.md)>): [T](../decode-from-parcel-or-null.md)?
inline fun <[T](../decode-from-parcel-or-null.md)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcelOrNull](../decode-from-parcel-or-null.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html)): [T](../decode-from-parcel-or-null.md)?
fun <[T](../decode-from-parcel-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcelOrNull](../decode-from-parcel-or-null.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html), kclass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../decode-from-parcel-or-null.md)>): [T](../decode-from-parcel-or-null.md)? | -| [encodeToBundle](../encode-to-bundle.md) | [android]
fun <[T](../encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](../encode-to-bundle.md)(value: [T](../encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
inline fun <[T](../encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](../encode-to-bundle.md)(value: [T](../encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
fun <[T](../encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](../encode-to-bundle.md)(value: [T](../encode-to-bundle.md), serializer: SerializationStrategy<[T](../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) | -| [encodeToParcel](../encode-to-parcel.md) | [android]
fun <[T](../encode-to-parcel.md)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[encodeToParcel](../encode-to-parcel.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html), serializer: SerializationStrategy<[T](../encode-to-parcel.md)>, value: [T](../encode-to-parcel.md)): [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
inline fun <[T](../encode-to-parcel.md)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[encodeToParcel](../encode-to-parcel.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html), value: [T](../encode-to-parcel.md)): [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
fun <[T](../encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[encodeToParcel](../encode-to-parcel.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html), value: [T](../encode-to-parcel.md), kclass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../encode-to-parcel.md)>): [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
[common]
inline fun <[T](../encode-to-parcel.md)> [Parcelable](index.md).[encodeToParcel](../encode-to-parcel.md)(parcel: [Parcel](../-parcel/index.md), value: [T](../encode-to-parcel.md)): [Parcel](../-parcel/index.md)
A convenience function to [Parcelable.encodeToParcel](encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](serializers-module.md). | +| [decodeFromBundle](../decode-from-bundle.md) | [android]
@ExperimentalSerializationApi
fun <[T](../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle.md)
Retrieves a value of [T](../decode-from-bundle.md) of [kClass](../decode-from-bundle.md) from the provided [bundle](../decode-from-bundle.md) and [flags](../decode-from-bundle.md), or null if the [bundle](../decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](../decode-from-bundle.md)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](../decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle.md)
Retrieves a value of [T](../decode-from-bundle.md) of [deserializer](../decode-from-bundle.md) from the provided [bundle](../decode-from-bundle.md) and [flags](../decode-from-bundle.md), or null if the [bundle](../decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
inline fun <[T](../decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](../decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle.md)
Retrieves a value of [T](../decode-from-bundle.md) from the deserializer obtained from the [Parcelable.serializersModule](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [bundle](../decode-from-bundle.md) and [flags](../decode-from-bundle.md), or null if the [bundle](../decode-from-bundle.md) is empty or | +| [decodeFromBundleOrNull](../decode-from-bundle-or-null.md) | [android]
@ExperimentalSerializationApi
fun <[T](../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundleOrNull](../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../decode-from-bundle-or-null.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle-or-null.md)?
@ExperimentalSerializationApi
inline fun <[T](../decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundleOrNull](../decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](../decode-from-bundle-or-null.md)? | +| [decodeFromIntent](../decode-from-intent.md) | [android]
@ExperimentalSerializationApi
fun <[T](../decode-from-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromIntent](../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](../decode-from-intent.md)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromIntent](../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](../decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../decode-from-intent.md)?
@ExperimentalSerializationApi
inline fun <[T](../decode-from-intent.md)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromIntent](../decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](../decode-from-intent.md)? | +| [decodeFromParcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]decode-from-parcel.md) | [android]
@ExperimentalSerializationApi
fun <[T](../[android]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcel](../[android]decode-from-parcel.md)(parcel: [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../[android]decode-from-parcel.md)>): [T](../[android]decode-from-parcel.md)
Decodes the value of [T](../[android]decode-from-parcel.md) from the provided [parcel](../[android]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass](../[android]decode-from-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T](../[jvm]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F1959883941).[decodeFromParcel](../[jvm]decode-from-parcel.md)(parcel: [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../[jvm]decode-from-parcel.md)>): [T](../[jvm]decode-from-parcel.md)
Decodes the value of [T](../[jvm]decode-from-parcel.md) from the provided [parcel](../[jvm]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass](../[jvm]decode-from-parcel.md).
[common]
@ExperimentalSerializationApi
inline fun <[T](../decode-from-parcel.md)> [Parcelable](index.md).[decodeFromParcel](../decode-from-parcel.md)(parcel: [Parcel](../-parcel/index.md)): [T](../decode-from-parcel.md)
Decodes the value of [T](../decode-from-parcel.md) from the provided [parcel](../decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](serializers-module.md). | +| [encodeToBundle](../encode-to-bundle.md) | [android]
@ExperimentalSerializationApi
fun <[T](../encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](../encode-to-bundle.md)(value: [T](../encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../encode-to-bundle.md) of [kClass](../encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](../encode-to-bundle.md)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](../encode-to-bundle.md)(value: [T](../encode-to-bundle.md), serializer: SerializationStrategy<[T](../encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../encode-to-bundle.md) of [serializer](../encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
inline fun <[T](../encode-to-bundle.md)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](../encode-to-bundle.md)(value: [T](../encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](../encode-to-bundle.md) of serializer obtained from this [Parcelable.serializersModule](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. | +| [encodeToIntent](../encode-to-intent.md) | [android]
@ExperimentalSerializationApi
fun <[T](../encode-to-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[encodeToIntent](../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../encode-to-intent.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](../encode-to-intent.md)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[encodeToIntent](../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../encode-to-intent.md), serializer: SerializationStrategy<[T](../encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
inline fun <[T](../encode-to-intent.md)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[encodeToIntent](../encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](../encode-to-intent.md), intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) | +| [encodeToParcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]encode-to-parcel.md) | [android]
@ExperimentalSerializationApi
fun <[T](../[android]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F-1462739831).[encodeToParcel](../[android]encode-to-parcel.md)(parcel: [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../[android]encode-to-parcel.md)>, value: [T](../[android]encode-to-parcel.md)): [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Encodes the provided [value](../[android]encode-to-parcel.md) to the provided [parcel](../[android]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass](../[android]encode-to-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T](../[jvm]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](index.md#1131268509%2FExtensions%2F1959883941).[encodeToParcel](../[jvm]encode-to-parcel.md)(parcel: [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](../[jvm]encode-to-parcel.md)>, value: [T](../[jvm]encode-to-parcel.md)): [Parcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Encodes the provided [value](../[jvm]encode-to-parcel.md) to the provided [parcel](../[jvm]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass](../[jvm]encode-to-parcel.md).
[common]
@ExperimentalSerializationApi
inline fun <[T](../encode-to-parcel.md)> [Parcelable](index.md).[encodeToParcel](../encode-to-parcel.md)(parcel: [Parcel](../-parcel/index.md) = Parcel(), value: [T](../encode-to-parcel.md)): [Parcel](../-parcel/index.md)
Encodes the provided [value](../encode-to-parcel.md) to the provided [parcel](../encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](serializers-module.md). | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[android]decode-from-parcel.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[android]decode-from-parcel.md new file mode 100644 index 0000000..ce3e4bb --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[android]decode-from-parcel.md @@ -0,0 +1,25 @@ +//[parcelable-core](../../index.md)/[com.chrynan.parcelable.core](index.md)/[[android]decodeFromParcel]([android]decode-from-parcel.md) + +# decodeFromParcel + +[android]\ + +@ExperimentalSerializationApi + +fun <[T]([android]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcel]([android]decode-from-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([android]decode-from-parcel.md)>): [T]([android]decode-from-parcel.md) + +Decodes the value of [T]([android]decode-from-parcel.md) from the provided [parcel]([android]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass]([android]decode-from-parcel.md). + +Note that the provided [parcel]([android]decode-from-parcel.md) must already be set to the appropriate [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) before invoking this function, as this function does not make assumptions about where the starting [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) is located. Failure to do so may result in an exception being thrown when attempting to decode. + +#### Return + +The decoded value of [T]([android]decode-from-parcel.md) obtained from the [parcel]([android]decode-from-parcel.md). + +#### Parameters + +android + +| | | +|---|---| +| parcel | The [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) to decode the returned value from. The [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) must be set correctly. | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[android]encode-to-parcel.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[android]encode-to-parcel.md new file mode 100644 index 0000000..256a2a4 --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[android]encode-to-parcel.md @@ -0,0 +1,26 @@ +//[parcelable-core](../../index.md)/[com.chrynan.parcelable.core](index.md)/[[android]encodeToParcel]([android]encode-to-parcel.md) + +# encodeToParcel + +[android]\ + +@ExperimentalSerializationApi + +fun <[T]([android]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToParcel]([android]encode-to-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([android]encode-to-parcel.md)>, value: [T]([android]encode-to-parcel.md)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) + +Encodes the provided [value]([android]encode-to-parcel.md) to the provided [parcel]([android]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass]([android]encode-to-parcel.md). + +Note that the provided [parcel]([android]encode-to-parcel.md) must already be set to the appropriate [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) before invoking this function, as this function does not make assumptions about where the starting [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) is located. Failure to do so may result in an exception being thrown when attempting to encode. + +#### Return + +The provided [parcel]([android]encode-to-parcel.md) containing the encoded [value]([android]encode-to-parcel.md). + +#### Parameters + +android + +| | | +|---|---| +| parcel | The [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) to encode the [value]([android]encode-to-parcel.md) to. Defaults to an empty [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md). The [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) must be set correctly. | +| value | The value that should be encoded into the [parcel]([android]encode-to-parcel.md). | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]decode-from-parcel.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]decode-from-parcel.md new file mode 100644 index 0000000..75e8ca9 --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]decode-from-parcel.md @@ -0,0 +1,25 @@ +//[parcelable-core](../../index.md)/[com.chrynan.parcelable.core](index.md)/[[jvm]decodeFromParcel]([jvm]decode-from-parcel.md) + +# decodeFromParcel + +[jvm]\ + +@ExperimentalSerializationApi + +fun <[T]([jvm]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F1959883941).[decodeFromParcel]([jvm]decode-from-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([jvm]decode-from-parcel.md)>): [T]([jvm]decode-from-parcel.md) + +Decodes the value of [T]([jvm]decode-from-parcel.md) from the provided [parcel]([jvm]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass]([jvm]decode-from-parcel.md). + +Note that the provided [parcel]([jvm]decode-from-parcel.md) must already be set to the appropriate [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) before invoking this function, as this function does not make assumptions about where the starting [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) is located. Failure to do so may result in an exception being thrown when attempting to decode. + +#### Return + +The decoded value of [T]([jvm]decode-from-parcel.md) obtained from the [parcel]([jvm]decode-from-parcel.md). + +#### Parameters + +jvm + +| | | +|---|---| +| parcel | The [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) to decode the returned value from. The [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) must be set correctly. | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]encode-to-parcel.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]encode-to-parcel.md new file mode 100644 index 0000000..a668231 --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/[jvm]encode-to-parcel.md @@ -0,0 +1,26 @@ +//[parcelable-core](../../index.md)/[com.chrynan.parcelable.core](index.md)/[[jvm]encodeToParcel]([jvm]encode-to-parcel.md) + +# encodeToParcel + +[jvm]\ + +@ExperimentalSerializationApi + +fun <[T]([jvm]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F1959883941).[encodeToParcel]([jvm]encode-to-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([jvm]encode-to-parcel.md)>, value: [T]([jvm]encode-to-parcel.md)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) + +Encodes the provided [value]([jvm]encode-to-parcel.md) to the provided [parcel]([jvm]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass]([jvm]encode-to-parcel.md). + +Note that the provided [parcel]([jvm]encode-to-parcel.md) must already be set to the appropriate [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) before invoking this function, as this function does not make assumptions about where the starting [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) is located. Failure to do so may result in an exception being thrown when attempting to encode. + +#### Return + +The provided [parcel]([jvm]encode-to-parcel.md) containing the encoded [value]([jvm]encode-to-parcel.md). + +#### Parameters + +jvm + +| | | +|---|---| +| parcel | The [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) to encode the [value]([jvm]encode-to-parcel.md) to. Defaults to an empty [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md). The [Parcel.dataPosition](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/data-position.md) must be set correctly. | +| value | The value that should be encoded into the [parcel]([jvm]encode-to-parcel.md). | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle-or-null.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle-or-null.md index ce63ede..cca0bcb 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle-or-null.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle-or-null.md @@ -3,12 +3,11 @@ # decodeFromBundleOrNull [android]\ -fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AndroidParceler](-android-parceler/index.md).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-bundle-or-null.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle-or-null.md)? -inline fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AndroidParceler](-android-parceler/index.md).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle-or-null.md)? +@ExperimentalSerializationApi fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-bundle-or-null.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle-or-null.md)? -inline fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle-or-null.md)? +@ExperimentalSerializationApi -fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, deserializer: DeserializationStrategy<[T](decode-from-bundle-or-null.md)>): [T](decode-from-bundle-or-null.md)? +inline fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle-or-null.md)? diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle.md index 94b0765..da5ab77 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-bundle.md @@ -3,20 +3,25 @@ # decodeFromBundle [android]\ -fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AndroidParceler](-android-parceler/index.md).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md) + +@ExperimentalSerializationApi + +fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md) Retrieves a value of [T](decode-from-bundle.md) of [kClass](decode-from-bundle.md) from the provided [bundle](decode-from-bundle.md) and [flags](decode-from-bundle.md), or null if the [bundle](decode-from-bundle.md) is empty or [android]\ -fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AndroidParceler](-android-parceler/index.md).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md) + +@ExperimentalSerializationApi + +fun <[T](decode-from-bundle.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md) Retrieves a value of [T](decode-from-bundle.md) of [deserializer](decode-from-bundle.md) from the provided [bundle](decode-from-bundle.md) and [flags](decode-from-bundle.md), or null if the [bundle](decode-from-bundle.md) is empty or [android]\ -inline fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AndroidParceler](-android-parceler/index.md).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md) -fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md) +@ExperimentalSerializationApi inline fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md) -fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md) +Retrieves a value of [T](decode-from-bundle.md) from the deserializer obtained from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [bundle](decode-from-bundle.md) and [flags](decode-from-bundle.md), or null if the [bundle](decode-from-bundle.md) is empty or diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-intent.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-intent.md new file mode 100644 index 0000000..f124d60 --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-intent.md @@ -0,0 +1,17 @@ +//[parcelable-core](../../index.md)/[com.chrynan.parcelable.core](index.md)/[decodeFromIntent](decode-from-intent.md) + +# decodeFromIntent + +[android]\ + +@ExperimentalSerializationApi + +fun <[T](decode-from-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromIntent](decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](decode-from-intent.md)? + +@ExperimentalSerializationApi + +fun <[T](decode-from-intent.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromIntent](decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](decode-from-intent.md)? + +@ExperimentalSerializationApi + +inline fun <[T](decode-from-intent.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromIntent](decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](decode-from-intent.md)? diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-parcel.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-parcel.md index 44dbec5..e978259 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-parcel.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-parcel.md @@ -2,14 +2,24 @@ # decodeFromParcel -[android]\ -fun <[T](decode-from-parcel.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcel](decode-from-parcel.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html), deserializer: DeserializationStrategy<[T](decode-from-parcel.md)>): [T](decode-from-parcel.md) - -inline fun <[T](decode-from-parcel.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcel](decode-from-parcel.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html)): [T](decode-from-parcel.md) +[common]\ -fun <[T](decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcel](decode-from-parcel.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html), kclass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-parcel.md)>): [T](decode-from-parcel.md) +@ExperimentalSerializationApi -[common]\ inline fun <[T](decode-from-parcel.md)> [Parcelable](-parcelable/index.md).[decodeFromParcel](decode-from-parcel.md)(parcel: [Parcel](-parcel/index.md)): [T](decode-from-parcel.md) -A convenience function to [Parcelable.decodeFromParcel](-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md). +Decodes the value of [T](decode-from-parcel.md) from the provided [parcel](decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md). + +Note that the provided [parcel](decode-from-parcel.md) must already be set to the appropriate [Parcel.dataPosition](-parcel/data-position.md) before invoking this function, as this function does not make assumptions about where the starting [Parcel.dataPosition](-parcel/data-position.md) is located. Failure to do so may result in an exception being thrown when attempting to decode. + +#### Return + +The decoded value of [T](decode-from-parcel.md) obtained from the [parcel](decode-from-parcel.md). + +#### Parameters + +common + +| | | +|---|---| +| parcel | The [Parcel](-parcel/index.md) to decode the returned value from. The [Parcel.dataPosition](-parcel/data-position.md) must be set correctly. | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-bundle.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-bundle.md index b8dee0e..92b8c8f 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-bundle.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-bundle.md @@ -3,20 +3,25 @@ # encodeToBundle [android]\ -fun <[T](encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AndroidParceler](-android-parceler/index.md).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) + +@ExperimentalSerializationApi + +fun <[T](encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) Writes the provided [value](encode-to-bundle.md) of [kClass](encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. [android]\ -fun <[T](encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AndroidParceler](-android-parceler/index.md).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), serializer: SerializationStrategy<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) + +@ExperimentalSerializationApi + +fun <[T](encode-to-bundle.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), serializer: SerializationStrategy<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) Writes the provided [value](encode-to-bundle.md) of [serializer](encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. [android]\ -inline fun <[T](encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AndroidParceler](-android-parceler/index.md).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) -fun <[T](encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) +@ExperimentalSerializationApi -inline fun <[T](encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) +inline fun <[T](encode-to-bundle.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) -fun <[T](encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), serializer: SerializationStrategy<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) +Writes the provided [value](encode-to-bundle.md) of serializer obtained from this [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-intent.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-intent.md new file mode 100644 index 0000000..2b785c0 --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-intent.md @@ -0,0 +1,17 @@ +//[parcelable-core](../../index.md)/[com.chrynan.parcelable.core](index.md)/[encodeToIntent](encode-to-intent.md) + +# encodeToIntent + +[android]\ + +@ExperimentalSerializationApi + +fun <[T](encode-to-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToIntent](encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](encode-to-intent.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) + +@ExperimentalSerializationApi + +fun <[T](encode-to-intent.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToIntent](encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](encode-to-intent.md), serializer: SerializationStrategy<[T](encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) + +@ExperimentalSerializationApi + +inline fun <[T](encode-to-intent.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToIntent](encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](encode-to-intent.md), intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-parcel.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-parcel.md index 490fdd1..3a611fd 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-parcel.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-parcel.md @@ -2,14 +2,25 @@ # encodeToParcel -[android]\ -fun <[T](encode-to-parcel.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToParcel](encode-to-parcel.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html), serializer: SerializationStrategy<[T](encode-to-parcel.md)>, value: [T](encode-to-parcel.md)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) +[common]\ -inline fun <[T](encode-to-parcel.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToParcel](encode-to-parcel.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html), value: [T](encode-to-parcel.md)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) +@ExperimentalSerializationApi -fun <[T](encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToParcel](encode-to-parcel.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html), value: [T](encode-to-parcel.md), kclass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](encode-to-parcel.md)>): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) +inline fun <[T](encode-to-parcel.md)> [Parcelable](-parcelable/index.md).[encodeToParcel](encode-to-parcel.md)(parcel: [Parcel](-parcel/index.md) = Parcel(), value: [T](encode-to-parcel.md)): [Parcel](-parcel/index.md) -[common]\ -inline fun <[T](encode-to-parcel.md)> [Parcelable](-parcelable/index.md).[encodeToParcel](encode-to-parcel.md)(parcel: [Parcel](-parcel/index.md), value: [T](encode-to-parcel.md)): [Parcel](-parcel/index.md) +Encodes the provided [value](encode-to-parcel.md) to the provided [parcel](encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md). + +Note that the provided [parcel](encode-to-parcel.md) must already be set to the appropriate [Parcel.dataPosition](-parcel/data-position.md) before invoking this function, as this function does not make assumptions about where the starting [Parcel.dataPosition](-parcel/data-position.md) is located. Failure to do so may result in an exception being thrown when attempting to encode. + +#### Return + +The provided [parcel](encode-to-parcel.md) containing the encoded [value](encode-to-parcel.md). + +#### Parameters + +common -A convenience function to [Parcelable.encodeToParcel](-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md). +| | | +|---|---| +| parcel | The [Parcel](-parcel/index.md) to encode the [value](encode-to-parcel.md) to. Defaults to an empty [Parcel](-parcel/index.md). The [Parcel.dataPosition](-parcel/data-position.md) must be set correctly. | +| value | The value that should be encoded into the [parcel](encode-to-parcel.md). | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable-extra.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable-extra.md index 67b51d5..981922d 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable-extra.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable-extra.md @@ -3,8 +3,15 @@ # getParcelableExtra [android]\ -inline fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), parceler: [AndroidParceler](-android-parceler/index.md)): [T](get-parcelable-extra.md)? -inline fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable): [T](get-parcelable-extra.md)? +@ExperimentalSerializationApi -fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable, deserializer: DeserializationStrategy<[T](get-parcelable-extra.md)>): [T](get-parcelable-extra.md)? +fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](get-parcelable-extra.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [T](get-parcelable-extra.md)? + +@ExperimentalSerializationApi + +fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](get-parcelable-extra.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [T](get-parcelable-extra.md)? + +@ExperimentalSerializationApi + +inline fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [T](get-parcelable-extra.md)? diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable.md index 41516b7..0ff6e3a 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/get-parcelable.md @@ -3,8 +3,15 @@ # getParcelable [android]\ -inline fun <[T](get-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), parceler: [AndroidParceler](-android-parceler/index.md)): [T](get-parcelable.md)? -inline fun <[T](get-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [T](get-parcelable.md)? +@ExperimentalSerializationApi -fun <[T](get-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default, deserializer: DeserializationStrategy<[T](get-parcelable.md)>): [T](get-parcelable.md)? +fun <[T](get-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](get-parcelable.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [T](get-parcelable.md)? + +@ExperimentalSerializationApi + +fun <[T](get-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](get-parcelable.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [T](get-parcelable.md)? + +@ExperimentalSerializationApi + +inline fun <[T](get-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [T](get-parcelable.md)? diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/index.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/index.md index d14f39f..c9d0324 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/index.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/index.md @@ -1,40 +1,40 @@ //[parcelable-core](../../index.md)/[com.chrynan.parcelable.core](index.md) -# Package com.chrynan.parcelable.core +# Package-level declarations ## Types | Name | Summary | |---|---| -| [AndroidParcel](-android-parcel/index.md) | [android]
class [AndroidParcel](-android-parcel/index.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html)) : [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
An Android implementation of the [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) interface. This class wraps the provided [android.os.Parcel](../../../parcelable-core/com.chrynan.parcelable.core/-android-parcel/parcel.md) and delegates the reading and writing to it. | -| [AndroidParceler](-android-parceler/index.md) | [android]
class [AndroidParceler](-android-parceler/index.md)(parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831))
A class bridging the serialization logic between the [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) interface in this library and the Android [android.os.Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html) and [android.os.Parcelable](https://developer.android.com/reference/kotlin/android/os/Parcelable.html) interfaces. | +| [AndroidParcel](-android-parcel/index.md) | [android]
class [AndroidParcel](-android-parcel/index.md) : [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
An Android implementation of the [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) interface. This class wraps the provided [android.os.Parcel](../../../parcelable-core/com.chrynan.parcelable.core/-android-parcel/parcel.md) and delegates the reading and writing to it. | | [ByteArrayParcel](-byte-array-parcel/index.md) | [common]
class [ByteArrayParcel](-byte-array-parcel/index.md) : [Parcel](-parcel/index.md)
A [Parcel](-parcel/index.md) implementation that stores its underlying data into a [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html). | | [InputParcel](-input-parcel/index.md) | [common]
interface [InputParcel](-input-parcel/index.md)
An interface that provides a way to read from a basic input source. This interface provides the reading functionality of the [Parcel](-parcel/index.md) interface. | | [InvalidParcelValueException](-invalid-parcel-value-exception/index.md) | [common]
class [InvalidParcelValueException](-invalid-parcel-value-exception/index.md)(message: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)) : SerializationException
An exception that is thrown when an unexpected [Parcel](-parcel/index.md) value was retrieved or stored. | | [OutputParcel](-output-parcel/index.md) | [common]
interface [OutputParcel](-output-parcel/index.md)
An interface that provides a way to write to a basic output source. This interface provides the writing functionality of the [Parcel](-parcel/index.md) interface. | | [Parcel](-parcel/index.md) | [common]
interface [Parcel](-parcel/index.md) : [InputParcel](-input-parcel/index.md), [OutputParcel](-output-parcel/index.md)
An interface representing a component that has the ability for primitive types to be written to and read from it. | -| [Parcelable](-parcelable/index.md) | [common]
sealed class [Parcelable](-parcelable/index.md) : SerialFormat, BinaryFormat
Represents the serialization format for [ParcelEncoder](-parcel-encoder/index.md)s and [ParcelDecoder](-parcel-decoder/index.md)s. This is analogous to the Json class for the JSON serialization format. | -| [ParcelableConfiguration](-parcelable-configuration/index.md) | [common]
data class [ParcelableConfiguration](-parcelable-configuration/index.md)
A class containing configuration values used in a [Parcelable](-parcelable/index.md) instance. | -| [ParcelableConfigurationBuilder](-parcelable-configuration-builder/index.md) | [common]
class [ParcelableConfigurationBuilder](-parcelable-configuration-builder/index.md)
A builder class to create an instance of [ParcelableConfiguration](-parcelable-configuration/index.md). | -| [ParcelDecoder](-parcel-decoder/index.md) | [common]
class [ParcelDecoder](-parcel-decoder/index.md)(serializersModule: SerializersModule, input: [Parcel](-parcel/index.md)) : AbstractDecoder
A Decoder that decodes its values from the provided [input](-parcel/index.md). | -| [ParcelEncoder](-parcel-encoder/index.md) | [common]
class [ParcelEncoder](-parcel-encoder/index.md)(serializersModule: SerializersModule, output: [Parcel](-parcel/index.md)) : AbstractEncoder
An Encoder that encodes its values to the provided [output](-parcel/index.md). | +| [Parcelable](-parcelable/index.md) | [common]
@ExperimentalSerializationApi
sealed class [Parcelable](-parcelable/index.md) : SerialFormat, BinaryFormat
Represents the serialization format for [ParcelEncoder](-parcel-encoder/index.md)s and [ParcelDecoder](-parcel-decoder/index.md)s. This is analogous to the Json class for the JSON serialization format. | +| [ParcelableConfiguration](-parcelable-configuration/index.md) | [common]
@ExperimentalSerializationApi
data class [ParcelableConfiguration](-parcelable-configuration/index.md)
A class containing configuration values used in a [Parcelable](-parcelable/index.md) instance. | +| [ParcelableConfigurationBuilder](-parcelable-configuration-builder/index.md) | [common]
@ExperimentalSerializationApi
class [ParcelableConfigurationBuilder](-parcelable-configuration-builder/index.md)
A builder class to create an instance of [ParcelableConfiguration](-parcelable-configuration/index.md). | +| [ParcelDecoder](-parcel-decoder/index.md) | [common]
@ExperimentalSerializationApi
class [ParcelDecoder](-parcel-decoder/index.md)(val serializersModule: SerializersModule = EmptySerializersModule(), input: [Parcel](-parcel/index.md)) : AbstractDecoder
A Decoder that decodes its values from the provided [input](-parcel/index.md). | +| [ParcelEncoder](-parcel-encoder/index.md) | [common]
@ExperimentalSerializationApi
class [ParcelEncoder](-parcel-encoder/index.md)(val serializersModule: SerializersModule = EmptySerializersModule(), output: [Parcel](-parcel/index.md)) : AbstractEncoder
An Encoder that encodes its values to the provided [output](-parcel/index.md). | ## Functions | Name | Summary | |---|---| -| [createFromParcel](create-from-parcel.md) | [android]
inline fun <[T](create-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AndroidParceler](-android-parceler/index.md).[createFromParcel](create-from-parcel.md)(source: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html)): [T](create-from-parcel.md)
A reified convenience function for [AndroidParceler.createFromParcel](-android-parceler/create-from-parcel.md). | -| [decodeFromBundle](decode-from-bundle.md) | [android]
inline fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AndroidParceler](-android-parceler/index.md).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md)
inline fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md)
fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md)
fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md)
[android]
fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AndroidParceler](-android-parceler/index.md).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md)
Retrieves a value of [T](decode-from-bundle.md) of [kClass](decode-from-bundle.md) from the provided [bundle](decode-from-bundle.md) and [flags](decode-from-bundle.md), or null if the [bundle](decode-from-bundle.md) is empty or
[android]
fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AndroidParceler](-android-parceler/index.md).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md)
Retrieves a value of [T](decode-from-bundle.md) of [deserializer](decode-from-bundle.md) from the provided [bundle](decode-from-bundle.md) and [flags](decode-from-bundle.md), or null if the [bundle](decode-from-bundle.md) is empty or | -| [decodeFromBundleOrNull](decode-from-bundle-or-null.md) | [android]
inline fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AndroidParceler](-android-parceler/index.md).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle-or-null.md)?
inline fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle-or-null.md)?
fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AndroidParceler](-android-parceler/index.md).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-bundle-or-null.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle-or-null.md)?
fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, deserializer: DeserializationStrategy<[T](decode-from-bundle-or-null.md)>): [T](decode-from-bundle-or-null.md)?
fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-bundle-or-null.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle-or-null.md)? | -| [decodeFromParcel](decode-from-parcel.md) | [android]
inline fun <[T](decode-from-parcel.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcel](decode-from-parcel.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html)): [T](decode-from-parcel.md)
fun <[T](decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcel](decode-from-parcel.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html), kclass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-parcel.md)>): [T](decode-from-parcel.md)
fun <[T](decode-from-parcel.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcel](decode-from-parcel.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html), deserializer: DeserializationStrategy<[T](decode-from-parcel.md)>): [T](decode-from-parcel.md)
[common]
inline fun <[T](decode-from-parcel.md)> [Parcelable](-parcelable/index.md).[decodeFromParcel](decode-from-parcel.md)(parcel: [Parcel](-parcel/index.md)): [T](decode-from-parcel.md)
A convenience function to [Parcelable.decodeFromParcel](-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md). | -| [decodeFromParcelOrNull](decode-from-parcel-or-null.md) | [android]
inline fun <[T](decode-from-parcel-or-null.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcelOrNull](decode-from-parcel-or-null.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html)): [T](decode-from-parcel-or-null.md)?
fun <[T](decode-from-parcel-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcelOrNull](decode-from-parcel-or-null.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html), kclass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-parcel-or-null.md)>): [T](decode-from-parcel-or-null.md)?
fun <[T](decode-from-parcel-or-null.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcelOrNull](decode-from-parcel-or-null.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html), deserializer: DeserializationStrategy<[T](decode-from-parcel-or-null.md)>): [T](decode-from-parcel-or-null.md)? | -| [encodeToBundle](encode-to-bundle.md) | [android]
inline fun <[T](encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AndroidParceler](-android-parceler/index.md).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
inline fun <[T](encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
fun <[T](encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
fun <[T](encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), serializer: SerializationStrategy<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
[android]
fun <[T](encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AndroidParceler](-android-parceler/index.md).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](encode-to-bundle.md) of [kClass](encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
fun <[T](encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AndroidParceler](-android-parceler/index.md).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), serializer: SerializationStrategy<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](encode-to-bundle.md) of [serializer](encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. | -| [encodeToParcel](encode-to-parcel.md) | [android]
inline fun <[T](encode-to-parcel.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToParcel](encode-to-parcel.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html), value: [T](encode-to-parcel.md)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
fun <[T](encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToParcel](encode-to-parcel.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html), value: [T](encode-to-parcel.md), kclass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](encode-to-parcel.md)>): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
fun <[T](encode-to-parcel.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToParcel](encode-to-parcel.md)(parcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html), serializer: SerializationStrategy<[T](encode-to-parcel.md)>, value: [T](encode-to-parcel.md)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
[common]
inline fun <[T](encode-to-parcel.md)> [Parcelable](-parcelable/index.md).[encodeToParcel](encode-to-parcel.md)(parcel: [Parcel](-parcel/index.md), value: [T](encode-to-parcel.md)): [Parcel](-parcel/index.md)
A convenience function to [Parcelable.encodeToParcel](-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md). | -| [getParcelable](get-parcelable.md) | [android]
inline fun <[T](get-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), parceler: [AndroidParceler](-android-parceler/index.md)): [T](get-parcelable.md)?
inline fun <[T](get-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [T](get-parcelable.md)?
fun <[T](get-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default, deserializer: DeserializationStrategy<[T](get-parcelable.md)>): [T](get-parcelable.md)? | -| [getParcelableExtra](get-parcelable-extra.md) | [android]
inline fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), parceler: [AndroidParceler](-android-parceler/index.md)): [T](get-parcelable-extra.md)?
inline fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable): [T](get-parcelable-extra.md)?
fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable, deserializer: DeserializationStrategy<[T](get-parcelable-extra.md)>): [T](get-parcelable-extra.md)? | -| [newArrayInline](new-array-inline.md) | [android]
inline fun <[T](new-array-inline.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AndroidParceler](-android-parceler/index.md).[newArrayInline](new-array-inline.md)(size: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[T](new-array-inline.md)?>
A reified convenience function for [AndroidParceler.newArray](-android-parceler/new-array.md). | -| [Parcel](-parcel.md) | [common]
expect fun [Parcel](-parcel.md)(): [Parcel](-parcel/index.md)
Creates an empty [Parcel](-parcel/index.md) instance.
[android, ios, js, jvm]
[android, ios, js, jvm]
actual fun [Parcel](-parcel.md)(): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
[android, ios, js, jvm]
actual fun [Parcel](-parcel.md)(data: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
[common]
expect fun [Parcel](-parcel.md)(data: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)): [Parcel](-parcel/index.md)
Creates a [Parcel](-parcel/index.md) instance containing the provided [data](-parcel.md). | -| [Parcelable](-parcelable.md) | [common]
fun [Parcelable](-parcelable.md)(from: [Parcelable](-parcelable/index.md) = Parcelable.Default, builderAction: [ParcelableConfigurationBuilder](-parcelable-configuration-builder/index.md).() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): [Parcelable](-parcelable/index.md)
Creates a custom [Parcelable](-parcelable/index.md) implementation using the provided [from](-parcelable/index.md) as a base for the configuration and the provided [builderAction](-parcelable.md) function to override those configuration values. | -| [putExtra](put-extra.md) | [android]
inline fun <[T](put-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), parceler: [AndroidParceler](-android-parceler/index.md))
inline fun <[T](put-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default)
fun <[T](put-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default, serializer: SerializationStrategy<[T](put-extra.md)>) | -| [putParcelable](put-parcelable.md) | [android]
inline fun <[T](put-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), parceler: [AndroidParceler](-android-parceler/index.md))
inline fun <[T](put-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default)
fun <[T](put-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default, serializer: SerializationStrategy<[T](put-parcelable.md)>) | -| [writeToParcel](write-to-parcel.md) | [android]
inline fun <[T](write-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [AndroidParceler](-android-parceler/index.md).[writeToParcel](write-to-parcel.md)(value: [T](write-to-parcel.md), dest: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
A reified convenience function for [AndroidParceler.writeToParcel](-android-parceler/write-to-parcel.md). | +| [decodeFromBundle](decode-from-bundle.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md)
Retrieves a value of [T](decode-from-bundle.md) from the deserializer obtained from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [bundle](decode-from-bundle.md) and [flags](decode-from-bundle.md), or null if the [bundle](decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](decode-from-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md)
Retrieves a value of [T](decode-from-bundle.md) of [kClass](decode-from-bundle.md) from the provided [bundle](decode-from-bundle.md) and [flags](decode-from-bundle.md), or null if the [bundle](decode-from-bundle.md) is empty or
[android]
@ExperimentalSerializationApi
fun <[T](decode-from-bundle.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundle](decode-from-bundle.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), deserializer: DeserializationStrategy<[T](decode-from-bundle.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle.md)
Retrieves a value of [T](decode-from-bundle.md) of [deserializer](decode-from-bundle.md) from the provided [bundle](decode-from-bundle.md) and [flags](decode-from-bundle.md), or null if the [bundle](decode-from-bundle.md) is empty or | +| [decodeFromBundleOrNull](decode-from-bundle-or-null.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle-or-null.md)?
@ExperimentalSerializationApi
fun <[T](decode-from-bundle-or-null.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromBundleOrNull](decode-from-bundle-or-null.md)(bundle: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-bundle-or-null.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0): [T](decode-from-bundle-or-null.md)? | +| [decodeFromIntent](decode-from-intent.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](decode-from-intent.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromIntent](decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](decode-from-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromIntent](decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](decode-from-intent.md)?
@ExperimentalSerializationApi
fun <[T](decode-from-intent.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromIntent](decode-from-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](decode-from-intent.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [T](decode-from-intent.md)? | +| [decodeFromParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/decode-from-parcel.md) | [common]
@ExperimentalSerializationApi
inline fun <[T](decode-from-parcel.md)> [Parcelable](-parcelable/index.md).[decodeFromParcel](decode-from-parcel.md)(parcel: [Parcel](-parcel/index.md)): [T](decode-from-parcel.md)
Decodes the value of [T](decode-from-parcel.md) from the provided [parcel](decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md).
[android]
@ExperimentalSerializationApi
fun <[T]([android]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[decodeFromParcel]([android]decode-from-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([android]decode-from-parcel.md)>): [T]([android]decode-from-parcel.md)
Decodes the value of [T]([android]decode-from-parcel.md) from the provided [parcel]([android]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass]([android]decode-from-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T]([jvm]decode-from-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F1959883941).[decodeFromParcel]([jvm]decode-from-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([jvm]decode-from-parcel.md)>): [T]([jvm]decode-from-parcel.md)
Decodes the value of [T]([jvm]decode-from-parcel.md) from the provided [parcel]([jvm]decode-from-parcel.md). This is a convenience function to [Parcelable.decodeFromParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/decode-from-parcel.md) that retrieves the deserializer from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) from the provided [kClass]([jvm]decode-from-parcel.md). | +| [encodeToBundle](encode-to-bundle.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](encode-to-bundle.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](encode-to-bundle.md) of serializer obtained from this [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](encode-to-bundle.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), serializer: SerializationStrategy<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](encode-to-bundle.md) of [serializer](encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s.
[android]
@ExperimentalSerializationApi
fun <[T](encode-to-bundle.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToBundle](encode-to-bundle.md)(value: [T](encode-to-bundle.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](encode-to-bundle.md)>): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)
Writes the provided [value](encode-to-bundle.md) of [kClass](encode-to-bundle.md) into a [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) and returns it. The returned [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) can then be used as extras in [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)s or other [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)s. | +| [encodeToIntent](encode-to-intent.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](encode-to-intent.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToIntent](encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](encode-to-intent.md), intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](encode-to-intent.md)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToIntent](encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](encode-to-intent.md), serializer: SerializationStrategy<[T](encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](encode-to-intent.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToIntent](encode-to-intent.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](encode-to-intent.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](encode-to-intent.md)>, intent: [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) | +| [encodeToParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/encode-to-parcel.md) | [common]
@ExperimentalSerializationApi
inline fun <[T](encode-to-parcel.md)> [Parcelable](-parcelable/index.md).[encodeToParcel](encode-to-parcel.md)(parcel: [Parcel](-parcel/index.md) = Parcel(), value: [T](encode-to-parcel.md)): [Parcel](-parcel/index.md)
Encodes the provided [value](encode-to-parcel.md) to the provided [parcel](encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](-parcelable/serializers-module.md).
[android]
@ExperimentalSerializationApi
fun <[T]([android]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831).[encodeToParcel]([android]encode-to-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([android]encode-to-parcel.md)>, value: [T]([android]encode-to-parcel.md)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Encodes the provided [value]([android]encode-to-parcel.md) to the provided [parcel]([android]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass]([android]encode-to-parcel.md).
[jvm]
@ExperimentalSerializationApi
fun <[T]([jvm]encode-to-parcel.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F1959883941).[encodeToParcel]([jvm]encode-to-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) = Parcel(), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T]([jvm]encode-to-parcel.md)>, value: [T]([jvm]encode-to-parcel.md)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Encodes the provided [value]([jvm]encode-to-parcel.md) to the provided [parcel]([jvm]encode-to-parcel.md) using the provided serializer. This is a convenience function to [Parcelable.encodeToParcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/encode-to-parcel.md) that retrieves the serializer from the [Parcelable.serializersModule](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcelable/serializers-module.md) using the provided [kClass]([jvm]encode-to-parcel.md). | +| [getParcelable](get-parcelable.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](get-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [T](get-parcelable.md)?
@ExperimentalSerializationApi
fun <[T](get-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](get-parcelable.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [T](get-parcelable.md)?
@ExperimentalSerializationApi
fun <[T](get-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[getParcelable](get-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](get-parcelable.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [T](get-parcelable.md)? | +| [getParcelableExtra](get-parcelable-extra.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [T](get-parcelable-extra.md)?
@ExperimentalSerializationApi
fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](get-parcelable-extra.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [T](get-parcelable-extra.md)?
@ExperimentalSerializationApi
fun <[T](get-parcelable-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[getParcelableExtra](get-parcelable-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), deserializer: DeserializationStrategy<[T](get-parcelable-extra.md)>, flags: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [T](get-parcelable-extra.md)? | +| [Parcel](-parcel.md) | [common]
expect fun [Parcel](-parcel.md)(): [Parcel](-parcel/index.md)
Creates an empty [Parcel](-parcel/index.md) instance.
[android, ios, js, jvm]
[android, ios, js, jvm]
actual fun [Parcel](-parcel.md)(): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
[android, ios, js, jvm]
actual fun [Parcel](-parcel.md)(data: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
[android]
inline fun [Parcel](-parcel.md)(androidParcel: [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html)): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Creates a [com.chrynan.parcelable.core.Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) instance from the provided [android.os.Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html) class.
[common]
expect fun [Parcel](-parcel.md)(data: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)): [Parcel](-parcel/index.md)
Creates a [Parcel](-parcel/index.md) instance containing the provided [data](-parcel.md). | +| [Parcelable](-parcelable.md) | [common]
@ExperimentalSerializationApi
fun [Parcelable](-parcelable.md)(from: [Parcelable](-parcelable/index.md) = Parcelable.Default, builderAction: [ParcelableConfigurationBuilder](-parcelable-configuration-builder/index.md).() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): [Parcelable.Custom](-parcelable/-custom/index.md)
Creates a custom [Parcelable](-parcelable/index.md) implementation using the provided [from](-parcelable/index.md) as a base for the configuration and the provided [builderAction](-parcelable.md) function to override those configuration values. | +| [putExtra](put-extra.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](put-extra.md)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](put-extra.md)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), serializer: SerializationStrategy<[T](put-extra.md)>, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html)
@ExperimentalSerializationApi
fun <[T](put-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](put-extra.md)>, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) | +| [putParcelable](put-parcelable.md) | [android]
@ExperimentalSerializationApi
inline fun <[T](put-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default)
@ExperimentalSerializationApi
fun <[T](put-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), serializer: SerializationStrategy<[T](put-parcelable.md)>, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default)
@ExperimentalSerializationApi
fun <[T](put-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](put-parcelable.md)>, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default) | +| [readFromParcel](read-from-parcel.md) | [android]
fun [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[readFromParcel](read-from-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md))
Reads the Parcel contents into this Bundle, typically in order for it to be passed through an IBinder connection. Params: parcel – The parcel to overwrite this bundle from. | +| [resetDataPosition](reset-data-position.md) | [common]
inline fun [Parcel](-parcel/index.md).[resetDataPosition](reset-data-position.md)()
A convenience function for calling the [Parcel.setDataPosition](-parcel/set-data-position.md) with an index value of zero. | +| [toParcel](to-parcel.md) | [android]
inline fun [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html).[toParcel](to-parcel.md)(): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)
Creates a [com.chrynan.parcelable.core.Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) instance from this [android.os.Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html) class. | diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-extra.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-extra.md index 259a90c..3c1741e 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-extra.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-extra.md @@ -3,8 +3,15 @@ # putExtra [android]\ -inline fun <[T](put-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), parceler: [AndroidParceler](-android-parceler/index.md)) -inline fun <[T](put-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default) +@ExperimentalSerializationApi -fun <[T](put-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default, serializer: SerializationStrategy<[T](put-extra.md)>) +fun <[T](put-extra.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](put-extra.md)>, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) + +@ExperimentalSerializationApi + +fun <[T](put-extra.md)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), serializer: SerializationStrategy<[T](put-extra.md)>, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) + +@ExperimentalSerializationApi + +inline fun <[T](put-extra.md)> [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html).[putExtra](put-extra.md)(name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-extra.md), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default): [Intent](https://developer.android.com/reference/kotlin/android/content/Intent.html) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-parcelable.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-parcelable.md index 551dbcc..ef440ff 100644 --- a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-parcelable.md +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/put-parcelable.md @@ -3,8 +3,15 @@ # putParcelable [android]\ -inline fun <[T](put-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), parceler: [AndroidParceler](-android-parceler/index.md)) -inline fun <[T](put-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default) +@ExperimentalSerializationApi -fun <[T](put-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default, serializer: SerializationStrategy<[T](put-parcelable.md)>) +fun <[T](put-parcelable.md) : [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), kClass: [KClass](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-class/index.html)<[T](put-parcelable.md)>, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default) + +@ExperimentalSerializationApi + +fun <[T](put-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), serializer: SerializationStrategy<[T](put-parcelable.md)>, parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default) + +@ExperimentalSerializationApi + +inline fun <[T](put-parcelable.md)> [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[putParcelable](put-parcelable.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), value: [T](put-parcelable.md), parcelable: [Parcelable](-parcelable/index.md#1131268509%2FExtensions%2F-1462739831) = Parcelable.Default) diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/read-from-parcel.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/read-from-parcel.md new file mode 100644 index 0000000..894afc4 --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/read-from-parcel.md @@ -0,0 +1,8 @@ +//[parcelable-core](../../index.md)/[com.chrynan.parcelable.core](index.md)/[readFromParcel](read-from-parcel.md) + +# readFromParcel + +[android]\ +fun [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html).[readFromParcel](read-from-parcel.md)(parcel: [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md)) + +Reads the Parcel contents into this Bundle, typically in order for it to be passed through an IBinder connection. Params: parcel – The parcel to overwrite this bundle from. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/reset-data-position.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/reset-data-position.md new file mode 100644 index 0000000..d4aee11 --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/reset-data-position.md @@ -0,0 +1,8 @@ +//[parcelable-core](../../index.md)/[com.chrynan.parcelable.core](index.md)/[resetDataPosition](reset-data-position.md) + +# resetDataPosition + +[common]\ +inline fun [Parcel](-parcel/index.md).[resetDataPosition](reset-data-position.md)() + +A convenience function for calling the [Parcel.setDataPosition](-parcel/set-data-position.md) with an index value of zero. diff --git a/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/to-parcel.md b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/to-parcel.md new file mode 100644 index 0000000..4ff9719 --- /dev/null +++ b/docs/parcelable-core/parcelable-core/com.chrynan.parcelable.core/to-parcel.md @@ -0,0 +1,8 @@ +//[parcelable-core](../../index.md)/[com.chrynan.parcelable.core](index.md)/[toParcel](to-parcel.md) + +# toParcel + +[android]\ +inline fun [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html).[toParcel](to-parcel.md)(): [Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) + +Creates a [com.chrynan.parcelable.core.Parcel](../../../parcelable-core/parcelable-core/com.chrynan.parcelable.core/-parcel/index.md) instance from this [android.os.Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html) class.