Buckets:
ktongue/docker_container / simsite /frontend /node_modules /three-mesh-bvh /src /utils /BufferUtils.js
| export function isSharedArrayBufferSupported() { | |
| return typeof SharedArrayBuffer !== 'undefined'; | |
| } | |
| export function convertToBufferType( array, BufferConstructor ) { | |
| if ( array === null ) { | |
| return array; | |
| } else if ( array.buffer ) { | |
| const buffer = array.buffer; | |
| if ( buffer.constructor === BufferConstructor ) { | |
| return array; | |
| } | |
| const ArrayConstructor = array.constructor; | |
| const result = new ArrayConstructor( new BufferConstructor( buffer.byteLength ) ); | |
| result.set( array ); | |
| return result; | |
| } else { | |
| if ( array.constructor === BufferConstructor ) { | |
| return array; | |
| } | |
| const result = new BufferConstructor( array.byteLength ); | |
| new Uint8Array( result ).set( new Uint8Array( array ) ); | |
| return result; | |
| } | |
| } | |
Xet Storage Details
- Size:
- 753 Bytes
- Xet hash:
- c9b6bda56ecb8602cf4945997688bae74f9c9f8658c55b3a3245e77f507eec8b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.