Click or drag to resize
SbNativeArrayT Class
Provides access to unmanaged array from managed code.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    System.IOStream
      OIV.Inventor.GenericSbNativeArrayT

Namespace: OIV.Inventor.Generic
Assembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.2.1.Release.a9a2496f7968740d854af6689efcdf726f23261d
Syntax
public class SbNativeArray<T> : Stream
where T : struct, new()

Type Parameters

T
Element type of array. Only value type (structure) are acceptable types.

The SbNativeArrayT type exposes the following members.

Constructors
  NameDescription
Public methodSbNativeArrayT(IntPtr)
Initializes a new instance from an unmanaged memory.
Public methodSbNativeArrayT(T)
Initializes a new instance. This constructor allows to share a managed array with unmanaged code.
Public methodSbNativeArrayT(IntPtr, Int64)
Initializes a new instance from an unmanaged memory.
Public methodSbNativeArrayT(T, Boolean)
Initializes a new instance. This constructor allows to share a managed array with unmanaged code.
Public methodSbNativeArrayT(IntPtr, Int64, Int64)
Initializes a new instance from an unmanaged memory.
Public methodSbNativeArrayT(IntPtr, Int64, Int64, Boolean)
Initializes a new instance from an unmanaged memory.
Public methodSbNativeArrayT(T, Int32, Boolean, Boolean)
Initializes a new instance. This constructor allows to share a managed array with unmanaged code.
Top
Methods
  NameDescription
Public methodBeginRead
Begins an asynchronous read operation.
(Inherited from Stream.)
Public methodBeginWrite
Begins an asynchronous write operation.
(Inherited from Stream.)
Public methodClose
Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.
(Inherited from Stream.)
Public methodStatic memberCopy(SbNativeArrayT, SbNativeArrayT, Int32)
Copy elements from source to destination array. Positions remain unchanged in source and destination object.
Public methodStatic memberCopy(SbNativeArrayT, Int32, SbNativeArrayT, Int32, Int32)
Copy count elements from source (starting at sourceIndex) to destination (starting at destinationIndex).
Public methodCopyTo(Stream)
Reads the bytes from the current stream and writes them to the destination stream.
(Inherited from Stream.)
Public methodCopyTo(Stream, Int32)
Reads all the bytes from the current stream and writes them to a destination stream, using a specified buffer size.
(Inherited from Stream.)
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose
Releases all resources used by the Stream.
(Inherited from Stream.)
Public methodEndRead
Waits for the pending asynchronous read to complete.
(Inherited from Stream.)
Public methodEndWrite
Ends an asynchronous write operation.
(Inherited from Stream.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFlush
Overrides the Flush method so that no action is performed.
(Overrides StreamFlush.)
Public methodGetBuffer
Returns the array of elements of type T from which this stream was created.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodRead
Read one element from current stream position and advances the position within the stream by 1.
Public methodRead(NullableT)
Read one element from current stream position and advances the position within the stream by 1.
Public methodRead(Byte, Int32, Int32)
Reads the specified number of bytes into the specified array and advances the position within the stream by the number of bytes read.
(Overrides StreamRead(Byte, Int32, Int32).)
Public methodReadBlock
Copies element from the current stream to an array and advances the position within the stream by the number of elements read.
Public methodReadByte
Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.
(Inherited from Stream.)
Public methodSeek
Sets the current position of the current stream to the given value.
(Overrides StreamSeek(Int64, SeekOrigin).)
Public methodSetLength
Sets the current position of the current stream to the given value.
(Overrides StreamSetLength(Int64).)
Public methodToArray
Copy elements in this instance to an array of type T.
Public methodToArray(Int32, Int32)
Copy elements in this instance to an array of type element type.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWrite(T)
Copy an element to current stream position and advances the current position within this stream by 1.
Public methodWrite(SbNativeArrayT)
Copy elements from the source array. Use the current Position as start position.
Public methodWrite(Byte, Int32, Int32)
Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
(Overrides StreamWrite(Byte, Int32, Int32).)
Public methodWrite(SbNativeArrayT, Int32, Int32)
Copy elements from the source array. Use the current Position as start position.
Public methodWriteBlock(T)
Writes a sequence of elements to the current stream and advances the current position within this stream by the number of elements written.
Public methodWriteBlock(T, Int32, Int32)
Writes a sequence of elements to the current stream and advances the current position within this stream by the number of elements written.
Public methodWriteByte
Writes a byte to the current position in the stream and advances the position within the stream by one byte.
(Inherited from Stream.)
Top
Operators
  NameDescription
Public operatorStatic member(SbNativeArrayT to T)
Explicit cast operator to convert a native array of T to an array of boolean.
Public operatorStatic member(SbNativeArrayT to SbNativeArrayBoolean)
Explicit cast operator to convert an native array of T to a native array of boolean.
Public operatorStatic member(SbNativeArrayT to SbNativeArrayByte)
Explicit cast operator to convert an native array of T to a native array of byte.
Public operatorStatic member(SbNativeArrayT to SbNativeArrayChar)
Explicit cast operator to convert an native array of T to a native array of char.
Public operatorStatic member(SbNativeArrayT to SbNativeArrayDouble)
Explicit cast operator to convert an native array of T to a native array of double.
Public operatorStatic member(SbNativeArrayT to SbNativeArrayInt16)
Explicit cast operator to convert an native array of T to a native array of short.
Public operatorStatic member(SbNativeArrayT to SbNativeArrayInt32)
Explicit cast operator to convert an native array of T to a native array of integer.
Public operatorStatic member(SbNativeArrayT to SbNativeArrayInt64)
Explicit cast operator to convert an native array of T to a native array of long.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySByte)
Explicit cast operator to convert an native array of T to a native array of signed byte.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySingle)
Explicit cast operator to convert an native array of T to a native array of float.
Public operatorStatic member(SbNativeArrayT to SbNativeArrayUInt16)
Explicit cast operator to convert an native array of T to a native array of unsigned short.
Public operatorStatic member(SbNativeArrayT to SbNativeArrayUInt32)
Explicit cast operator to convert an native array of T to a native array of unsigned integer.
Public operatorStatic member(SbNativeArrayT to SbNativeArrayUInt64)
Explicit cast operator to convert an native array of T to a native array of unsigned long.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbVec2f)
Explicit cast operator to convert an native array of T to a native array of SbVec2f.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbVec2d)
Explicit cast operator to convert an native array of T to a native array of SbVec2d.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbVec2s)
Explicit cast operator to convert an native array of T to a native array of SbVec2s.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbVec2i32)
Explicit cast operator to convert an native array of T to a native array of SbVec2i32.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbVec3f)
Explicit cast operator to convert an native array of T to a native array of SbVec3f.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbVec3d)
Explicit cast operator to convert an native array of T to a native array of SbVec3d.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbVec3s)
Explicit cast operator to convert an native array of T to a native array of SbVec3s.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbVec3i32)
Explicit cast operator to convert an native array of T to a native array of SbVec3i32.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbVec4b)
Explicit cast operator to convert an native array of T to a native array of SbVec4b.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbVec4d)
Explicit cast operator to convert an native array of T to a native array of SbVec4d.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbVec4f)
Explicit cast operator to convert an native array of T to a native array of SbVec4f.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbVec4i32)
Explicit cast operator to convert an native array of T to a native array of SbVec4i32.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbVec4s)
Explicit cast operator to convert an native array of T to a native array of SbVec4s.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbVec4ub)
Explicit cast operator to convert an native array of T to a native array of SbVec4ub.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbVec4ui32)
Explicit cast operator to convert an native array of T to a native array of SbVec4ui32.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbVec4us)
Explicit cast operator to convert an native array of T to a native array of SbVec4us.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbColor)
Explicit cast operator to convert an native array of T to a native array of SbColor.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbColorRGBA)
Explicit cast operator to convert an native array of T to a native array of SbColorRGBA.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbPlane)
Explicit cast operator to convert an native array of T to a native array of SbPlane.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbTime)
Explicit cast operator to convert an native array of T to a native array of SbTime.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbRotation)
Explicit cast operator to convert an native array of T to a native array of SbRotation.
Public operatorStatic member(SbNativeArrayT to SbNativeArraySbMatrix)
Explicit cast operator to convert an native array of T to a native array of SbMatrix.
Top
Properties
  NameDescription
