summaryrefslogtreecommitdiffstats
path: root/src/ByteBuffer.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-08-23Assume POWER is big-endian, so it compiles.Alexander Harkness1-1/+1
[reference](http://nadeausoftware.com/articles/2012/02/c_c_tip_how_detect_processor_type_using_compiler_predefined_macros#POWER) We may want to come back and figure out if the processor is running in little-endian mode, but for now assume they're big-endian.
2014-07-17Normalized comments.madmaxoft1-1/+1
This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
2014-06-19Nullify deleted pointers.archshift1-0/+1
2014-06-11Removed assert that is now informed by type systemworktycho1-1/+0
2014-05-01Fixed warnings in cByteBuffer.madmaxoft1-13/+13
2014-04-27Removed Old AssertsTycho1-2/+0
Removed asserts about non-negative numbers on what are now unsigned types Fixes CID 43608
2014-04-25Small changes; warning fixing.archshift1-1/+1
2014-04-24cByteBuffer uses void * instead of char * in data interface.madmaxoft1-4/+5
This makes it compatible with any pointer type.
2014-04-24Changed cByteBuffer constructor to take a size_t instead of int.madmaxoft1-1/+1
2014-03-14Fixed xofts issuesTycho1-1/+1
2014-03-11Fixed more Format issuesTycho1-1/+1
2014-03-10Fixed test assertsTycho1-3/+0
2014-03-10Fixed assertTycho1-14/+17
2014-03-10Fixed Alignment issue in ByteBufferTycho1-1/+1
2014-03-09FIxed int in testTycho1-1/+1
2014-03-08Added staticTycho1-1/+1
2014-03-08Added tons more asserts to bytebufferTycho1-7/+17
2014-03-08Enabled self test of bytebufferTycho1-1/+1
2014-03-08Fixed issues with int vs size_t and a few other warningsTycho1-10/+10
2014-03-08Actually Fixed ByteBufferTycho1-3/+3
2014-03-07WarningsTycho1-5/+5
2014-01-26cByteBuffer has more self-tests.madmaxoft1-6/+29
2013-12-31removed unneccisary castTycho Bickerstaff1-1/+2
2013-12-31fixed warnings in bytebuffer.cppTycho Bickerstaff1-3/+3
2013-12-13Fixed threading issues affecting cProtocol172.madmaxoft1-0/+22
2013-12-04Hopefully fixed the sparc not being detectedAlexander Harkness1-1/+3
2013-11-29Fixed an off-by-one error in cByteBuffer.madmaxoft1-1/+1
Could have caused random protocol errors and maybe even crashes.
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-24RCONClient: Initial implementation.madmaxoft1-0/+54
Fix #79.
2013-11-03cByteBuffer: Fixed GetUsedSpace() off-by-one error.madmaxoft1-1/+1
2013-10-31ByteBuffer: Writing a string doesn't modify it (missing const).madmaxoft1-1/+1
2013-10-28MC uses VarInts only up to 32-bits.madmaxoft1-9/+9
2013-10-28cByteBuffer: Added the VarInt and VarUTF8String type reading and writing.madmaxoft1-2/+128
This implements #296.
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-661/+661
2012-12-27ProtoProxy: Fixed 1.4.6 compatibility with vehicles, logging for entity metadata.madmaxoft@gmail.com1-0/+5
Also removed logging to console, it was slowing the program too much. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1108 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-22ByteBuffer: Fixed buffer overrun possibility.madmaxoft@gmail.com1-1/+3
http://forum.mc-server.org/showthread.php?tid=633&pid=5473#pid5473 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1063 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-22More ByteBuffer checks: Is it used from a single thread only?madmaxoft@gmail.com1-0/+69
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1062 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-20Aggressive debug mode cByteBuffer validity checking.madmaxoft@gmail.com1-21/+88
Hopefully fixed the "BytesToEndOfBuffer" assert. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1057 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-10Fixed a bug introduced in rev 1023 (ThuGie's crash)madmaxoft@gmail.com1-4/+7
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1029 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-07Hotfix for ThuGie's crash, with a sanity check in debug mode.madmaxoft1-1/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1023 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-25Fixed up a few valgrind warningsmadmaxoft@gmail.com1-1/+1
( http://forum.mc-server.org/showthread.php?tid=598&pid=5071#pid5071 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@1010 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-06Fixed slot parsing in 1.2.5 causing weird behavior ( http://forum.mc-server.org/showthread.php?tid=551&pid=4413#pid4413 )madmaxoft@gmail.com1-0/+5
Also added some asserts into ByteBuffer so that this won't happen again. git-svn-id: http://mc-server.googlecode.com/svn/trunk@842 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-04Debugging in cByteBuffer::Write(); added the ReadAgain() method to allow ProtoProxy re-send the data it has parsed.madmaxoft@gmail.com1-0/+28
git-svn-id: http://mc-server.googlecode.com/svn/trunk@833 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-02Added writing support to cByteBuffer (will be used by ProtoProxy)madmaxoft@gmail.com1-3/+137
git-svn-id: http://mc-server.googlecode.com/svn/trunk@825 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-27Cut out all packet handling to a separate cProtocol descendantmadmaxoft@gmail.com1-0/+9
git-svn-id: http://mc-server.googlecode.com/svn/trunk@796 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-18Packet refactoring, phase two, partial. Rewritten a few packet handling functions not to use cPacket-descendant objects.madmaxoft@gmail.com1-0/+14
This breaks plugin API! Plugins need to modify their hook functions to match those used in the Core plugin git-svn-id: http://mc-server.googlecode.com/svn/trunk@750 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-17Packets now parse themselves from a cByteBuffer object (1st part of packeting rewrite, http://forum.mc-server.org/showthread.php?tid=524 )madmaxoft@gmail.com1-0/+324
git-svn-id: http://mc-server.googlecode.com/svn/trunk@744 0a769ca7-a7f5-676a-18bf-c427514a06d6