You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
391 B
25 lines
391 B
import InputNode from '../core/InputNode.js';
|
|
|
|
class BufferNode extends InputNode {
|
|
|
|
constructor( value, bufferType, bufferCount = 0 ) {
|
|
|
|
super( 'buffer' );
|
|
|
|
this.value = value;
|
|
this.bufferType = bufferType;
|
|
this.bufferCount = bufferCount;
|
|
|
|
}
|
|
|
|
getNodeType( /* builder */ ) {
|
|
|
|
return this.bufferType;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
BufferNode.prototype.isBufferNode = true;
|
|
|
|
export default BufferNode;
|
|
|