Added boolean byte size.
This commit is contained in:
		
							parent
							
								
									a9fbcb8c2e
								
							
						
					
					
						commit
						275316a531
					
				
							
								
								
									
										2
									
								
								pom.xml
								
								
								
								
							
							
						
						
									
										2
									
								
								pom.xml
								
								
								
								
							| 
						 | 
				
			
			@ -6,7 +6,7 @@
 | 
			
		|||
 | 
			
		||||
    <groupId>nl.andrewl</groupId>
 | 
			
		||||
    <artifactId>record-net</artifactId>
 | 
			
		||||
    <version>1.3.3</version>
 | 
			
		||||
    <version>1.3.4</version>
 | 
			
		||||
 | 
			
		||||
    <properties>
 | 
			
		||||
        <maven.compiler.source>17</maven.compiler.source>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -66,6 +66,8 @@ public class MessageUtils {
 | 
			
		|||
			return Short.BYTES;
 | 
			
		||||
		} else if (o instanceof Long) {
 | 
			
		||||
			return Long.BYTES;
 | 
			
		||||
		} else if (o instanceof Boolean) {
 | 
			
		||||
			return 1;
 | 
			
		||||
		} else if (o instanceof String) {
 | 
			
		||||
			return getByteSize((String) o);
 | 
			
		||||
		} else if (o instanceof UUID) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue