|
@@ -80,6 +80,7 @@ abstract Float32Array(Float32ArrayData) {
|
|
|
}
|
|
|
|
|
|
public static function fromBytes( bytes : haxe.io.Bytes, bytePos : Int = 0, ?length : Int ) : Float32Array {
|
|
|
+ if( length == null ) length = (bytes.length - bytePos) >> 2;
|
|
|
return fromData(new Float32ArrayData(bytes.getData(), bytePos, length));
|
|
|
}
|
|
|
}
|