* Reads the amount of bytes that the field has and returns them (slicing them). * @returns {Buffer}
()
| 179 | * @returns {Buffer} |
| 180 | */ |
| 181 | readBytes() { |
| 182 | const length = this.readInt(); |
| 183 | if (length < 0) { |
| 184 | return null; |
| 185 | } |
| 186 | this.checkOffset(length); |
| 187 | return this.read(length); |
| 188 | } |
| 189 | |
| 190 | readShortBytes() { |
| 191 | const length = this.readShort(); |
no test coverage detected