Raised This Month: $ Target: $400
 0% 

[INC] ByteBuffer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 04-01-2016 , 12:51   Re: [INC] ByteBuffer
Reply With Quote #1

Quote:
Originally Posted by d_a_parker View Post
Hello!

Just a quick question, is it possible to get the length of a ByteBuffer? I thought maybe you could call ReadByte() in a loop with a counter until you reach the end of the buffer, but what exactly will happen when ReadByte() is called beyond the end?

Thanks!
All buffers have the same length, MAX_BUFFER_LENGTH, which defaults to 1024 bytes. You're responsible for keeping track of the maximum cursor position that holds any meaningful data.
__________________
Dr. McKay is offline
d_a_parker
Junior Member
Join Date: Aug 2009
Location: Utica, NY (USA)
Old 04-01-2016 , 14:37   Re: [INC] ByteBuffer
Reply With Quote #2

I thought of that right after I posted the question. Makes sense. Thanks Doc!
d_a_parker is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode