zigbee-herdsman-zigate
Version:
An open source ZigBee gateway solution with node.js.
48 lines • 1.7 kB
TypeScript
/// <reference types="node" />
import { Options, Value } from './tstype';
declare class Buffalo {
protected position: number;
protected buffer: Buffer;
constructor(buffer: Buffer, position?: number);
getPosition(): number;
getBuffer(): Buffer;
readEmpty(): Value;
writeEmpty(): void;
writeInt8(value: number): void;
readInt8(): Value;
writeUInt8(value: number): void;
readUInt8(): Value;
writeUInt16(value: number): void;
readUInt24(): Value;
writeUInt24(value: number): void;
readInt24(): Value;
writeInt24(value: number): void;
readUInt16(): Value;
writeInt16(value: number): void;
readInt16(): Value;
writeUInt32(value: number): void;
readUInt32(): Value;
writeInt32(value: number): void;
readInt32(): Value;
writeFloatLE(value: number): void;
readFloatLE(): Value;
writeDoubleLE(value: number): void;
readDoubleLE(): Value;
writeIeeeAddr(value: string): void;
readIeeeAddr(): Value;
private static addressBufferToString;
protected readBuffer(length: number): Value;
protected writeBuffer(values: Buffer | number[], length: number): void;
writeListUInt8(values: number[]): void;
readListUInt8(options: Options): Value;
writeListUInt16(values: number[]): void;
readListUInt16(options: Options): Value;
writeListUInt24(values: number[]): void;
readListUInt24(options: Options): Value;
writeListUInt32(values: number[]): void;
readListUInt32(options: Options): Value;
write(type: string, value: Value, options: Options): void;
read(type: string, options: Options): Value;
}
export default Buffalo;
//# sourceMappingURL=buffalo.d.ts.map