Exemple #1
0
 public zero_copy_buffer()
 {
     buffer = new byte[65536];
       data_len = 65536;
       read_len = 0;
       write_len = 0;
       value = new UType();
       this.trace_info_count = 64;
       trace_infos = new trace_info[64];
       trace_build = new StringBuilder();
       error_code = error_code_t.success;
 }
Exemple #2
0
 public zero_copy_buffer(byte[] buf , int size = -1)
 {
     if(size == -1)
       {
     size = buf.Length;
       }
       buffer = buf;
       data_len = buf.Length;
       read_len = 0;
       write_len = 0;
       value = new UType();
       this.trace_info_count = 0;
       trace_infos = new trace_info[64];
       error_code = error_code_t.success;
 }
Exemple #3
0
 public zero_copy_buffer(byte[] buf)
 {
     buffer = buf;
       data_len = buf.Length;
       read_len = 0;
       write_len = 0;
       value = new UType();
       this.trace_info_count = 64;
       trace_infos = new trace_info[64];
       error_code = error_code_t.success;
 }