Пример #1
0
        private void FreeCharBuffers()
        {
            CharCapacity = 0;

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

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

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

            if (CharLogicalAttributes != null)
            {
                Memory.Free(CharLogicalAttributes);
                CharLogicalAttributes = null;
            }
        }
Пример #6
0
 private void AllocCharBuffers()
 {
     CharLogicalClusters = (ushort*)Memory.Alloc(CharCapacity * sizeof(ushort));
     CharLogicalAttributes = (SCRIPT_LOGATTR*)Memory.Alloc(CharCapacity * sizeof(SCRIPT_LOGATTR));
 }
Пример #7
0
 private void InitializeCharBuffers()
 {
     CharCapacity = 0;
     CharLogicalClusters = null;
     CharLogicalAttributes = null;
 }