mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-11-01 08:48:30 +01:00 
			
		
		
		
	Added serializeMsgPack() and measureMsgPack() (closes #358)
				
					
				
			This commit is contained in:
		
							
								
								
									
										25
									
								
								src/ArduinoJson/StringStorage/StringCopier.hpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								src/ArduinoJson/StringStorage/StringCopier.hpp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| // ArduinoJson - arduinojson.org | ||||
| // Copyright Benoit Blanchon 2014-2018 | ||||
| // MIT License | ||||
|  | ||||
| #pragma once | ||||
|  | ||||
| namespace ArduinoJson { | ||||
| namespace Internals { | ||||
|  | ||||
| template <typename TJsonBuffer> | ||||
| class StringCopier { | ||||
|  public: | ||||
|   StringCopier(TJsonBuffer& jb) : _jb(&jb) {} | ||||
|  | ||||
|   typedef typename TJsonBuffer::String String; | ||||
|  | ||||
|   String startString() { | ||||
|     return _jb->startString(); | ||||
|   } | ||||
|  | ||||
|  private: | ||||
|   TJsonBuffer* _jb; | ||||
| }; | ||||
| }  // namespace Internals | ||||
| }  // namespace ArduinoJson | ||||
		Reference in New Issue
	
	Block a user