{"json_modified": "2015-09-26T09:56:37.473755", "slug": "Web/JavaScript/Vectores_tipados", "tags": ["Gu\u00eda", "JavaScript"], "locale": "es", "title": "Vectores JavaScript tipados", "translations": [{"title": "Javascript typed arrays", "url": "/ja/docs/Web/JavaScript/Typed_arrays", "tags": ["javascript", "Guide", "Javascript", "guide", "JavaScript"], "summary": "JavaScript \u306e\u578b\u4ed8\u304d\u914d\u5217\u306f\u914d\u5217\u72b6\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3042\u308a\u3001\u751f\u306e\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u624b\u6bb5\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u3059\u3067\u306b\u3054\u5b58\u77e5\u306e\u3068\u304a\u308a\u3001Array
\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u52d5\u7684\u306b\u62e1\u5927\u307e\u305f\u306f\u7e2e\u5c0f\u3055\u308c\u3001\u4efb\u610f\u306e JavaScript \u5024\u3092\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002JavaScript \u30a8\u30f3\u30b8\u30f3\u306f\u3001\u3053\u308c\u3089\u306e\u914d\u5217\u3092\u9ad8\u901f\u5316\u3059\u308b\u305f\u3081\u306b\u6700\u9069\u5316\u3092\u5b9f\u65bd\u3057\u307e\u3059\u3002\u4e00\u65b9\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u3088\u308a\u5f37\u529b\u306b\u306a\u308a\u52d5\u753b\u3092\u64cd\u4f5c\u3059\u308b\u3001\u3042\u308b\u3044\u306f WebSocket \u3092\u4f7f\u7528\u3057\u3066\u751f\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306a\u3069\u3055\u307e\u3056\u307e\u306a\u6a5f\u80fd\u304c\u8ffd\u52a0\u3055\u308c\u308b\u305f\u3081\u3001JavaScript \u30b3\u30fc\u30c9\u304c\u3088\u308a\u901f\u304f\u52d5\u4f5c\u3059\u308b\u3001\u307e\u305f\u578b\u4ed8\u304d\u914d\u5217\u306b\u3088\u308a\u751f\u306e\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306e\u64cd\u4f5c\u304c\u5bb9\u6613\u306b\u306a\u308b\u3053\u3068\u304c\u6709\u76ca\u3067\u3042\u308b\u3068\u8003\u3048\u3089\u308c\u308b\u306e\u306f\u660e\u3089\u304b\u3067\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2015-09-17T08:56:19", "review_tags": []}, {"title": "JavaScript typed arrays", "url": "/en-US/docs/Web/JavaScript/Typed_arrays", "tags": ["Guide", "JavaScript"], "summary": "JavaScript typed arrays are array-like objects and provide a mechanism for accessing raw binary data. As you already know, Array
objects grow and shrink dynamically and can have any JavaScript value. JavaScript engines perform optimizations so that these arrays are fast. However, as web applications become more and more powerful, adding features such as audio and video manipulation, access to raw data using WebSockets, and so forth, it has become clear that there are times when it would be helpful for JavaScript code to be able to quickly and easily manipulate raw binary data in typed arrays.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-07-14T04:16:14", "review_tags": []}, {"title": "JavaScript \u578b\u5225\u9663\u5217", "url": "/zh-TW/docs/Web/JavaScript/JavaScript_typed_arrays", "tags": ["WebSockets"], "summary": "\u7576 Webapp \u6709\u4e86\u8996\u983b\u3001\u97f3\u983b\u64cd\u4f5c\u53ca\u7528 WebSockets \u5b58\u53d6\u539f\u59cb\u8cc7\u6599\u7b49\u7b49\u7684\u529f\u80fd\u800c\u8b8a\u5f97\u8d8a\u4f86\u8d8a\u5f37\u5927\uff0c\u8b93 JavaScript \u4ee3\u78bc\u53ef\u4ee5\u5feb\u901f\u3001\u7c21\u55ae\u5730\u64cd\u4f5c\u539f\u59cb\u4e8c\u9032\u5236\u8cc7\u6599\u7684\u597d\u8655\u5c31\u8d8a\u4f86\u8d8a\u660e\u986f\u3002\u4ee5\u524d\u552f\u4e00\u7684\u89e3\u6cd5\u662f\u8996\u539f\u59cb\u8cc7\u6599\u70ba\u5b57\u4e32\u4e26\u7528 charCodeAt()
\u65b9\u6cd5\u8b80\u53d6\u8cc7\u6599\u7de9\u885d\u7684\u4f4d\u5143\u7d44\u3002", "localization_tags": [], "locale": "zh-TW", "last_edit": "2014-07-04T07:14:10", "review_tags": []}, {"title": "Tablice reprezentuj\u0105ce typy JavaScript", "url": "/pl/docs/Web/JavaScript/Typed_arrays", "tags": [], "summary": "Jako, \u017ce aplikacje internetowe staj\u0105 si\u0119 coraz bardziej pot\u0119\u017cne, zapewniaj\u0105c takie mo\u017cliwo\u015bci jak chocia\u017cby manipulacja audio i wideo, dost\u0119p do surowych danych u\u017cywaj\u0105c WebSocket, i tak dalej, sta\u0142o si\u0119 jasne, \u017ce s\u0105 sytuacje, w kt\u00f3rych przyda\u0142oby si\u0119, \u017ceby kod JavaScript by\u0142 w stanie szybko i \u0142atwo manipulowa\u0107 surowymi danymi binarnymi. W przesz\u0142o\u015bci, musia\u0142o by\u0107 to symulowane przez traktowanie surowych danych jako\u00a0string\u00a0i u\u017cywanie metody\u00a0charCodeAt(),
\u00a0aby przeczyta\u0107 bajty z buforu danych.", "localization_tags": ["inprogress"], "locale": "pl", "last_edit": "2015-04-23T08:24:49", "review_tags": []}, {"title": "JavaScript typed arrays", "url": "/zh-CN/docs/Web/JavaScript/Typed_arrays", "tags": [], "summary": "\u7f51\u9875\u5e94\u7528\u53d8\u5f97\u65e5\u76ca\u7684\u5f3a\u5927, \u589e\u52a0\u65b0\u7684\u529f\u80fd\u4f8b\u5982\u97f3\u9891\u548c\u89c6\u5c4f\u5904\u7406, \u901a\u8fc7 WebSockets \u76f4\u63a5\u8bbf\u95ee\u539f\u59cb\u6570\u7b49\u7b49, \u65e5\u76ca\u6e05\u6670\u5730\u662f\u6709\u65f6\u5019 JavaScript \u4ee3\u7801\u80fd\u591f\u5feb\u901f\u800c\u4e14\u65b9\u4fbf\u5730\u5904\u7406\u539f\u59cb\u6570\u636e\u8fd9\u5c06\u4f1a\u5bf9\u6211\u4eec\u5f88\u6709\u5e2e\u52a9. \u5728\u4ee5\u524d, \u5b9e\u73b0\u8fd9\u79cd\u5f62\u5f0f\u5730\u65b9\u5f0f\u662f\u5c06\u8fd9\u4e9b\u539f\u59cb\u6570\u636e\u5f53\u4f5c\u6765\u00a0string\u00a0\u7528\u5e76\u4e14\u4f7f\u7528\u00a0charCodeAt()
\u00a0\u65b9\u6cd5\u4ece\u6570\u636e\u7f13\u51b2\u533a(buffer)\u4e2d\u6765\u8bfb\u53d6\u5b57\u8282.", "localization_tags": [], "locale": "zh-CN", "last_edit": "2015-07-23T04:00:42", "review_tags": []}, {"title": "Les tableaux typ\u00e9s en JavaScript", "url": "/fr/docs/Web/JavaScript/Tableaux_typ%C3%A9s", "tags": ["Guide", "Typed Arrays", "Advanced", "JavaScript"], "summary": "Les tableaux typ\u00e9s JavaScript sont des objets semblables \u00e0 des tableaux qui permettent d'acc\u00e9der \u00e0 des donn\u00e9es binaires brutes. Pour rappel, les objets Array
qui repr\u00e9sentent des tableaux en JavaScript peut \u00eatre agrandis ou r\u00e9duits dynamiquement et permettent de stocker n'importe quelle valeur JavaScript. Afin que la manipulation de ces objets soit efficace, le moteur JavaScript applique un certain nombre d'optimisations. Cependant, avec les avanc\u00e9es r\u00e9alis\u00e9es (telles que les flux audio et vid\u00e9o avec WebRTC et les WebSockets), il devient n\u00e9cessaire de pouvoir manipuler des donn\u00e9es binaires brutes au sein de tableaux typ\u00e9s, c'est pour \u00e7a que ces objets ont \u00e9t\u00e9 introduits.", "localization_tags": [], "locale": "fr", "last_edit": "2015-08-25T04:04:34", "review_tags": []}, {"title": "JavaScript typed arrays", "url": "/de/docs/Web/JavaScript/Typed_arrays", "tags": ["JavaScript"], "summary": "Um maximal Flexibilit\u00e4t und Effizienz zu schaffen, spalten\u00a0JavaScript Typed-Arrays \u00a0die Durchf\u00fchrung zwischen Buffers und Views.\u00a0Ein Buffer (vom\u00a0ArrayBuffer
Objekt\u00a0durchgef\u00fchrt) ist ein Objekt, das eine Menge Daten verk\u00f6rpert. Dazu geh\u00f6rt kein\u00a0echtes Format, und keine Mechanismus wird angeboten, auf den\u00a0Inhalt zuzugreifen. Um Zugang zu diesem Speicher zu schaffen, muss man ein \"View\" benutzen. Ein View liefert einen Kontext, der diese Daten ein echtes,\u00a0typisiertes Array umwandelt. Genauer gesagt, gibt dieses Kontext\u00a0ein Typ, Addressabstand und die Anzahl der Elemente an.", "localization_tags": ["inprogress"], "locale": "de", "last_edit": "2015-04-22T04:54:13", "review_tags": []}], "modified": "2015-09-26T09:56:35", "label": "Vectores JavaScript tipados", "localization_tags": [], "url": "/es/docs/Web/JavaScript/Vectores_tipados", "last_edit": "2015-07-08T07:31:23", "summary": "Los vectores\u00a0JavaScript tipados son objetos tipo Array y proveen un mecanismo para el acceso a datos binarios puros. Como sabes, los objetos del tipo\u00a0Array
crecen y decrecen din\u00e1micamente y pueden tener cualquier valor\u00a0JavaScript. Los motores JavaScript realizan optimizaciones y as\u00ed estos vectores\u00a0son veloces. Sin embargo, como las aplicaciones web se volvieron m\u00e1s y m\u00e1s poderosas, a\u00f1adiendo funcionalidades tales como la manipulaci\u00f3n de audio y video, acceso a datos puros usando WebSockets, etc\u00e9tera, ha quedado claro que hay ocasiones en que ser\u00eda beneficioso para el c\u00f3digo JavaScript tener la posibilidad de, r\u00e1pida y f\u00e1cilmente,\u00a0manipular\u00a0datos binarios puros en vectores tipados.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Buffers_y_vistas_arquitectura_de_vectores_tipados", "title": "Buffers y vistas:\u00a0arquitectura de vectores tipados"}, {"id": "ArrayBuffer", "title": "ArrayBuffer"}, {"id": "Vistas_de_vector_tipado", "title": "Vistas de vector tipado"}, {"id": "DataView", "title": "DataView"}, {"id": "APIs_de_Web_que_usan_vectores_tipados", "title": "APIs de Web\u00a0que usan vectores tipados"}, {"id": "Ejemplos", "title": "Ejemplos"}, {"id": "Usando_vistas_con_buffers", "title": "Usando vistas con\u00a0buffers"}, {"id": "Multiples_vistas_en_los_mismos_datos", "title": "Multiples vistas en los mismos datos"}, {"id": "Trabajando_con_estructuras_de_datos_complejas", "title": "Trabajando con estructuras de datos complejas"}, {"id": "Conversi\u00f3n_a_vectores_normales", "title": "Conversi\u00f3n a vectores normales"}, {"id": "Especificaciones", "title": "Especificaciones"}, {"id": "Compatibilidad_de_navegador", "title": "Compatibilidad de navegador"}, {"id": "V\u00e9ase_tambi\u00e9n", "title": "V\u00e9ase tambi\u00e9n"}], "id": 156131, "review_tags": []}