Пример #1
0
        /// <summary>
        ///     PSVM
        /// </summary>
        public static void Main()
        {
            // General Byte Array Operations
            ByteArrayCreationAndPopulation.CreateByteArrayExample();

            ByteArrayMutation.TrimBigEndianLeadingZeroBytesExample();
            ByteArrayMutation.TrimLittleEndianLeadingZeroBytesExample();

            ByteArrayMutation.PadBigEndianMostSignificantBytesExample();
            ByteArrayMutation.PadBigEndianMostSignificantBytesShortExample();

            ByteArrayMutation.PadLittleEndianMostSignificantBytesExample();
            ByteArrayMutation.PadLittleEndianMostSignificantBytesShortExample();

            ByteArrayMutation.AppendBytesExample();
            ByteArrayMutation.AppendBytesElementExample();

            ByteArrayMutation.AppendShortestExample();

            ByteArrayMutation.PrependBytesExample();
            ByteArrayMutation.PrependBytesElementExample();

            ByteArrayMutation.PrependShortestExample();

            ByteArrayMutation.ReverseBytesExample();

            Stringification.StringificationExample();

            Miscellaneous.BigEndianEffectiveLengthExample();
            Miscellaneous.LittleEndianEffectiveLengthExample();

            // Bitwise Byte Array Operations
            Addressing.AddressBitExample();

            BooleanOperations.BitwiseNotExample();

            BooleanOperations.BitwiseAndBigEndianExample();
            BooleanOperations.BitwiseAndLittleEndianExample();

            BooleanOperations.BitwiseOrBigEndianExample();
            BooleanOperations.BitwiseOrLittleEndianExample();

            BooleanOperations.BitwiseXorBigEndianExample();
            BooleanOperations.BitwiseXorLittleEndianExample();

            Bitshifting.ShiftBitsRightExample();
            Bitshifting.ShiftBitsRightCarryExample();

            Bitshifting.ShiftBitsLeftExample();
            Bitshifting.ShiftBitsLeftCarryExample();

            // Unsigned Mathematical Operations
            Addition.AddUnsignedBigEndianExample();
            Addition.AddUnsignedLittleEndianExample();

            Addition.TrySumBigEndianExample();
            Addition.TrySumBigEndianSubtractionExample();
            Addition.TrySumLittleEndianExample();
            Addition.TrySumLittleEndianSubtractionExample();

            Subtraction.SubtractUnsignedBigEndianExample();
            Subtraction.SubtractUnsignedLittleEndianExample();

            Comparison.CompareUnsignedBigEndianExample();
            Comparison.CompareUnsignedLittleEndianExample();
        }