Esempio n. 1
0
        private void FreeCharBuffers()
        {
            CharCapacity = 0;

            if (CharLogicalClusters != null)
            {
                Memory.Free(CharLogicalClusters);
                CharLogicalClusters = null;
            }

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

            if (CharLogicalClusters != null)
            {
                Memory.Free(CharLogicalClusters);
                CharLogicalClusters = null;
            }

            if (CharLogicalAttributes != null)
            {
                Memory.Free(CharLogicalAttributes);
                CharLogicalAttributes = null;
            }
        }
Esempio n. 6
0
 private void AllocCharBuffers()
 {
     CharLogicalClusters = (ushort*)Memory.Alloc(CharCapacity * sizeof(ushort));
     CharLogicalAttributes = (SCRIPT_LOGATTR*)Memory.Alloc(CharCapacity * sizeof(SCRIPT_LOGATTR));
 }
Esempio n. 7
0
 private void InitializeCharBuffers()
 {
     CharCapacity = 0;
     CharLogicalClusters = null;
     CharLogicalAttributes = null;
 }