Byte Order (Endianness)

Sdílet
Vložit
  • čas přidán 22. 07. 2024
  • This computer science lesson explains what is meant by byte order, also known as endianness. It covers the difference between storing data in memory, or files, either in big-endian format or little-endian format. The historical advantages of each byte order are discussed, but the video also explains why both byte orders are equally as good with today’s computers. The endianness used when transmitting data on computer networks, that is Network byte order (big endian), is also described.
    Chapters:
    00:00 Origin of the terms Big Endian and Little Endian
    01:34 Definition of Big Endian and Little Endian
    03:50 Converting between binary and hexadecimal
    04:08 Storing bytes in the computer’s memory
    06:15 Adding bytes together
    10:53 Network byte order
    12:08 Endianness and file types

Komentáře • 35

  • @TekCroach
    @TekCroach Před 20 dny

    A man with a depth undoubtedly... Love how clearly and interestingly you explain things. It is always fascinating to see that many technical terms (in technology and science) are coined in somewhat "childish" or "playful" manner having a nice story behind. Excellent videos! Thanks. :)

  • @AjinkyaMahajan
    @AjinkyaMahajan Před 2 lety +17

    For the first time in my life, this is crystal clear.
    Wonderful explanation✨✨

  • @GelatinousSSnake
    @GelatinousSSnake Před 2 lety +8

    Your whole channel is a treasure trove of knowledge. Thanks for taking the time to produce and upload these videos.

  • @Anand-fy8oo
    @Anand-fy8oo Před 2 lety +3

    Loved the explanation… I know these concepts, but still find it fascinating

  • @y.x3476
    @y.x3476 Před 2 lety +1

    Wonderful lecture!

  • @carlamramos-bezares7852
    @carlamramos-bezares7852 Před 9 měsíci +1

    Great video! Thank you

  • @jude2350
    @jude2350 Před 2 lety +1

    Love your videos man, keep it up

  • @michaelofcork7093
    @michaelofcork7093 Před 2 lety

    Fantastic effort!

  • @michaelkclark6981
    @michaelkclark6981 Před 2 lety +3

    Thank you…

  • @youtubepooppismo5284
    @youtubepooppismo5284 Před 2 lety +1

    my professor had the brilliant idea to invent the "middle-endian" (something like b3, b1, b0, b2) which was used in a simple file format he had invented and we had to write a decoder for that file format in java as a test

    • @ComputerScienceLessons
      @ComputerScienceLessons  Před 2 lety

      Sounds like chewing gum for the mind, but there is probably a good reason it isn't really done like this. :)KD

  • @_okedata
    @_okedata Před 2 lety +5

    i dont understand how little endian removes the need to wait for a carry bit

    • @ag1237
      @ag1237 Před rokem

      I thought it is because of the fact that you Start to calculate on the lowest adress. If a number is stored in Big Endian you Start calculating on the MSB and you have to wait for All the carry bits that are calculated in the higher adresses following. Until you are at the highest adress where the LSB is stored. Can somebody correct because that's the explanation that came to my head?

  • @austinfernando8406
    @austinfernando8406 Před 2 lety +2

    interestingly gulliver's travels also depicts something like a computer although he uses it as a satirical device, the inventor of it wants to write useful scholarly books by calculating every permutation of words/letters mechanically and recording when they make sense

  • @mikey10006
    @mikey10006 Před 2 lety

    You should do a video on pipelining

  • @OlaFPV
    @OlaFPV Před 2 lety +1

    How does the byte ordering relate to eggs besides being mentioned in the paper? Big endian numbers are the opposite of an egg with it's big end up, as the larger numbers are at the bottom (lower memory address)?

  • @Ragu_Rules
    @Ragu_Rules Před rokem +2

    Excellent

  • @nischalsehrawat2130
    @nischalsehrawat2130 Před 2 lety

    @11:07 big endian has LSB stored at the highest memory address so AA (106) is LSB not MSB or do I understand it wrong ?

    • @viridianite
      @viridianite Před rokem

      That animation got me confused too. Given that any data transfer in networking uses big endian (or network byte order), my understanding was the the first byte to be transmitted would be DD at location 103 (instead of AA at location 106), then CC at location 104, and so on since in big endian, the most significant byte is stored at the lower memory address (or alternatively, the least significant byte is stored at the higher memory address).

  • @danielpopa1320
    @danielpopa1320 Před rokem

    10:47 -just a reminder for myself

  • @mikey10006
    @mikey10006 Před 2 lety

    A quick life hack about hexadecimal! Each digit represents 4 bits in binary if u ever want have a na easier time with conversions! I know it was said in the video but you really don't appreciate this fact until it bites you in the ass

  • @SteveMacSticky
    @SteveMacSticky Před 2 lety +1

    I don't care for Johnathan Swift thank you very much

  • @MrVarunparmar
    @MrVarunparmar Před 2 lety +2

    You are smarter than Neil Gray Tyson
    Who thinks numericals comes from Arabs numericals rather Hindu numericals.

  • @Skualo-77
    @Skualo-77 Před 2 lety

    😷🍌