Changeset 15 for trunk/src/xmlbuffer.c


Ignore:
Timestamp:
Jan 11, 2008, 6:16:25 AM (11 years ago)
Author:
cameron
Message:

Bytespace scanning in XML declarations; various updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/xmlbuffer.c

    r4 r15  
    4848}
    4949
    50 int XML_Buffer::PrepareBytes(int bytes_to_prepare) {
    51   int bytes_left = buffer_bytes - current_pos;
     50int XML_Buffer::PrepareBytes(int position, int bytes_to_prepare) {
     51  int bytes_left = buffer_bytes - position;
     52  current_pos = position;
    5253  if (bytes_to_prepare > bytes_left) {
    5354    return bytes_left;
     
    5859}
    5960
    60 unsigned char * XML_Buffer::GetBytePtr(int pos) {
    61   current_pos = pos;
    62   return &ByteBuffer[current_pos];
     61unsigned char * XML_Buffer::BytePtr(int pos) {
     62  return &ByteBuffer[pos];
    6363}
Note: See TracChangeset for help on using the changeset viewer.