Sha256: 1549e0ff7682f85d8ed23bafad888ed4f518f0a14a41e3172e2516fc77c768b5
Contents?: true
Size: 721 Bytes
Versions: 8
Compression:
Stored size: 721 Bytes
Contents
# ========================================================================== # Project: Web Typed Array # Copyright: ©2010 Strobe Inc. All rights reserved. # License: Licened under MIT license (see LICENSE) # ========================================================================== module WebTypedArray class ArrayBufferExports < Spade::Exports # TODO: Use a string to keep the buffer packed instead of the much more # expensive Array class ArrayBuffer attr_reader :buf def initialize(size) @buf = "\0"*size end def byteLength @buf.size end end end end Spade.exports WebTypedArray::ArrayBufferExports
Version data entries
8 entries across 8 versions & 1 rubygems