private void FreeCharBuffers() { CharCapacity = 0; if (CharLogicalClusters != null) { Memory.Free(CharLogicalClusters); CharLogicalClusters = null; } if (CharLogicalAttributes != null) { Memory.Free(CharLogicalAttributes); CharLogicalAttributes = null; } }
private void AllocCharBuffers() { CharLogicalClusters = (ushort *)Memory.Alloc(CharCapacity * sizeof(ushort)); CharLogicalAttributes = (SCRIPT_LOGATTR *)Memory.Alloc(CharCapacity * sizeof(SCRIPT_LOGATTR)); }
private void InitializeCharBuffers() { CharCapacity = 0; CharLogicalClusters = null; CharLogicalAttributes = null; }
public static extern int ScriptBreak( [In] char *pwcChars, [In] int cChars, [In] SCRIPT_ANALYSIS *psa, [Out] SCRIPT_LOGATTR *psla);
private void AllocCharBuffers() { CharLogicalClusters = (ushort*)Memory.Alloc(CharCapacity * sizeof(ushort)); CharLogicalAttributes = (SCRIPT_LOGATTR*)Memory.Alloc(CharCapacity * sizeof(SCRIPT_LOGATTR)); }