Incorrect Frida Method Filter
frida-method-filter-mismatch
The number of bytes to read is implicitly specified in the allocated size of the buffer. — using Java's ByteBuffer and FileChannel. Tension: If I know the maximum number of bytes I will ever read I can allocate a single buffer just once and reuse it. Outcome: You can make a ByteBuffer appear to be smaller by changing its limit. | We can't reuse buffer1 and are forced to allocate a new buffer, buffer2. — read 1,100 bytes from a file using Java's ByteBuffer and FileChannel. Tension: I can allocate a single buffer just once and reuse it. Outcome: I'm aware of the slice() method, but from the JavaDoc, this creates a new buffer and so nothing gained. | You can make a ByteBuffer appear to be smaller by changing its limit: — reading from a FileChannel. Outcome: buffer.clear();.