Vous êtes sur le site Web historique de la documentation de 4D. Les documentations sont progressivement déplacées vers developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v19.8
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 v19)
4D - Langage ( 4D v19.1)
4D - Langage ( 4D v19.4)
4D - Langage ( 4D v19.5)
4D - Langage ( 4D v19.6)
4D - Langage ( 4D v19.7)
4D - Langage ( 4D v19.8)