6 lines
167 B
Crystal
6 lines
167 B
Crystal
|
# Input to IPC network packets.
|
||
|
buffer = Bytes.new 1_000_000
|
||
|
len = STDIN.read buffer
|
||
|
STDOUT.write_bytes len, IO::ByteFormat::BigEndian
|
||
|
STDOUT.write buffer[0.. len -1]
|