Sdílet prostřednictvím


MediaCodec.LinearBlock.Map Method

Definition

Map the memory and return the mapped region.

[Android.Runtime.Register("map", "()Ljava/nio/ByteBuffer;", "", ApiSince=30)]
public Java.Nio.ByteBuffer Map ();
[<Android.Runtime.Register("map", "()Ljava/nio/ByteBuffer;", "", ApiSince=30)>]
member this.Map : unit -> Java.Nio.ByteBuffer

Returns

mapped memory region as ByteBuffer object

Attributes

Remarks

Map the memory and return the mapped region.

The returned memory region becomes inaccessible after #recycle, or the buffer is queued to the codecs and not returned to the client yet.

Java documentation for android.media.MediaCodec.LinearBlock.map().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to