File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export class DynamicBuffer {
25
25
26
26
constructor ( capacity : number ) {
27
27
this . value = new Uint8Array ( capacity ) ;
28
- this . capacity = capacity = capacity ;
28
+ this . capacity = capacity ;
29
29
}
30
30
31
31
public write ( bytes : Uint8Array ) : void {
@@ -51,7 +51,7 @@ export class DynamicBuffer {
51
51
public writeByte ( byte : number ) : void {
52
52
if ( this . length + 1 <= this . capacity ) {
53
53
this . value [ this . length ] = byte ;
54
- this . length += 1 ;
54
+ this . length ++ ;
55
55
return ;
56
56
}
57
57
if ( this . capacity === 0 ) {
@@ -63,7 +63,7 @@ export class DynamicBuffer {
63
63
newValue . set ( this . value . subarray ( 0 , this . length ) ) ;
64
64
newValue [ this . length ] = byte ;
65
65
this . value = newValue ;
66
- this . length += 1 ;
66
+ this . length ++ ;
67
67
}
68
68
69
69
public readInto ( target : Uint8Array ) : void {
You can’t perform that action at this time.
0 commit comments