Add way to count coral::fixed_buffer
This commit is contained in:
		
							parent
							
								
									da3e87fe3b
								
							
						
					
					
						commit
						2f884f92a1
					
				| @ -27,6 +27,13 @@ export namespace coral { | ||||
| 			return this->data; | ||||
| 		} | ||||
| 
 | ||||
| 		/**
 | ||||
| 		 * Returns the number of bytes in the buffer that have been filled with data. | ||||
| 		 */ | ||||
| 		usize count() const { | ||||
| 			return this->filled; | ||||
| 		} | ||||
| 
 | ||||
| 		/**
 | ||||
| 		 * Returns the tail pointer of the buffer data. | ||||
| 		 */ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user