Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

c#

Name: Anonymous 2010-06-01 21:26

Anyone got a suggestion for a efficient way to store a bunch of numbers (bytes), with the key being a byte? Using C#

Name: Anonymous 2010-06-02 3:12

>>1

OK nigger, don't use a fucking Hashtable. You want Dictionary<byte, List<byte>>

Dictionary implements a hashtable for lookups. Hashtable is for fags because it boxes and unboxes everything as object, which will add conciderable overhead for your fucking bytes (this isn't Java you faggot [even Java generics box and unbox everything as object because it was made by idiots]).

            var fagtionary = new Dictionary<byte, List<byte>>();
            fagtionary.Add(255, new List<byte>() { 1, 2, 3, 4, 5 });
            fagtionary[255].Add(6);
            Console.WriteLine(fagtionary[255][fagtionary[255].Count - 1].ToString());

Outputs: 6

>>9

For fucks sake nigger. char is not a byte, if it was they would call it byte and not char. A char is 2 bytes.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List