{"json_modified": "2016-09-28T03:52:48.538986", "uuid": "ab301e69-c75d-489f-b499-0e7b99f66427", "title": "ArrayBuffer.transfer()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transfer", "tags": ["ArrayBuffer", "Reference", "Experimental", "TypedArrays", "JavaScript", "Method"], "translations": [{"uuid": "e2512312-3b8c-47c7-8d43-dabc2b3f557f", "title": "ArrayBuffer.transfer()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/ArrayBuffer/transfer", "tags": ["ArrayBuffer", "polyfill", "TypedArrays", "R\u00e9f\u00e9rence", "Exp\u00e9rimental", "JavaScript", "M\u00e9thode"], "summary": "La m\u00e9thode statique ArrayBuffer.transfer()
renvoie un nouvel objet ArrayBuffer
dont le contenu a \u00e9t\u00e9 transf\u00e9r\u00e9 depuis les donn\u00e9es d'ancienBuffer
et qui est soit tronqu\u00e9 soit compl\u00e9t\u00e9 avec des z\u00e9ros pour que la longueur du nouvel objet soit \u00e9gale \u00e0 nouvelleLongueur
. Si nouvelleLongueur
vaut undefined
, on utilisera la propri\u00e9t\u00e9 byteLength
de l'ancienBuffer
. Cette op\u00e9ration fait que ancienBuffer
sera dans un \u00e9tat d\u00e9tach\u00e9.", "localization_tags": [], "locale": "fr", "last_edit": "2016-09-28T03:52:43", "review_tags": []}, {"uuid": "64db5a2e-0828-4958-943c-a7654a0cda3f", "title": "ArrayBuffer.transfer()", "url": "/ja/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transfer", "tags": ["ArrayBuffer", "TypedArrays", "Reference", "Experimental", "R\u00e9f\u00e9rence", "Exp\u00e9rimental", "JavaScript", "ECMAScript7", "Method"], "summary": "\u9759\u7684\u306aArrayBuffer.transfer()
\u30e1\u30bd\u30c3\u30c9\u306f\u3001oldBuffer
\u306e\u30c7\u30fc\u30bf\u304b\u3089\u5f97\u3089\u308c\u308b\u5185\u5bb9\u306e\u65b0\u3057\u3044ArrayBuffer
\u3092\u8fd4\u3057\u307e\u3059\u3002newByteLength
\u306b\u3088\u3063\u3066\u5207\u65ad\u3055\u308c\u308b\u304b\u30bc\u30ed\u62e1\u5f35\u3055\u308c\u307e\u3059\u3002newByteLength
\u304cundefined
\u306a\u3089\u3001oldBuffer
\u306ebyteLength
\u304c\u4f7f\u308f\u308c\u307e\u3059\u3002\u3053\u306e\u64cd\u4f5c\u306f\u5207\u308a\u96e2\u3055\u308c\u305f\u72b6\u614b\u3067oldBuffer
\u3092\u898b\u6368\u3066\u307e\u3059\u3002", "localization_tags": ["inprogress"], "locale": "ja", "last_edit": "2015-09-10T08:02:41", "review_tags": ["editorial"]}], "modified": "2016-09-27T19:14:46", "label": "ArrayBuffer.transfer()", "localization_tags": [], "locale": "en-US", "id": 131861, "last_edit": "2016-09-27T19:14:41", "summary": "The static ArrayBuffer.transfer()
method returns a new ArrayBuffer
whose contents have been\u00a0taken from the oldBuffer
's data and then is either truncated or zero-extended by newByteLength
. If newByteLength
is undefined
, the byteLength
of the oldBuffer
is used. This operation leaves oldBuffer
in a detached state.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Return_value", "title": "Return value"}, {"id": "Description", "title": "Description"}, {"id": "Examples", "title": "Examples"}, {"id": "Polyfill", "title": "Polyfill"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transfer", "review_tags": []}