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
in raw encoding func (*RawEncoding) Read(...) always return nil buff.
for y := uint16(0); y < rect.Height; y++ {
for x := uint16(0); x < rect.Width; x++ {
if bts, err := r.ReadBytes(bytesPerPixel); err != nil {
StoreBytes(bytes, bts)
return nil, err
}
}
}
StoreBytes(bytes, bts) should called outside the error assertion :
for y := uint16(0); y < rect.Height; y++ {
for x := uint16(0); x < rect.Width; x++ {
bts, err := r.ReadBytes(bytesPerPixel)
if err != nil {
return nil, err
}
StoreBytes(bytes, bts)
}
}
The text was updated successfully, but these errors were encountered:
in raw encoding func (*RawEncoding) Read(...) always return nil buff.
StoreBytes(bytes, bts) should called outside the error assertion :
The text was updated successfully, but these errors were encountered: