none
bytes in a byte[] RRS feed

  • Question

  • Hi

    maybe this will sound idiot.. but..

    The number of byte recived( from client ina  byte[] buffer) is the buffer.Length??
    Thursday, April 6, 2006 6:04 PM

Answers

All replies

  • buffer.Length will return the number of elements in te byte array

    Thursday, April 6, 2006 6:11 PM
  • What function are you using ?

     

    Normaly this type of function return an integer containing the number of byte read. buffer.Length is the length of your buffer, maybe you allocated 100 byte for only read 10 byte, this way buffer.Length will return 100 not 10, but this all depend on which function your using.

    Thursday, April 6, 2006 8:32 PM