LPS-49308 Requested data length may be same size as byte buffer
LPS-49308 Tests
LPS-49308 SF
LPS-49308 fix compile error