You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update the DirectBufferedData.readBytes(int length) method to return Bytes.EMPTY if the length of the returned Bytes objects is zero. Callers can safely check the length of the returned object today, but the PBJ library should return Bytes.EMPTY for empty instances as much as possible to enable callers to use bytes == Bytes.EMPTY as well.
The text was updated successfully, but these errors were encountered:
Update the
DirectBufferedData.readBytes(int length)
method to returnBytes.EMPTY
if the length of the returnedBytes
objects is zero. Callers can safely check the length of the returned object today, but the PBJ library should returnBytes.EMPTY
for empty instances as much as possible to enable callers to usebytes == Bytes.EMPTY
as well.The text was updated successfully, but these errors were encountered: