UNPKG

@iotize/ionic

Version:

Iotize specific building blocks on top of @ionic/angular.

20 lines (19 loc) 769 B
import { PipeTransform } from '@angular/core'; import * as i0 from "@angular/core"; /** * Pipe to extract a bit value or a bit range from a number. * Returns 0 when parameters are not valid * * For example: * * ``` * expect(pipe.transform(0b0101, '2')).toEqual(1, 'transform with parameter 2 should returns value of bit at position 2'); * // Extracting bits n° 1 and n°2 (index starts at 0) * expect(pipe.transform(0b0101, '1-2')).toEqual(0b10); * ```` */ export declare class ExtractBitsPipe implements PipeTransform { transform(value: number, format?: string | number): number; static ɵfac: i0.ɵɵFactoryDeclaration<ExtractBitsPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<ExtractBitsPipe, "extractBits", false>; }