mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 19:52:25 -05:00 
			
		
		
		
	Pg to bun (#148)
* start moving to bun * changing more stuff * more * and yet more * tests passing * seems stable now * more big changes * small fix * little fixes
This commit is contained in:
		
					parent
					
						
							
								071eca20ce
							
						
					
				
			
			
				commit
				
					
						2dc9fc1626
					
				
			
		
					 713 changed files with 98694 additions and 22704 deletions
				
			
		
							
								
								
									
										37
									
								
								vendor/github.com/jackc/pgproto3/v2/big_endian.go
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								vendor/github.com/jackc/pgproto3/v2/big_endian.go
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,37 @@ | |||
| package pgproto3 | ||||
| 
 | ||||
| import ( | ||||
| 	"encoding/binary" | ||||
| ) | ||||
| 
 | ||||
| type BigEndianBuf [8]byte | ||||
| 
 | ||||
| func (b BigEndianBuf) Int16(n int16) []byte { | ||||
| 	buf := b[0:2] | ||||
| 	binary.BigEndian.PutUint16(buf, uint16(n)) | ||||
| 	return buf | ||||
| } | ||||
| 
 | ||||
| func (b BigEndianBuf) Uint16(n uint16) []byte { | ||||
| 	buf := b[0:2] | ||||
| 	binary.BigEndian.PutUint16(buf, n) | ||||
| 	return buf | ||||
| } | ||||
| 
 | ||||
| func (b BigEndianBuf) Int32(n int32) []byte { | ||||
| 	buf := b[0:4] | ||||
| 	binary.BigEndian.PutUint32(buf, uint32(n)) | ||||
| 	return buf | ||||
| } | ||||
| 
 | ||||
| func (b BigEndianBuf) Uint32(n uint32) []byte { | ||||
| 	buf := b[0:4] | ||||
| 	binary.BigEndian.PutUint32(buf, n) | ||||
| 	return buf | ||||
| } | ||||
| 
 | ||||
| func (b BigEndianBuf) Int64(n int64) []byte { | ||||
| 	buf := b[0:8] | ||||
| 	binary.BigEndian.PutUint64(buf, uint64(n)) | ||||
| 	return buf | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue