Table of Contents

Class SharedMemory

Namespace
Android.Os
Assembly
MASES.Netdroid.dll
public class SharedMemory : JVMBridgeBase<SharedMemory>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, ICloseable, IAutoCloseable, IParcelable
Inheritance
SharedMemory
Implements
Extension Methods

Constructors

SharedMemory(IJVMBridgeBaseInitializer)

Initializer used internally by JCOBridge. Do not use directly.

[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public SharedMemory(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

CREATOR

public static Parcelable.Creator CREATOR { get; set; }

Property Value

Parcelable.Creator

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements java.lang.AutoCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

Close()

public void Close()

Create(String, int)

public static SharedMemory Create(String arg0, int arg1)

Parameters

arg0 String

String

arg1 int

int

Returns

SharedMemory

SharedMemory

Exceptions

ErrnoException

DescribeContents()

public int DescribeContents()

Returns

int

int

FromFileDescriptor(ParcelFileDescriptor)

public static SharedMemory FromFileDescriptor(ParcelFileDescriptor arg0)

Parameters

arg0 ParcelFileDescriptor

ParcelFileDescriptor

Returns

SharedMemory

SharedMemory

GetSize()

public int GetSize()

Returns

int

int

Map(int, int, int)

public ByteBuffer Map(int arg0, int arg1, int arg2)

Parameters

arg0 int

int

arg1 int

int

arg2 int

int

Returns

ByteBuffer

ByteBuffer

Exceptions

ErrnoException

MapReadOnly()

public ByteBuffer MapReadOnly()

Returns

ByteBuffer

ByteBuffer

Exceptions

ErrnoException

MapReadWrite()

public ByteBuffer MapReadWrite()

Returns

ByteBuffer

ByteBuffer

Exceptions

ErrnoException

SetProtect(int)

public bool SetProtect(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

Unmap(ByteBuffer)

public static void Unmap(ByteBuffer arg0)

Parameters

arg0 ByteBuffer

ByteBuffer

WriteToParcel(Parcel, int)

public void WriteToParcel(Parcel arg0, int arg1)

Parameters

arg0 Parcel

Parcel

arg1 int

int

Operators

implicit operator Parcelable(SharedMemory)

Converter from SharedMemory to Parcelable

public static implicit operator Parcelable(SharedMemory t)

Parameters

t SharedMemory

Returns

Parcelable

implicit operator Closeable(SharedMemory)

Converter from SharedMemory to Closeable

public static implicit operator Closeable(SharedMemory t)

Parameters

t SharedMemory

Returns

Closeable