132 references to Native
PresentationCore (132)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (1)
203bitCount = Native.BitsPerInt;//32
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (5)
639int count = (int)(memStream.Length - 2) / Native.BitsPerByte; // size of one element 647int count = (int)(memStream.Length - 2) / Native.BitsPerByte; // size of one element 663int count = (int)(memStream.Length - 2) / Native.BitsPerByte; // size of one element 671int count = (int)(memStream.Length - 2) / Native.BitsPerByte; // size of one element 689int count = (int)((memStream.Length - 2) / Native.SizeOfDecimal); // size of one element
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (5)
287Color color = Color.FromRgb((byte)(dw & 0xff), (byte)((dw & 0xff00) >> Native.BitsPerByte), (byte)((dw & 0xff0000) >> (Native.BitsPerByte * 2))); 534uint colorVal = r + (g << Native.BitsPerByte) + (b << (Native.BitsPerByte * 2)); 717uint cb = Native.SizeOfUShort; // For header NO_COMPRESS
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (19)
238maxShort = Math.Max((ushort)shortReader.ReadUInt16Reverse(Native.BitsPerShort), maxShort); 239UpdateMinMax((int)intReader.ReadUInt32Reverse(Native.BitsPerInt), ref maxInt, ref minInt); 249maxShort = Math.Max((ushort)shortReader.ReadUInt16Reverse(Native.BitsPerShort), maxShort); 264while ((0 != (ulAbsMax >> bitCount)) && (bitCount < (uint)Native.BitsPerByte)) 277while ((0 != (ulAbsMax >> shortBitCount)) && (shortBitCount < (uint)Native.BitsPerShort)) 390bitCount = (int)(Native.SizeOfInt << 3); 449bitCount = Native.BitsPerInt; 454bitCount = Native.BitsPerShort; 459bitCount = Native.BitsPerByte; 492return (int)reader.ReadUInt32Reverse(Native.BitsPerInt); 496return (int)reader.ReadUInt16Reverse(Native.BitsPerShort); 500return (int)reader.ReadByte(Native.BitsPerByte); 548bitCount = (int)(Native.SizeOfInt << 3); 642bitCount = Native.BitsPerInt; 644bitsToWrite = Native.BitsPerInt; 653bitCount = Native.BitsPerShort; 655bitsToWrite = Native.BitsPerShort; 664bitCount = Native.BitsPerByte; 666bitsToWrite = Native.BitsPerByte;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (6)
208uint ul = (uint)(_CustomGuids.Count * Native.SizeOfGuid); 234stream.Write(guid.ToByteArray(), 0, (int)Native.SizeOfGuid); 254uint count = size / Native.SizeOfGuid; 255byte[] guids = new byte[Native.SizeOfGuid]; 262uint bytesRead = StrokeCollectionSerializer.ReliableRead(strm, guids, Native.SizeOfGuid); 265if ( bytesRead == Native.SizeOfGuid )
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (8)
1318cbRead = xform.Size * Native.SizeOfDouble; 1322cbRead = xform.Size * Native.SizeOfFloat; 1559cbEntry += Native.SizeOfFloat; 2120uint cbStrokeId = (uint)(strokes.Count * Native.SizeOfInt + 1 + SerializationHelper.VarSize((uint)strokes.Count)); // 1 is for the compression header 2139cbWrote += Native.SizeOfInt; 2418cbLocal = xform.Size * Native.SizeOfFloat; 2495cbData += Native.SizeOfDouble; 2500cbData += Native.SizeOfFloat;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\ISFTagAndGuidCache.cs (35)
58Native.SizeOfInt, // X 0 59Native.SizeOfInt, // Y 1 60Native.SizeOfInt, // Z 2 61Native.SizeOfInt, // PACKET_STATUS 3 622 * Native.SizeOfUInt, // FILETIME : TIMER_TICK 4 63Native.SizeOfUInt, // SERIAL_NUMBER 5 64Native.SizeOfUShort, // NORMAL_PRESSURE 6 65Native.SizeOfUShort, // TANGENT_PRESSURE 7 66Native.SizeOfUShort, // BUTTON_PRESSURE 8 67Native.SizeOfFloat, // X_TILT_ORIENTATION 9 68Native.SizeOfFloat, // Y_TILT_ORIENTATION 10 69Native.SizeOfFloat, // AZIMUTH_ORIENTATION 11 70Native.SizeOfInt, // ALTITUDE_ORIENTATION 12 71Native.SizeOfInt, // TWIST_ORIENTATION 13 72Native.SizeOfUShort, // PITCH_ROTATION 14 73Native.SizeOfUShort, // ROLL_ROTATION 15 74Native.SizeOfUShort, // YAW_ROTATION 16 75Native.SizeOfUShort, // PEN_STYLE 17 76Native.SizeOfUInt, // COLORREF: COLORREF 18 77Native.SizeOfUInt, // PEN_WIDTH 19 78Native.SizeOfUInt, // PEN_HEIGHT 20 79Native.SizeOfByte, // PEN_TIP 21 80Native.SizeOfUInt, // DRAWING_FLAGS 22 81Native.SizeOfUInt, // CURSORID 23 845 * Native.SizeOfUInt, // INKMETRICS 26 853 * Native.SizeOfUInt, // GUIDE_STRUCTURE 27 868 * Native.SizeOfUShort, // SYSTEMTIME TIME_STAMP 28 87Native.SizeOfUShort, // LANGUAGE 29 88Native.SizeOfByte, // TRANSPARENCY 30 89Native.SizeOfUInt, // CURVE_FITTING_ERROR 31 91Native.SizeOfInt, // CURSORDOWN 33 92Native.SizeOfInt, // SECONDARYTIPSWITCH 34 93Native.SizeOfInt, // BARRELDOWN 35 94Native.SizeOfInt, // TABLETPICK 36 95Native.SizeOfInt, // ROP 37
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\LZCodec.cs (5)
67byte1 = reader.ReadByte(Native.BitsPerByte); 76byte1 = reader.ReadByte(Native.BitsPerByte); 82writer.Write(byte1, Native.BitsPerByte); 90byte2 = reader.ReadByte(Native.BitsPerByte); 99writer.Write(byte1, Native.BitsPerByte);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (14)
513int fullBytesForButtonsPerPacket = buttonCount / Native.BitsPerByte; 516int partialBitsForButtonsPerPacket = buttonCount % Native.BitsPerByte; 519localBytesRead = (uint)((buttonCount * pointCount + 7) / Native.BitsPerByte); 526int buttonSizeInBytes = (buttonCount + 7)/Native.BitsPerByte; 542buttonData[byteCounter++] = bitReader.ReadByte(Native.BitsPerByte); 607int nBtnDim = (buttonCount + 7) / Native.BitsPerByte; 610int pointCountOfFullIntegers = (int)(nBtnDim / Native.SizeOfInt); 613int pointCountOfPartialBytes = (int)(nBtnDim % Native.SizeOfInt); 622iBtnByte = (int)(iInt * Native.SizeOfInt); 628packets[iPacket] = ((int)((uint)((buttonData[iBtnByte] << (Native.BitsPerByte * 3)) | (buttonData[iBtnByte + 1] << (Native.BitsPerByte * 2)) | (buttonData[iBtnByte + 2] << Native.BitsPerByte) | (buttonData[iBtnByte + 3])))); 637iBtnByte = (int)(pointCountOfFullIntegers * Native.SizeOfInt); 649btn = (btn << Native.BitsPerByte) | (buttonData[iBtnByte + iPart]);
Shared\MS\Internal\Ink\BitStream.cs (34)
33_bufferLengthInBits = (uint)buffer.Length * (uint)Native.BitsPerByte; 51_bufferLengthInBits = (uint)(buffer.Length - startIndex) * (uint)Native.BitsPerByte; 63if (bufferLengthInBits > (buffer.Length * Native.BitsPerByte)) 77if (countOfBits > Native.BitsPerLong || countOfBits <= 0) 84int countToRead = (int)Native.BitsPerByte; 106if (countOfBits > Native.BitsPerShort || countOfBits <= 0) 114int countToRead = (int)Native.BitsPerByte; 134if (countOfBits > Native.BitsPerShort|| countOfBits <= 0) 143int countToRead = (int)Native.BitsPerByte; 150b <<= (fullBytesRead * Native.BitsPerByte); 164if (countOfBits > Native.BitsPerInt || countOfBits <= 0) 172int countToRead = (int)Native.BitsPerByte; 192if (countOfBits > Native.BitsPerInt || countOfBits <= 0) 201int countToRead = (int)Native.BitsPerByte; 208b <<= (fullBytesRead * Native.BitsPerByte); 243if (countOfBits > Native.BitsPerByte || countOfBits <= 0) 264int rightShiftPartialByteBy = Native.BitsPerByte - countOfBits; 284int rightShiftPartialByteBy = Native.BitsPerByte - countOfBits; 288int rightShiftNextByteBy = Math.Abs((countOfBits - _cbitsInPartialByte) - Native.BitsPerByte); 298_cbitsInPartialByte = Native.BitsPerByte - (countOfBits - _cbitsInPartialByte); 381if (countOfBits <= 0 || countOfBits > Native.BitsPerInt) 387int fullBytes = countOfBits / Native.BitsPerByte; 391int bitsToWrite = countOfBits % Native.BitsPerByte; 395byte byteOfData = (byte)(bits >> (fullBytes * Native.BitsPerByte)); 407bitsToWrite = Native.BitsPerByte; 420if (countOfBits <= 0 || countOfBits > Native.BitsPerInt) 425int fullBytes = countOfBits / Native.BitsPerByte; 429int bitsToWrite = countOfBits % Native.BitsPerByte; 436byte byteOfData = (byte)(bits >> (x * Native.BitsPerByte)); 437Write(byteOfData, Native.BitsPerByte); 449if (countOfBits <= 0 || countOfBits > Native.BitsPerByte) 463buffer |= (byte)((bits & (0xFF >> (Native.BitsPerByte - countOfBits))) >> (countOfBits - _remaining)); 468buffer |= (byte)((bits & (0xFF >> (Native.BitsPerByte - countOfBits))) << (_remaining - countOfBits)); 477_remaining = Native.BitsPerByte - (countOfBits - _remaining);