CINXE.COM

dart:typed_data library - Dart API

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no"> <meta name="description" content="dart:typed_data library API docs, for the Dart programming language."> <title>dart:typed_data library - Dart API</title> <link rel="canonical" href="https://api.dart.dev/dart-typed_data"> <link rel="preconnect" href="https://fonts.gstatic.com"> <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" rel="stylesheet"> <link rel="stylesheet" href="../static-assets/github.css?v1"> <link rel="stylesheet" href="../static-assets/styles.css?v1"> <link rel="icon" href="../static-assets/favicon.png?v1"> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-VVQ8908SJ5"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-VVQ8908SJ5'); </script> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preload" href="https://fonts.googleapis.com/css2?family=Google+Sans+Text:wght@400&family=Google+Sans:wght@500&display=swap" as="style"> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Google+Sans+Text:wght@400&family=Google+Sans:wght@500&display=swap"> <link rel="stylesheet" href="https://www.gstatic.com/glue/cookienotificationbar/cookienotificationbar.min.css"> </head> <body data-base-href="../" data-using-base-href="false" class="light-theme"> <div id="overlay-under-drawer"></div> <header id="title"> <span id="sidenav-left-toggle" class="material-symbols-outlined" role="button" tabindex="0">menu</span> <ol class="breadcrumbs gt-separated dark hidden-xs"> <li><a href="../index.html">Dart</a></li> <li class="self-crumb">dart:typed_data</li> </ol> <div class="self-name">dart:typed_data</div> <form class="search navbar-right" role="search"> <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search..."> </form> <div class="toggle" id="theme-button" title="Toggle brightness"> <label for="theme"> <input type="checkbox" id="theme" value="light-theme"> <span id="dark-theme-button" class="material-symbols-outlined"> dark_mode </span> <span id="light-theme-button" class="material-symbols-outlined"> light_mode </span> </label> </div> </header> <main> <div id="dartdoc-main-content" class="main-content" data-above-sidebar="" data-below-sidebar="dart-typed_data&#47;dart-typed_data-library-sidebar.html"> <div> <div id="external-links" class="btn-group"><a title="View source code" class="source-link" href="https://github.com/dart-lang/sdk/blob/9594995093f642957b780603c6435d9e7a61b923/sdk/lib/typed_data/typed_data.dart#L14"><span class="material-symbols-outlined">description</span></a></div> <h1> <span class="kind-library">dart:typed_data</span> library </h1> </div> <section class="desc markdown"> <p>Lists that efficiently handle fixed sized data (for example, unsigned 8 byte integers) and SIMD numeric types.</p> <p>To use this library in your code:</p> <pre class="language-dart"><code class="language-dart">import 'dart:typed_data'; </code></pre> </section> <section class="summary offset-anchor" id="classes"> <h2>Classes</h2> <dl> <dt id="ByteBuffer"> <span class="name "><a href="../dart-typed_data/ByteBuffer-class.html">ByteBuffer</a></span> </dt> <dd> A sequence of bytes underlying a typed data object. </dd> <dt id="ByteData"> <span class="name "><a href="../dart-typed_data/ByteData-class.html">ByteData</a></span> </dt> <dd> A fixed-length, random-access sequence of bytes that also provides random and unaligned access to the fixed-width integers and floating point numbers represented by those bytes. </dd> <dt id="BytesBuilder"> <span class="name "><a href="../dart-typed_data/BytesBuilder-class.html">BytesBuilder</a></span> </dt> <dd> Builds a list of bytes, allowing bytes and lists of bytes to be added at the end. </dd> <dt id="Endian"> <span class="name "><a href="../dart-typed_data/Endian-class.html">Endian</a></span> </dt> <dd> Endianness of number representation. </dd> <dt id="Float32List"> <span class="name "><a href="../dart-typed_data/Float32List-class.html">Float32List</a></span> </dt> <dd> A fixed-length list of IEEE 754 single-precision binary floating-point numbers that is viewable as a <a href="../dart-typed_data/TypedData-class.html">TypedData</a>. </dd> <dt id="Float32x4"> <span class="name "><a href="../dart-typed_data/Float32x4-class.html">Float32x4</a></span> </dt> <dd> Float32x4 immutable value type and operations. </dd> <dt id="Float32x4List"> <span class="name "><a href="../dart-typed_data/Float32x4List-class.html">Float32x4List</a></span> </dt> <dd> A fixed-length list of <a href="../dart-typed_data/Float32x4-class.html">Float32x4</a> numbers that is viewable as a <a href="../dart-typed_data/TypedData-class.html">TypedData</a>. </dd> <dt id="Float64List"> <span class="name "><a href="../dart-typed_data/Float64List-class.html">Float64List</a></span> </dt> <dd> A fixed-length list of IEEE 754 double-precision binary floating-point numbers that is viewable as a <a href="../dart-typed_data/TypedData-class.html">TypedData</a>. </dd> <dt id="Float64x2"> <span class="name "><a href="../dart-typed_data/Float64x2-class.html">Float64x2</a></span> </dt> <dd> Float64x2 immutable value type and operations. </dd> <dt id="Float64x2List"> <span class="name "><a href="../dart-typed_data/Float64x2List-class.html">Float64x2List</a></span> </dt> <dd> A fixed-length list of <a href="../dart-typed_data/Float64x2-class.html">Float64x2</a> numbers that is viewable as a <a href="../dart-typed_data/TypedData-class.html">TypedData</a>. </dd> <dt id="Int16List"> <span class="name "><a href="../dart-typed_data/Int16List-class.html">Int16List</a></span> </dt> <dd> A fixed-length list of 16-bit signed integers that is viewable as a <a href="../dart-typed_data/TypedData-class.html">TypedData</a>. </dd> <dt id="Int32List"> <span class="name "><a href="../dart-typed_data/Int32List-class.html">Int32List</a></span> </dt> <dd> A fixed-length list of 32-bit signed integers that is viewable as a <a href="../dart-typed_data/TypedData-class.html">TypedData</a>. </dd> <dt id="Int32x4"> <span class="name "><a href="../dart-typed_data/Int32x4-class.html">Int32x4</a></span> </dt> <dd> Int32x4 and operations. </dd> <dt id="Int32x4List"> <span class="name "><a href="../dart-typed_data/Int32x4List-class.html">Int32x4List</a></span> </dt> <dd> A fixed-length list of <a href="../dart-typed_data/Int32x4-class.html">Int32x4</a> numbers that is viewable as a <a href="../dart-typed_data/TypedData-class.html">TypedData</a>. </dd> <dt id="Int64List"> <span class="name "><a href="../dart-typed_data/Int64List-class.html">Int64List</a></span> </dt> <dd> A fixed-length list of 64-bit signed integers that is viewable as a <a href="../dart-typed_data/TypedData-class.html">TypedData</a>. </dd> <dt id="Int8List"> <span class="name "><a href="../dart-typed_data/Int8List-class.html">Int8List</a></span> </dt> <dd> A fixed-length list of 8-bit signed integers. </dd> <dt id="TypedData"> <span class="name "><a href="../dart-typed_data/TypedData-class.html">TypedData</a></span> </dt> <dd> A typed view of a sequence of bytes. </dd> <dt id="TypedDataList"> <span class="name "><a href="../dart-typed_data/TypedDataList-class.html">TypedDataList</a><span class="signature">&lt;<wbr><span class="type-parameter">E</span>&gt;</span></span> </dt> <dd> A <a href="../dart-typed_data/TypedData-class.html">TypedData</a> fixed-length <a href="../dart-core/List-class.html">List</a>-view on the bytes of <a href="../dart-typed_data/TypedData/buffer.html">buffer</a>. </dd> <dt id="Uint16List"> <span class="name "><a href="../dart-typed_data/Uint16List-class.html">Uint16List</a></span> </dt> <dd> A fixed-length list of 16-bit unsigned integers that is viewable as a <a href="../dart-typed_data/TypedData-class.html">TypedData</a>. </dd> <dt id="Uint32List"> <span class="name "><a href="../dart-typed_data/Uint32List-class.html">Uint32List</a></span> </dt> <dd> A fixed-length list of 32-bit unsigned integers that is viewable as a <a href="../dart-typed_data/TypedData-class.html">TypedData</a>. </dd> <dt id="Uint64List"> <span class="name "><a href="../dart-typed_data/Uint64List-class.html">Uint64List</a></span> </dt> <dd> A fixed-length list of 64-bit unsigned integers that is viewable as a <a href="../dart-typed_data/TypedData-class.html">TypedData</a>. </dd> <dt id="Uint8ClampedList"> <span class="name "><a href="../dart-typed_data/Uint8ClampedList-class.html">Uint8ClampedList</a></span> </dt> <dd> A fixed-length list of 8-bit unsigned integers. </dd> <dt id="Uint8List"> <span class="name "><a href="../dart-typed_data/Uint8List-class.html">Uint8List</a></span> </dt> <dd> A fixed-length list of 8-bit unsigned integers. </dd> </dl> </section> </div> <!-- /.main-content --> <div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left"> <!-- The search input and breadcrumbs below are only responsively visible at low resolutions. --> <header id="header-search-sidebar" class="hidden-l"> <form class="search-sidebar" role="search"> <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search..."> </form> </header> <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav"> <li><a href="../index.html">Dart</a></li> <li class="self-crumb">dart:typed_data</li> </ol> <h5><span class="package-name">Dart</span> <span class="package-kind">SDK</span></h5> <ol> <li class="section-title">Libraries</li> <li class="section-subtitle">Core</li> <li class="section-subitem"><a href="../dart-async">dart:async</a></li> <li class="section-subitem"><a href="../dart-collection">dart:collection</a></li> <li class="section-subitem"><a href="../dart-convert">dart:convert</a></li> <li class="section-subitem"><a href="../dart-core">dart:core</a></li> <li class="section-subitem"><a href="../dart-developer">dart:developer</a></li> <li class="section-subitem"><a href="../dart-math">dart:math</a></li> <li class="section-subitem"><a href="../dart-typed_data">dart:typed_data</a></li> <li class="section-subtitle">VM</li> <li class="section-subitem"><a href="../dart-ffi">dart:ffi</a></li> <li class="section-subitem"><a href="../dart-io">dart:io</a></li> <li class="section-subitem"><a href="../dart-isolate">dart:isolate</a></li> <li class="section-subitem"><a href="../dart-mirrors">dart:mirrors</a></li> <li class="section-subtitle">Web</li> <li class="section-subitem"> <a href="https:&#47;&#47;pub.dev&#47;documentation&#47;web&#47;latest&#47;" target="_blank"> package:web <span class="material-symbols-outlined">open_in_new</span> </a> </li> <li class="section-subitem"><a href="../dart-js_interop">dart:js_interop</a></li> <li class="section-subitem"><a href="../dart-js_interop_unsafe">dart:js_interop_unsafe</a></li> <li class="section-subtitle">Web (Legacy)</li> <li class="section-subitem"><a class="deprecated" href="../dart-html">dart:html</a></li> <li class="section-subitem"><a class="deprecated" href="../dart-indexed_db">dart:indexed_db</a></li> <li class="section-subitem"><a class="deprecated" href="../dart-js">dart:js</a></li> <li class="section-subitem"><a class="deprecated" href="../dart-js_util">dart:js_util</a></li> <li class="section-subitem"><a class="deprecated" href="../dart-svg">dart:svg</a></li> <li class="section-subitem"><a class="deprecated" href="../dart-web_audio">dart:web_audio</a></li> <li class="section-subitem"><a class="deprecated" href="../dart-web_gl">dart:web_gl</a></li> </ol> </div> <div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right"> <h5>dart:typed_data library</h5> </div><!--/sidebar-offcanvas-right--> </main> <footer> <span class="no-break"> Dart 3.7.2 </span> <span class="glue-footer"> <span class="no-break"> | <a href="https://dart.dev/terms" title="Terms of use">Terms</a> </span> <span class="no-break"> | <a href="https://policies.google.com/privacy" target="_blank" rel="noopener" title="Privacy policy" class="no-automatic-external">Privacy</a> </span> <span class="no-break"> | <a href="https://dart.dev/security" title="Security philosophy and practices">Security</a> </span> <div class="copyright" style="font-size: 0.9em; color: darkgrey; margin-top: 0.5em;"> Except as otherwise noted, this site is licensed under a <a style="color: darkgrey;" href="https://creativecommons.org/licenses/by/4.0/"> Creative Commons Attribution 4.0 International License</a> and code samples are licensed under the <a style="color: darkgrey;" href="https://opensource.org/licenses/BSD-3-Clause" class="no-automatic-external"> 3-Clause BSD License</a> </div> </span> </footer> <script src="../static-assets/highlight.pack.js?v1"></script> <script src="../static-assets/docs.dart.js"></script> <button aria-hidden="true" class="glue-footer__link glue-cookie-notification-bar-control"> Cookies management controls </button> <script src="https://www.gstatic.com/glue/cookienotificationbar/cookienotificationbar.min.js" data-glue-cookie-notification-bar-category="2B"> </script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10