How to use the node-opcua-basic-types.isValidByteString function in node-opcua-basic-types

To help you get started, we’ve selected a few node-opcua-basic-types examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github node-opcua / node-opcua / packages / node-opcua-variant / src / variant_tools.js View on Github external
case DataType.UInt32:
            return ec.isValidUInt32(value);
        case DataType.Int32:
            return ec.isValidInt32(value);
        case DataType.UInt16:
            return ec.isValidUInt16(value);
        case DataType.Int16:
            return ec.isValidInt16(value);
        case DataType.Byte:
            return ec.isValidUInt8(value);
        case DataType.SByte:
            return ec.isValidInt8(value);
        case DataType.Boolean:
            return ec.isValidBoolean(value);
        case DataType.ByteString:
            return ec.isValidByteString(value);
        default:
            return true;
    }
}
github node-opcua / node-opcua / packages / node-opcua-variant / source / variant.ts View on Github external
case DataType.UInt32:
      return isValidUInt32(value);
    case DataType.Int32:
      return isValidInt32(value);
    case DataType.UInt16:
      return isValidUInt16(value);
    case DataType.Int16:
      return isValidInt16(value);
    case DataType.Byte:
      return isValidUInt8(value);
    case DataType.SByte:
      return isValidInt8(value);
    case DataType.Boolean:
      return isValidBoolean(value);
    case DataType.ByteString:
      return isValidByteString(value);
    default:
      return true;
  }
}