Extension methods to optimize the access to the contents of an IArea of a database store.  
 More...
Extension methods to optimize the access to the contents of an IArea of a database store. 
Definition at line 24 of file AreaExtensions.cs.
 
  
  
      
        
          | static byte Deveel.Data.Store.AreaExtensions.ReadByte  | 
          ( | 
          this IArea  | 
          area | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Reads a single byte from the area. 
- Parameters
 - 
  
    | area | The source area from where to read. | 
  
   
- Returns
 - Returns a byte read from the area. 
 
Definition at line 32 of file AreaExtensions.cs.
   33             var bytes = 
new byte[1];
 
   34             area.Read(bytes, 0, 1);
 
 
 
 
  
  
      
        
          | static short Deveel.Data.Store.AreaExtensions.ReadInt2  | 
          ( | 
          this IArea  | 
          area | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Reads a 2-byte integer from the area. 
- Parameters
 - 
  
    | area | The source area from where to read. | 
  
   
- Returns
 - Returns a short read from the area. 
 
Definition at line 45 of file AreaExtensions.cs.
   46             var bytes = 
new byte[2];
 
   47             area.Read(bytes, 0, 2);
 
   48             return BitConverter.ToInt16(bytes, 0);
 
 
 
 
  
  
      
        
          | static int Deveel.Data.Store.AreaExtensions.ReadInt4  | 
          ( | 
          this IArea  | 
          area | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Reads a 4-byte integer from the area. 
- Parameters
 - 
  
    | area | The source area from where to read. | 
  
   
- Returns
 - Returns a int read from the area. 
 
Definition at line 58 of file AreaExtensions.cs.
   59             var bytes = 
new byte[4];
 
   60             area.Read(bytes, 0, 4);
 
   61             return BitConverter.ToInt32(bytes, 0);
 
 
 
 
  
  
      
        
          | static long Deveel.Data.Store.AreaExtensions.ReadInt8  | 
          ( | 
          this IArea  | 
          area | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Reads a 8-byte integer from the area. 
- Parameters
 - 
  
    | area | The source area from where to read. | 
  
   
- Returns
 - Returns a long read from the area. 
 
Definition at line 71 of file AreaExtensions.cs.
   72             var bytes = 
new byte[8];
 
   73             area.Read(bytes, 0, 8);
 
   74             return BitConverter.ToInt64(bytes, 0);
 
 
 
 
  
  
      
        
          | static void Deveel.Data.Store.AreaExtensions.WriteByte  | 
          ( | 
          this IArea  | 
          area,  | 
         
        
           | 
           | 
          byte  | 
          value  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
Writes a single byte into the given area. 
- Parameters
 - 
  
    | area | The destination area where to write. | 
    | value | The value to be written. | 
  
   
Definition at line 82 of file AreaExtensions.cs.
   83             var bytes = 
new byte[1] {value};
 
   84             area.Write(bytes, 0, 1);
 
 
 
 
  
  
      
        
          | static void Deveel.Data.Store.AreaExtensions.WriteInt2  | 
          ( | 
          this IArea  | 
          area,  | 
         
        
           | 
           | 
          short  | 
          value  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
Writes a 2-byte integer into the given area. 
- Parameters
 - 
  
    | area | The destination area where to write. | 
    | value | The value to be written. | 
  
   
Definition at line 92 of file AreaExtensions.cs.
   93             var bytes = BitConverter.GetBytes(value);
 
   94             area.Write(bytes, 0, 2);
 
 
 
 
  
  
      
        
          | static void Deveel.Data.Store.AreaExtensions.WriteInt4  | 
          ( | 
          this IArea  | 
          area,  | 
         
        
           | 
           | 
          int  | 
          value  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
Writes a 4-byte integer into the given area. 
- Parameters
 - 
  
    | area | The destination area where to write. | 
    | value | The value to be written. | 
  
   
Definition at line 102 of file AreaExtensions.cs.
  103             var bytes = BitConverter.GetBytes(value);
 
  104             area.Write(bytes, 0, 4);
 
 
 
 
  
  
      
        
          | static void Deveel.Data.Store.AreaExtensions.WriteInt8  | 
          ( | 
          this IArea  | 
          area,  | 
         
        
           | 
           | 
          long  | 
          value  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
Writes a 8-byte integer into the given area. 
- Parameters
 - 
  
    | area | The destination area where to write. | 
    | value | The value to be written. | 
  
   
Definition at line 112 of file AreaExtensions.cs.
  113             var bytes = BitConverter.GetBytes(value);
 
  114             area.Write(bytes, 0, 8);
 
 
 
 
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Store/AreaExtensions.cs