Public propertyCanGetBuffer
Gets a flag indicating if it is legacy to call GetBuffer method.
Public propertyCanRead
Gets a value indicating whether the current stream supports reading.
(Overrides StreamCanRead.)
Public propertyCanSeek
Gets a value indicating whether the current stream supports seeking.
(Overrides StreamCanSeek.)
Public propertyCanTimeout
Gets a value that determines whether the current stream can time out.
(Inherited from Stream.)
Public propertyCanWrite
Gets a value indicating whether the current stream supports writing.
(Overrides StreamCanWrite.)
Public propertyCapacity
Capacity of the buffer.
Public propertyDataPointer
Pointer to the underlying native array.
Public propertyHasManagedBuffer
Convenient property to test if the instance wraps a managed buffer.
Public propertyInt32Capacity
Capacity of the buffer.
Public propertyInt32Length
Gets a 32-bit integer that represents the total number of elements of the SbNativeArrayT.
Public propertyItem
Gets or sets the element at the specified index.
Public propertyLength
Gets a 64-bit integer that represents the total number of elements of the SbNativeArrayT.
(Overrides StreamLength.)
Public propertyPosition
Gets or sets the current position within the stream.
(Overrides StreamPosition.)
Public propertyReadTimeout
Gets or sets a value, in miliseconds, that determines how long the stream will attempt to read before timing out.
(Inherited from Stream.)
Public propertyWriteTimeout
Gets or sets a value, in miliseconds, that determines how long the stream will attempt to write before timing out.
(Inherited from Stream.)
Top
See Also