Beispiel #1
0
        private static VehicleInformation ReadVehicleInformation(UnmanagedMemoryAccessor memoryAccessor)
        {
            var carName      = memoryAccessor.ReadString(VehicleInformationPosition, StringLengthMax);
            var carClassName = memoryAccessor.ReadString(VehicleInformationPosition + StringLengthMax, StringLengthMax);

            return(new VehicleInformation {
                CarName = carName, CarClassName = carClassName
            });
        }