DEADSOFTWARE

added license info
[d2df-sdl.git] / src / engine / e_fixedbuffer.pas
index 63570f7ec541a652724ba2421c59114b9986a6ec..e71445f08a171eed516a0416b060a1b7fc0c8b62 100644 (file)
@@ -1,3 +1,19 @@
+(* Copyright (C)  DooM 2D:Forever Developers
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *)
+{$MODE DELPHI}
 unit e_fixedbuffer;
 
 interface
@@ -35,6 +51,7 @@ procedure e_Buffer_Write(B: pTBuffer; V: LongWord); overload;
 procedure e_Buffer_Write(B: pTBuffer; V: ShortInt); overload;
 procedure e_Buffer_Write(B: pTBuffer; V: SmallInt); overload;
 procedure e_Buffer_Write(B: pTBuffer; V: LongInt); overload;
+procedure e_Buffer_Write(B: pTBuffer; V: Int64); overload;
 
 procedure e_Buffer_Write(B: pTBuffer; V: string); overload;
 
@@ -50,6 +67,7 @@ function  e_Buffer_Read_LongWord(B: pTBuffer): LongWord;
 function  e_Buffer_Read_ShortInt(B: pTBuffer): ShortInt;
 function  e_Buffer_Read_SmallInt(B: pTBuffer): SmallInt;
 function  e_Buffer_Read_LongInt(B: pTBuffer): LongInt;
+function  e_Buffer_Read_Int64(B: pTBuffer): Int64;
 
 function  e_Buffer_Read_String(B: pTBuffer): string;
 
@@ -137,6 +155,10 @@ procedure e_Buffer_Write(B: pTBuffer; V: LongInt); overload;
 begin
   e_Buffer_Write_Generic(B, V, 4);
 end;
+procedure e_Buffer_Write(B: pTBuffer; V: Int64); overload;
+begin
+  e_Buffer_Write_Generic(B, V, 8);
+end;
 
 procedure e_Buffer_Write(B: pTBuffer; V: string); overload;
 var
@@ -202,6 +224,10 @@ function e_Buffer_Read_LongInt(B: pTBuffer): LongInt;
 begin
   e_Buffer_Read_Generic(B, Result, 4);
 end;
+function e_Buffer_Read_Int64(B: pTBuffer): Int64;
+begin
+  e_Buffer_Read_Generic(B, Result, 8);
+end;
 
 function e_Buffer_Read_String(B: pTBuffer): string;
 var