<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [Vec2](./rc-js-util.vec2.md) &gt; [copyFromBuffer](./rc-js-util.vec2.copyfrombuffer.md)

## Vec2.copyFromBuffer() method

If endianness is not supplied the platform's endianness will be used.

**Signature:**

```typescript
copyFromBuffer(_memoryDataView: DataView, _pointer: number, _littleEndian?: boolean): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

\_memoryDataView


</td><td>

DataView


</td><td>


</td></tr>
<tr><td>

\_pointer


</td><td>

number


</td><td>


</td></tr>
<tr><td>

\_littleEndian


</td><td>

boolean


</td><td>

_(Optional)_


</td></tr>
</tbody></table>
**Returns:**

void

