mirror of
				https://bitbucket.org/s_l_teichmann/mtsatellite
				synced 2025-10-26 13:55:35 +01:00 
			
		
		
		
	| @@ -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 | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user