| 129 | operator const MaaImageBuffer*() const { return buffer; } |
| 130 | |
| 131 | maajs::ArrayBufferType data(maajs::EnvType env) const |
| 132 | { |
| 133 | auto len = MaaImageBufferGetEncodedSize(buffer); |
| 134 | auto buf = maajs::ArrayBufferType::New(env, len); |
| 135 | std::memcpy(buf.Data(), MaaImageBufferGetEncoded(buffer), len); |
| 136 | return buf; |
| 137 | } |
| 138 | }; |
| 139 | |
| 140 | template < |
nothing calls this directly
no test coverage detected