Re: Comparing byte arrays

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 04/05/04


Date: Mon, 5 Apr 2004 11:35:33 +0100

Cor <non@non.com> wrote:
> > The only tricky bit would be taking
> > into account that a Read from a stream might not return as much data as
> > you want it to.
>
> That one I was thinking later on, but a 00 byte in a string stays there so
> the string will have that length but only is not showable.

I'm not sure how that's relevant, to be honest...

> (Although I have
> thought to check if what I say above is true, however I think we said enough
> about this). I never did bring it as an ideal methode, only if you real want
> to do it without a for loop, this was also a possibility.

If you don't mind it being fundamentally broken :)

-- 
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


Relevant Pages

  • Re: Loading a Remote file
    ... If I use Response.Write to display the HTML Contents, ... // Create a new stream to write to the file ... // Read contents of file into a string ... or the account IIS is using. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Loading a Remote file
    ... If I use Response.Write to display the HTML Contents, ... // Create a new stream to write to the file ... // Read contents of file into a string ... or the account IIS is using. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Comparing byte arrays
    ... > into account that a Read from a stream might not return as much data as ... That one I was thinking later on, but a 00 byte in a string stays there so ... Cor ...
    (microsoft.public.dotnet.general)
  • Re: Question about design, defmacro, macrolet, and &environment
    ... "Expects to find the literal string on the stream." ... (defun send (string &optional stream) ... (declaim (inline make-adjustable-string)) ...
    (comp.lang.lisp)
  • Re: Strange problem when not in debugger
    ... private string huidigWeb; ... int buffLength = 2048; ... // Opens a file stream to read the file to be uploaded ...
    (microsoft.public.dotnet.languages.csharp)