Update MediaWiki page 'Data Types'

This commit is contained in:
Dirk 2012-08-24 15:40:27 +00:00 committed by moparisthebest
parent 5626c6fc5a
commit c9d8a726a6
1 changed files with 9 additions and 1 deletions

View File

@ -108,4 +108,12 @@ Middle endian big int: C3 D4 A1 B2
Middle endian small int: B2 A1 D4 C3
(A1 smallest D4 biggest byte)
(A1 smallest D4 biggest byte)
== Bit Access ==
=== Initiating Bit Access ===
Whenever data is to be sent to the server or to the client using bits; the stream needs to be prepared by setting the bit position. The bit position can be calculated by grabbing the current buffer position and multiplying it by 8. This can be seen below.
int bitPos = bufferPos * 8;