Welcome, Guest. Please login or register.

Author Topic: Counting on AllocVec's size memo..  (Read 13692 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show all replies
Counting on AllocVec's size memo..
« on: December 22, 2006, 01:58:08 PM »
I was thinking on ways to keep track of a structs size and reminded that AllocVec keeps the size of allocated data in the pointer it returns - 1 IIRC. Probably a bit of a hack couting on it or it's not gonna change in the foresenable future, what do you guys think ?
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show all replies
Re: Counting on AllocVec's size memo..
« Reply #1 on: December 22, 2006, 02:15:31 PM »
- 4 LONGs or BYTES ?

Where is the OS4 one ? Does it have some function to get the size (2 maintain future compatibility) ?
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show all replies
Re: Counting on AllocVec's size memo..
« Reply #2 on: December 22, 2006, 02:27:27 PM »
@Piru
Screw it, post as Koafder anyway and put a comment in the beggining if you want or something...

\\"We made Amiga, they {bleep}ed it up\\"
 

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show all replies
Re: Counting on AllocVec's size memo..
« Reply #3 on: December 22, 2006, 02:28:03 PM »
Just for now of course...
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show all replies
Re: Counting on AllocVec's size memo..
« Reply #4 on: December 22, 2006, 03:19:32 PM »
Hi. It seems that I won't be using this as allocated size is obviously different from object size a whole bunch of times, as pointed by Rogue (I asked if there was some OS4 way of knowing the size in AW.net).

\\"We made Amiga, they {bleep}ed it up\\"