Changeset 292 for CoolStreaming/UBitStream.pas
- Timestamp:
- Nov 8, 2011, 6:44:59 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CoolStreaming/UBitStream.pas
r291 r292 262 262 TBytes(Buffer)[I] := TBytes(Buffer)[I] or 263 263 ((Integer(Data) and ((1 shl PosInByte) - 1)) shl (8 - PosInByte)); 264 if (I = (ByteCount - 1)) and (PosInByte > 0)then265 TBytes(Buffer)[I] := TBytes(Buffer)[I] and ((1 shl (Count mod 8)) - 1);264 if (I = (ByteCount - 1)) then 265 TBytes(Buffer)[I] := TBytes(Buffer)[I] and ((1 shl (Count - 8 * (ByteCount - 1))) - 1); 266 266 end; 267 267 Inc(FPosition, Count);
Note:
See TracChangeset
for help on using the changeset viewer.