encode static method

Map<String, Object> encode(
  1. LogicValue value
)

Encodes width explicitly and preserves X/Z without normalization.

Implementation

static Map<String, Object> encode(LogicValue value) =>
    {'width': value.width, 'bits': binary(value)};