mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-01-03 13:40:21 +01:00
parent
bc65fc56ed
commit
069f4728c5
@ -385,3 +385,12 @@ func (pb *posBuf) Read(p []byte) (int, error) {
|
||||
pb.Pos += pl
|
||||
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…
Reference in New Issue
Block a user