mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Mark Mapbuffer classes and interfaces as Stable (#41102)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41102 Mark Mapbuffer classes and interfaces as Stable bypass-github-export-checks changelog: [internal] internal Reviewed By: luluwu2032 Differential Revision: D50294829 fbshipit-source-id: be665eb84e62ca6a57c9747503468a0f320c1c67
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d7d4989bdb
commit
abe5d2d697
+3
@@ -7,6 +7,8 @@
|
||||
|
||||
package com.facebook.react.common.mapbuffer
|
||||
|
||||
import com.facebook.react.common.annotations.StableReactNativeAPI
|
||||
|
||||
/**
|
||||
* MapBuffer is an optimized sparse array format for transferring props-like data between C++ and
|
||||
* JNI. It is designed to:
|
||||
@@ -23,6 +25,7 @@ package com.facebook.react.common.mapbuffer
|
||||
* - O(log(N)) random key access for native buffers due to selected structure. Faster access can be
|
||||
* achieved by retrieving [MapBuffer.Entry] with [entryAt] on known offsets.
|
||||
*/
|
||||
@StableReactNativeAPI
|
||||
interface MapBuffer : Iterable<MapBuffer.Entry> {
|
||||
companion object {
|
||||
/**
|
||||
|
||||
+2
@@ -9,9 +9,11 @@ package com.facebook.react.common.mapbuffer
|
||||
|
||||
import com.facebook.react.bridge.ReactMarker
|
||||
import com.facebook.react.bridge.ReactMarkerConstants
|
||||
import com.facebook.react.common.annotations.StableReactNativeAPI
|
||||
import com.facebook.soloader.SoLoader
|
||||
import com.facebook.systrace.Systrace
|
||||
|
||||
@StableReactNativeAPI
|
||||
object MapBufferSoLoader {
|
||||
@Volatile private var didInit = false
|
||||
|
||||
|
||||
+2
@@ -9,6 +9,7 @@ package com.facebook.react.common.mapbuffer
|
||||
|
||||
import com.facebook.jni.HybridData
|
||||
import com.facebook.proguard.annotations.DoNotStrip
|
||||
import com.facebook.react.common.annotations.StableReactNativeAPI
|
||||
import com.facebook.react.common.mapbuffer.MapBuffer.Companion.KEY_RANGE
|
||||
import java.lang.StringBuilder
|
||||
import java.nio.ByteBuffer
|
||||
@@ -21,6 +22,7 @@ import javax.annotation.concurrent.NotThreadSafe
|
||||
*
|
||||
* See [MapBuffer] documentation for more details
|
||||
*/
|
||||
@StableReactNativeAPI
|
||||
@NotThreadSafe
|
||||
@DoNotStrip
|
||||
class ReadableMapBuffer : MapBuffer {
|
||||
|
||||
+2
@@ -9,6 +9,7 @@ package com.facebook.react.common.mapbuffer
|
||||
|
||||
import android.util.SparseArray
|
||||
import com.facebook.proguard.annotations.DoNotStrip
|
||||
import com.facebook.react.common.annotations.StableReactNativeAPI
|
||||
import com.facebook.react.common.mapbuffer.MapBuffer.Companion.KEY_RANGE
|
||||
import com.facebook.react.common.mapbuffer.MapBuffer.DataType
|
||||
import javax.annotation.concurrent.NotThreadSafe
|
||||
@@ -19,6 +20,7 @@ import javax.annotation.concurrent.NotThreadSafe
|
||||
*
|
||||
* See [MapBuffer] for more details
|
||||
*/
|
||||
@StableReactNativeAPI
|
||||
@NotThreadSafe
|
||||
@DoNotStrip
|
||||
class WritableMapBuffer : MapBuffer {
|
||||
|
||||
Reference in New Issue
Block a user