Skip to content

T_CodeJam_HGlobalScope_1

Andrew Koryavchenko edited this page Jun 17, 2018 · 3 revisions

HGlobalScope(T) Class

Wraps Mashal.AllocHGlobal and Marshal.FreeHGlobal using generic.

Inheritance Hierarchy

System.Object
  System.Runtime.ConstrainedExecution.CriticalFinalizerObject
    CodeJam.HGlobalScope
      CodeJam.HGlobalScope(T)
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

[SecurityCriticalAttribute]
public class HGlobalScope<T> : HGlobalScope
where T : struct, new()

VB

<SecurityCriticalAttribute>
Public Class HGlobalScope(Of T As {Structure, New})
	Inherits HGlobalScope

F#

[<SecurityCriticalAttribute>]
type HGlobalScope<'T when 'T : struct, new()> =  
    class
        inherit HGlobalScope
    end

Type Parameters

 

T
[Missing documentation for "T:CodeJam.HGlobalScope`1"]
  The HGlobalScope(T) type exposes the following members.

Constructors

 

Name Description
Public method HGlobalScope(T)() Default constructor, allocates memory with the size of T
Public method HGlobalScope(T)(Int32) Allocates memory from the unmanaged memory of the process by using the specified number of bytes.
  Back to Top

Properties

 

Name Description
Public property Data Pointer to data. (Inherited from HGlobalScope.)
Public property Length Length (Inherited from HGlobalScope.)
Public property Value Value
  Back to Top

Methods

 

Name Description
Public method Dispose Dispose method to free all resources. (Inherited from HGlobalScope.)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Finalizer. (Inherited from HGlobalScope.)
Public method GetHashCode Serves as the default hash function. (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.)
  Back to Top

See Also

Reference

CodeJam Namespace

Clone this wiki locally