MCPcopy Create free account
hub / github.com/AutoCodeStack/ios-device-farm / BackFrame

Class BackFrame

public/static/js/renderer/back.frame.js:2–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// BackFrame to hold the incoming frame
2class BackFrame {
3 constructor() {
4 this.blob = null;
5 }
6
7 swap(blob) {
8 this.blob = blob;
9 }
10
11 consume() {
12 const blob = this.blob;
13 this.blob = null;
14 return blob;
15 }
16
17 destroy() {
18 this.consume();
19 }
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected