Share via


LargeBuffer Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Allows you to create a byte array that is larger than the size that is allowed by the managed heap, and enables transferring large data items to and from native code.

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.SPOT.Hardware..::..LargeBuffer

Namespace:  Microsoft.SPOT.Hardware
Assembly:  Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)

Syntax

'Declaration
Public Class LargeBuffer _
    Implements IDisposable
public class LargeBuffer : IDisposable
public ref class LargeBuffer : IDisposable
type LargeBuffer =  
    class
        interface IDisposable
    end
public class LargeBuffer implements IDisposable

The LargeBuffer type exposes the following members.

Constructors

  Name Description
Public method LargeBuffer Initializes a new instance of the LargeBuffer class with the specified size for the byte array buffer.

Top

Properties

  Name Description
Public property Bytes Gets the byte[] value that is associated with this LargeBuffer object.

Top

Methods

  Name Description
Public method Dispose Disposes the LargeBuffer object and frees the internal buffer that is associated with it.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Performs cleanup operations. (Overrides Object. . :: . .Finalize() () () ().)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

The LargeBuffer item is allocated in a secondary heap. The secondary heap must be supported by the device. This class can be used in conjunction with the LargeBufferMarshaller class to transfer large data items to and from native code.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SPOT.Hardware Namespace