18 Replies
What Array.Copy does?
BitConverter,GetBytes?
Can someone make that but in Python?
i already tried googling
the first line creates an empty array with the size of data's length plus 5 bytes.
then copies the bytes of
type
into that array and specifies the length to be 4
is this a Minecraft server software?
the second array copy copies data from index 0 to packet data from index 4 with data's lengthso its:
huh
no
it has been quite a while since I did anything in python
frick
does .insert convert
type
into bytes?a.insert(bytes(type)) ?
dynamic typed languages confuse me ;-;
¯\_(ツ)_/¯
ok frick
we arent gonna write your whole code for you. Array.Copy copies from first array to second, optionally with a start point and a length
a = ['okay', 'smh']
c sharp magic
b = a
print(b)
['okay', 'smh']
Well, now I know why I'm not doing any Python
It would be something like this:
to_bytes
can also accept little and big endian, see https://docs.python.org/3/library/stdtypes.html#int.to_bytes.
Good luck.oke
im creating unofficial api for a game and i dont want someone to steal my idea so i wont tell what game
api/lib
works
ty
unofficial apiI hope their ToS allow you to do this?
yes i asked the devs
Aight 👍
they didnt even start egoing for being a small dev lol
unlike other
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.