33 lines · 881 B · C
RawDownload
////  ArrayBufferPrototype.h//////  Created by Clement on 7/3/14.//  Copyright 2014 High Fidelity, Inc.////  Distributed under the Apache License, Version 2.0.//  See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html// #ifndef hifi_ArrayBufferPrototype_h#define hifi_ArrayBufferPrototype_h #include <QtCore/QObject>#include <QtScript/QScriptable> class ArrayBufferPrototype : public QObject, public QScriptable {    Q_OBJECTpublic:    ArrayBufferPrototype(QObject* parent = NULL);    public slots:    QByteArray slice(qint32 begin, qint32 end) const;    QByteArray slice(qint32 begin) const;    QByteArray compress() const;    QByteArray recodeImage(const QString& sourceFormat, const QString& targetFormat, qint32 maxSize) const;    private:    QByteArray* thisArrayBuffer() const;}; #endif // hifi_ArrayBufferPrototype_h