Beispiel #1
0
 /// <summary>
 /// Send a chunk of data after calling the method StartChunkResponse
 /// </summary>
 /// <param name="buffer">A buffer data</param>
 /// <returns>The data size in byte</returns>
 /// <remarks>You must call the method StartChunkResponse before calling this method</remarks>
 public uint SendChunk(byte[] buffer)
 {
     if (buffer == null || buffer.Length == 0)
     {
         return(0);
     }
     unsafe
     {
         fixed(byte *p = buffer)
         {
             return(ServerCoreLoader.SendHTTPChunk(Handle, p, (uint)buffer.Length));
         }
     }
 }