mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-03-31 17:30:32 +02:00
Revert "remove dead code"
This reverts commit bc65fc56ede926afb057bdc0b229a75346bbdf06.
This commit is contained in:
parent
bc65fc56ed
commit
069f4728c5
@ -385,3 +385,12 @@ func (pb *posBuf) Read(p []byte) (int, error) {
|
|||||||
pb.Pos += pl
|
pb.Pos += pl
|
||||||
return pl, nil
|
return pl, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (pb *posBuf) ReadByte() (byte, error) {
|
||||||
|
if pb.Pos >= len(pb.Data) {
|
||||||
|
return 0, io.EOF
|
||||||
|
}
|
||||||
|
c := pb.Data[pb.Pos]
|
||||||
|
pb.Pos++
|
||||||
|
return c, nil
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user