# bf\_read

- **İngilizce aslı:** https://wiki.facepunch.com/gmod/bf_read
- **Çeviri tarihi:** 2025-09-08

Bu, bir mesaj alındığında [usermessage.Hook](https://gmod.tr/wiki/usermessage.Hook) fonksiyonuna aktarılan nesnedir. Mesajda saklanan her değeri sıralı bir şekilde içerir. Değerleri, yazdığınız sırayla okumanız gerekir.

> **KULLANIMDAN KALKTI:** Bunu kullanmamanızı tavsiye ederiz. Gelecekteki bir güncellemede değiştirilebilir veya kaldırılabilir.
> Bunun yerine [net](https://gmod.tr/wiki/net) kütüphanesini kullanmalısınız.

## Metotlar

[Angle](https://gmod.tr/wiki/Angle) bf_read:[ReadAngle](https://gmod.tr/wiki/bf_read:ReadAngle)()

Bit akışından (bitstream) bir açı nesnesi okur ve döndürür.

[boolean](https://gmod.tr/wiki/boolean) bf_read:[ReadBool](https://gmod.tr/wiki/bf_read:ReadBool)()

1 bit okur ve bu biti temsil eden bir bool (boolean) değeri döndürür.

[number](https://gmod.tr/wiki/number) bf_read:[ReadChar](https://gmod.tr/wiki/bf_read:ReadChar)()

İşaretli bir karakter (signed char) okur ve bu karakterin ASCII değerini temsil eden -127 ile 127 arasında bir sayı döndürür.

[Entity](https://gmod.tr/wiki/Entity) bf_read:[ReadEntity](https://gmod.tr/wiki/bf_read:ReadEntity)()

Bir varlık (entity) endeksini temsil eden bir short okur ve eşleşen varlık tanıtıcısını (handle) döndürür.

[number](https://gmod.tr/wiki/number) bf_read:[ReadFloat](https://gmod.tr/wiki/bf_read:ReadFloat)()

Bit akışından 4 baytlık bir float okur ve döndürür.

[number](https://gmod.tr/wiki/number) bf_read:[ReadLong](https://gmod.tr/wiki/bf_read:ReadLong)()

Bit akışından 4 baytlık bir long okur ve döndürür.

[number](https://gmod.tr/wiki/number) bf_read:[ReadShort](https://gmod.tr/wiki/bf_read:ReadShort)()

Bit akışından 2 baytlık bir short okur ve döndürür.

[string](https://gmod.tr/wiki/string) bf_read:[ReadString](https://gmod.tr/wiki/bf_read:ReadString)()

Bit akışından null ile sonlandırılmış bir string okur.

[Vector](https://gmod.tr/wiki/Vector) bf_read:[ReadVector](https://gmod.tr/wiki/bf_read:ReadVector)()

Bit akışından özel olarak kodlanmış bir vektör okur ve döndürür, bu fonksiyon normalleri göndermek için uygun değildir.

[Vector](https://gmod.tr/wiki/Vector) bf_read:[ReadVectorNormal](https://gmod.tr/wiki/bf_read:ReadVectorNormal)()

Bit akışından özel olarak kodlanmış bir vektör normali okur ve döndürür, bu fonksiyon bir konumu temsil eden vektörleri göndermek için uygun değildir.

bf_read:[Reset](https://gmod.tr/wiki/bf_read:Reset)()

Bit akışını tekrar okunabilmesi için başa sarar.

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/bf_read
