Variable BASE_DATA_TYPESConst
BASE_DATA_TYPES: { find: ((name: string) => | null | { adsDataType: number; fromBuffer: ((buffer: Buffer) => string); name: string[]; size: number; toBuffer: ((value: string,
buffer: Buffer) => number); } | { adsDataType: number; fromBuffer: ((buffer: Buffer) => boolean); name: string[]; size: number; toBuffer: ((value: number | boolean,
buffer: Buffer) => number); } | { adsDataType: number; fromBuffer: ((buffer: Buffer) => number); name: string[]; size: number; toBuffer: ((value: number,
buffer: Buffer) => number); } | { adsDataType: number; fromBuffer: ((buffer: Buffer,
convertDates: boolean) => number | Date); name: string[]; size: number; toBuffer: ((value: number | Date,
buffer: Buffer) => void); } | { adsDataType: number; fromBuffer: ((buffer: Buffer) => bigint | Buffer); name: string[]; size: number; toBuffer: ((value: number | Buffer | BigInt,
buffer: Buffer) => void); }); findPseudoType: ((name: string) => undefined | { actualTypesBySize: { [
k:
number]
: string; }; name: string[]; }); fromBuffer: ((name: string,
buffer: Buffer,
convertDates: boolean) => | string | number | bigint | boolean | Buffer | Date); getTypeByPseudoType: ((name: string,
byteSize: number) => undefined | string); isKnownType: ((name: string) => boolean); isPseudoType: ((name: string) => boolean); pseudoTypes: { actualTypesBySize: { [
k:
number]
: string; }; name: string[]; }[]; toBuffer: ((name: string,
value: PlcPrimitiveType,
buffer?: Buffer) => Buffer); types: ( | { adsDataType: number; fromBuffer: ((buffer: Buffer) => string); name: string[]; size: number; toBuffer: ((value: string,
buffer: Buffer) => number); } | { adsDataType: number; fromBuffer: ((buffer: Buffer) => boolean); name: string[]; size: number; toBuffer: ((value: number | boolean,
buffer: Buffer) => number); } | { adsDataType: number; fromBuffer: ((buffer: Buffer) => number); name: string[]; size: number; toBuffer: ((value: number,
buffer: Buffer) => number); } | { adsDataType: number; fromBuffer: ((buffer: Buffer,
convertDates: boolean) => number | Date); name: string[]; size: number; toBuffer: ((value: number | Date,
buffer: Buffer) => void); } | { adsDataType: number; fromBuffer: ((buffer: Buffer) => bigint | Buffer); name: string[]; size: number; toBuffer: ((value: number | Buffer | BigInt,
buffer: Buffer) => void); })[]; } = ... Type declaration
find: ((name: string) =>
| null
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer) => string);
name: string[];
size: number;
toBuffer: ((value: string, buffer: Buffer) => number);
}
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer) => boolean);
name: string[];
size: number;
toBuffer: ((value: number | boolean, buffer: Buffer) => number);
}
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer) => number);
name: string[];
size: number;
toBuffer: ((value: number, buffer: Buffer) => number);
}
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer, convertDates: boolean) => number | Date);
name: string[];
size: number;
toBuffer: ((value: number | Date, buffer: Buffer) => void);
}
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer) => bigint | Buffer);
name: string[];
size: number;
toBuffer: ((value: number | Buffer | BigInt, buffer: Buffer) => void);
})
- (name):
| null
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer) => string);
name: string[];
size: number;
toBuffer: ((value: string, buffer: Buffer) => number);
}
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer) => boolean);
name: string[];
size: number;
toBuffer: ((value: number | boolean, buffer: Buffer) => number);
}
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer) => number);
name: string[];
size: number;
toBuffer: ((value: number, buffer: Buffer) => number);
}
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer, convertDates: boolean) => number | Date);
name: string[];
size: number;
toBuffer: ((value: number | Date, buffer: Buffer) => void);
}
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer) => bigint | Buffer);
name: string[];
size: number;
toBuffer: ((value: number | Buffer | BigInt, buffer: Buffer) => void);
} Returns
| null
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer) => string);
name: string[];
size: number;
toBuffer: ((value: string, buffer: Buffer) => number);
}
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer) => boolean);
name: string[];
size: number;
toBuffer: ((value: number | boolean, buffer: Buffer) => number);
}
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer) => number);
name: string[];
size: number;
toBuffer: ((value: number, buffer: Buffer) => number);
}
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer, convertDates: boolean) => number | Date);
name: string[];
size: number;
toBuffer: ((value: number | Date, buffer: Buffer) => void);
}
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer) => bigint | Buffer);
name: string[];
size: number;
toBuffer: ((value: number | Buffer | BigInt, buffer: Buffer) => void);
}
findPseudoType: ((name: string) => undefined | {
actualTypesBySize: {
[k: number]: string;
};
name: string[];
})
- (name): undefined | {
actualTypesBySize: {
[k: number]: string;
};
name: string[];
} Returns undefined | {
actualTypesBySize: {
[k: number]: string;
};
name: string[];
}
fromBuffer: ((name: string, buffer: Buffer, convertDates: boolean) =>
| string
| number
| bigint
| boolean
| Buffer
| Date)
- (name, buffer, convertDates):
| string
| number
| bigint
| boolean
| Buffer
| Date Parameters
- name: string
- buffer: Buffer
- convertDates: boolean
Returns
| string
| number
| bigint
| boolean
| Buffer
| Date
getTypeByPseudoType: ((name: string, byteSize: number) => undefined | string)
- (name, byteSize): undefined | string
Parameters
- name: string
- byteSize: number
Returns undefined | string
isKnownType: ((name: string) => boolean)
- (name): boolean
Returns boolean
isPseudoType: ((name: string) => boolean)
- (name): boolean
Returns boolean
pseudoTypes: {
actualTypesBySize: {
[k: number]: string;
};
name: string[];
}[]
toBuffer: ((name: string, value: PlcPrimitiveType, buffer?: Buffer) => Buffer)
- (name, value, buffer?): Buffer
Returns Buffer
types: (
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer) => string);
name: string[];
size: number;
toBuffer: ((value: string, buffer: Buffer) => number);
}
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer) => boolean);
name: string[];
size: number;
toBuffer: ((value: number | boolean, buffer: Buffer) => number);
}
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer) => number);
name: string[];
size: number;
toBuffer: ((value: number, buffer: Buffer) => number);
}
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer, convertDates: boolean) => number | Date);
name: string[];
size: number;
toBuffer: ((value: number | Date, buffer: Buffer) => void);
}
| {
adsDataType: number;
fromBuffer: ((buffer: Buffer) => bigint | Buffer);
name: string[];
size: number;
toBuffer: ((value: number | Buffer | BigInt, buffer: Buffer) => void);
})[]
Base data types
Object that handles PLC base data types