mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:52:45 +00:00 
			
		
		
		
	ByteBuffer: Remove pointer() in favor of data()
We had two ways to get the data inside a ByteBuffer. That was silly.
This commit is contained in:
		
							parent
							
								
									dd696e7c75
								
							
						
					
					
						commit
						8f45a259fc
					
				
					 30 changed files with 89 additions and 92 deletions
				
			
		|  | @ -796,7 +796,7 @@ static ssize_t write_sys_string(InodeIdentifier inode_id, const ByteBuffer& data | |||
|     { | ||||
|         auto* lockable_string = reinterpret_cast<Lockable<String>*>(variable.address); | ||||
|         LOCKER(lockable_string->lock()); | ||||
|         lockable_string->resource() = String((const char*)data.pointer(), data.size()); | ||||
|         lockable_string->resource() = String((const char*)data.data(), data.size()); | ||||
|     } | ||||
|     variable.notify(); | ||||
|     return data.size(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling