| 4D v20.1BLOB to integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D v20.1
 BLOB to integer 
         | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BLOB to integer ( blob ; ordreOctet {; offset} ) -> Résultat | ||||||||
| Paramètre | Type | Description | ||||||
| blob | BLOB |   | BLOB duquel obtenir la valeur entière | |||||
| ordreOctet | Entier long |   | 0 Ordre d'octets mode natif 1 Ordre d'octets Macintosh 2 Ordre d'octets PC | |||||
| offset | Variable |   | Offset (en octets) dans le BLOB | |||||
|   | Nouvel offset après la lecture | |||||||
| Résultat | Entier |   | Valeur entière (2 octets) | |||||
| Constante | Type | Valeur | 
| Macintosh byte ordering | Entier long | 1 | 
| Native byte ordering | Entier long | 0 | 
| PC byte ordering | Entier long | 2 | 
L'exemple suivant lit 20 valeurs entières d'un BLOB à partir de l'offset 0x200 :
 $vlOffset:=0x200
 For($viBoucle;0;19)
    $viValeur:=BLOB to integer(vxUnBlob;PC byte ordering;$vlOffset)
  ` Faire quelque chose avec $viValeur
 End for
									BLOB to longint
									
									BLOB to real
									
									BLOB to text
									
									INTEGER TO BLOB
									
									LONGINT TO BLOB
									
									REAL TO BLOB
									
									TEXT TO BLOB
									
	Produit :  4D
	Thème :  BLOB
	Numéro :  
        549
        
        
        
	
	Créé :  4D v6
Byteswapping, Entier
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	4D - Langage ( 4D v20)
	
	
	4D - Langage ( 4D v20.1)
	
	
	
 Ajouter un commentaire
Ajouter un commentaire