【问题标题】:How to change a uint8Array to Buffer in Dart?如何在 Dart 中将 uint8Array 更改为 Buffer?
【发布时间】:2020-05-08 13:57:30
【问题描述】:

Javascript for Dart 中 Buffer.from() 的任何替代方法?

我想在 Dart 中将 unit8Array / HexString 改为 Buffer

【问题讨论】:

    标签: flutter dart dart-pub


    【解决方案1】:

    按照此链接了解您可以使用的方法: https://api.dart.dev/stable/2.8.1/dart-typed_data/ByteBuffer-class.html 您可以使用 asUint8List() 方法,反之亦然,使用 hascode() 方法返回 int 数组。 如果有帮助,请发表评论! 可能会有所帮助:)

    【讨论】:

      猜你喜欢
      • 2020-08-25
      • 1970-01-01
      • 2013-09-10
      • 1970-01-01
      • 2021-04-15
      • 1970-01-01
      • 2013-07-19
      • 2021-01-04
      • 2018-02-19
      相关资源
      最近更新 更多