Ignore:
Timestamp:
Feb 22, 2015, 11:05:49 PM (9 years ago)
Author:
chronos
Message:
  • Remove: Trailing spaces from end of lines from all files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/MemoryStream.php

    r553 r815  
    55  public $Data;
    66  public $Position;
    7    
     7
    88  function __construct()
    99  {
    1010    $this->Data = '';
    1111    $this->Position = 0;
    12   } 
    13    
    14   function __destruct() 
     12  }
     13
     14  function __destruct()
    1515  {
    1616  }
    17  
     17
    1818  public function ReadBlock($Count)
    1919  {
     
    2222    return($Result);
    2323  }
    24  
     24
    2525  public function ReadByte()
    2626  {
     
    2828    $this->Position = $this->Position + 1;
    2929    return($Result);
    30   } 
    31    
     30  }
     31
    3232  public function ReadUint()
    3333  {
     
    3636    return($val[1]);
    3737  }
    38    
     38
    3939  public function ReadInt()
    4040  {
     
    4242    $this->Position = $this->Position + 4;
    4343    return($val[1]);
    44   } 
    45    
     44  }
     45
    4646  public function ReadFloat()
    4747  {
     
    5050    return($val[1]);
    5151  }
    52    
     52
    5353  public function ReadChar()
    5454  {
     
    7575    $this->Data = substr_replace($this->Data, $Value, $this->Position, $Count);
    7676    $this->Position = $this->Position + $Count;
    77   } 
     77  }
    7878
    7979  public function WriteByte($Value)
     
    8181    $this->Data[$this->Position] = pack('C*', $Value);
    8282    $this->Position++;
    83   } 
    84    
     83  }
     84
    8585  public function WriteUint($Value)
    8686  {
    8787    $this->WriteBlock(pack('V*', $Value), 4);
    8888  }
    89    
     89
    9090  public function WriteInt($Value)
    9191  {
    9292    $this->WriteBlock(pack('I*', $Value), 4);
    93   } 
    94    
     93  }
     94
    9595  public function WriteFloat($Value)
    9696  {
    9797    $this->WriteBlock(pack('f*', $Value), 4);
    9898  }
    99    
     99
    100100  public function WriteChar($Value)
    101101  {
    102102    $this->Data[$this->Position] = pack('C*', $Value);
    103103    $this->Position++;
    104   }   
    105  
     104  }
     105
    106106  public function WriteLine($Value)
    107107  {
     
    113113    $this->Position = $Position;
    114114  }
    115  
     115
    116116  public function GetPosition()
    117117  {
    118118    return($this->Position);
    119119  }
    120  
     120
    121121  public function GetSize()
    122122  {
Note: See TracChangeset for help on using the changeset viewer.