mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Fixed deserializer that stopped reading at the first 0xFF (closes #1118)
This commit is contained in:
		
							
								
								
									
										14
									
								
								extras/tests/Helpers/Stream.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								extras/tests/Helpers/Stream.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| // ArduinoJson - arduinojson.org | ||||
| // Copyright Benoit Blanchon 2014-2019 | ||||
| // MIT License | ||||
|  | ||||
| #pragma once | ||||
|  | ||||
| // Reproduces Arduino's Stream class | ||||
| class Stream  // : public Print | ||||
| { | ||||
|  public: | ||||
|   virtual ~Stream() {} | ||||
|   virtual int read() = 0; | ||||
|   virtual size_t readBytes(char *buffer, size_t length) = 0; | ||||
| }; | ||||
		Reference in New Issue
	
	Block a user