Skip to content

Latest commit

 

History

History
113 lines (70 loc) · 2.56 KB

LogicIntReceiverComponent.md

File metadata and controls

113 lines (70 loc) · 2.56 KB

Class: LogicIntReceiverComponent

Types

<ComponentProps>

See <ComponentProps>


<LogicIntReceiverComponentProps>

A portion of the configuration object to pass to the LogicIntReceiverComponent constructor.

type LogicIntReceiverComponentPropsV1 = {
  sender?: number | undefined;
};

type LogicIntReceiverComponentProps = LogicIntReceiverComponentPropsV1;

Since v1

  • sender (optional, default 0) <number>

Constructors

new LogicIntReceiverComponent(props)

Creates a versioned LogicIntReceiver component.

import { LogicIntReceiverComponent } from 'att-string-transcoder';

const componentVersion = 1;
const component = new LogicIntReceiverComponent({ version: componentVersion });

LogicIntReceiverComponent.fromBinary(reader, version)

See Component.fromBinary(reader, version)

Properties

Note that the following properties are sorted in order of appearance when decoding component binary data.

hash

See Component.hash


name

See Component.name


version

See Component.version


sender

The identifier of the LogicIntSender that is connected to this LogicIntReceiver.

  • Since: v1
  • <number>
import { LogicIntReceiverComponent } from 'att-string-transcoder';

const componentVersion = 1;
const component = new LogicIntReceiverComponent({ version: componentVersion });

const sender = component.sender;
// `sender` is `0`

Methods

toBinary(version?)

See Component.toBinary(version?)


write(writer, version?)

See Component.write(writer, version?)