Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
13
37
source
stringclasses
6 values
category
stringclasses
49 values
instruction
stringclasses
397 values
output
stringclasses
890 values
luau-buffer-gen-00000
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 1 contiguous u8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 1 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 1 do local pos = offset + (i - 1) * 1 buffer.writeu8(b, pos, values[i]...
luau-buffer-gen-00001
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 2 contiguous u16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 4 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 2 do local pos = offset + (i - 1) * 2 buffer.writeu16(b, pos, values[i...
luau-buffer-gen-00002
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 3 contiguous u32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 12 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 3 do local pos = offset + (i - 1) * 4 buffer.writeu32(b, pos, values[...
luau-buffer-gen-00003
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 4 contiguous i8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 4 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 4 do local pos = offset + (i - 1) * 1 buffer.writei8(b, pos, values[i]...
luau-buffer-gen-00004
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 5 contiguous i16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 10 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 5 do local pos = offset + (i - 1) * 2 buffer.writei16(b, pos, values[...
luau-buffer-gen-00005
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 6 contiguous i32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 24 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 6 do local pos = offset + (i - 1) * 4 buffer.writei32(b, pos, values[...
luau-buffer-gen-00006
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 1 contiguous f32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 4 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 1 do local pos = offset + (i - 1) * 4 buffer.writef32(b, pos, values[i...
luau-buffer-gen-00007
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 2 contiguous f64 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 16 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 2 do local pos = offset + (i - 1) * 8 buffer.writef64(b, pos, values[...
luau-buffer-gen-00008
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 3 contiguous u8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 3 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 3 do local pos = offset + (i - 1) * 1 buffer.writeu8(b, pos, values[i]...
luau-buffer-gen-00009
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 4 contiguous u16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 8 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 4 do local pos = offset + (i - 1) * 2 buffer.writeu16(b, pos, values[i...
luau-buffer-gen-00010
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 5 contiguous u32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 20 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 5 do local pos = offset + (i - 1) * 4 buffer.writeu32(b, pos, values[...
luau-buffer-gen-00011
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 6 contiguous i8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 6 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 6 do local pos = offset + (i - 1) * 1 buffer.writei8(b, pos, values[i]...
luau-buffer-gen-00012
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 1 contiguous i16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 2 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 1 do local pos = offset + (i - 1) * 2 buffer.writei16(b, pos, values[i...
luau-buffer-gen-00013
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 2 contiguous i32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 8 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 2 do local pos = offset + (i - 1) * 4 buffer.writei32(b, pos, values[i...
luau-buffer-gen-00014
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 3 contiguous f32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 12 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 3 do local pos = offset + (i - 1) * 4 buffer.writef32(b, pos, values[...
luau-buffer-gen-00015
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 4 contiguous f64 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 32 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 4 do local pos = offset + (i - 1) * 8 buffer.writef64(b, pos, values[...
luau-buffer-gen-00016
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 5 contiguous u8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 5 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 5 do local pos = offset + (i - 1) * 1 buffer.writeu8(b, pos, values[i]...
luau-buffer-gen-00017
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 6 contiguous u16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 12 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 6 do local pos = offset + (i - 1) * 2 buffer.writeu16(b, pos, values[...
luau-buffer-gen-00018
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 1 contiguous u32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 4 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 1 do local pos = offset + (i - 1) * 4 buffer.writeu32(b, pos, values[i...
luau-buffer-gen-00019
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 2 contiguous i8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 2 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 2 do local pos = offset + (i - 1) * 1 buffer.writei8(b, pos, values[i]...
luau-buffer-gen-00020
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 3 contiguous i16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 6 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 3 do local pos = offset + (i - 1) * 2 buffer.writei16(b, pos, values[i...
luau-buffer-gen-00021
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 4 contiguous i32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 16 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 4 do local pos = offset + (i - 1) * 4 buffer.writei32(b, pos, values[...
luau-buffer-gen-00022
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 5 contiguous f32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 20 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 5 do local pos = offset + (i - 1) * 4 buffer.writef32(b, pos, values[...
luau-buffer-gen-00023
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 6 contiguous f64 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 48 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 6 do local pos = offset + (i - 1) * 8 buffer.writef64(b, pos, values[...
luau-buffer-gen-00024
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 1 contiguous u8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 1 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 1 do local pos = offset + (i - 1) * 1 buffer.writeu8(b, pos, values[i]...
luau-buffer-gen-00025
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 2 contiguous u16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 4 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 2 do local pos = offset + (i - 1) * 2 buffer.writeu16(b, pos, values[i...
luau-buffer-gen-00026
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 3 contiguous u32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 12 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 3 do local pos = offset + (i - 1) * 4 buffer.writeu32(b, pos, values[...
luau-buffer-gen-00027
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 4 contiguous i8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 4 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 4 do local pos = offset + (i - 1) * 1 buffer.writei8(b, pos, values[i]...
luau-buffer-gen-00028
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 5 contiguous i16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 10 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 5 do local pos = offset + (i - 1) * 2 buffer.writei16(b, pos, values[...
luau-buffer-gen-00029
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 6 contiguous i32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 24 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 6 do local pos = offset + (i - 1) * 4 buffer.writei32(b, pos, values[...
luau-buffer-gen-00030
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 1 contiguous f32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 4 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 1 do local pos = offset + (i - 1) * 4 buffer.writef32(b, pos, values[i...
luau-buffer-gen-00031
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 2 contiguous f64 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 16 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 2 do local pos = offset + (i - 1) * 8 buffer.writef64(b, pos, values[...
luau-buffer-gen-00032
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 3 contiguous u8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 3 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 3 do local pos = offset + (i - 1) * 1 buffer.writeu8(b, pos, values[i]...
luau-buffer-gen-00033
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 4 contiguous u16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 8 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 4 do local pos = offset + (i - 1) * 2 buffer.writeu16(b, pos, values[i...
luau-buffer-gen-00034
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 5 contiguous u32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 20 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 5 do local pos = offset + (i - 1) * 4 buffer.writeu32(b, pos, values[...
luau-buffer-gen-00035
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 6 contiguous i8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 6 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 6 do local pos = offset + (i - 1) * 1 buffer.writei8(b, pos, values[i]...
luau-buffer-gen-00036
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 1 contiguous i16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 2 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 1 do local pos = offset + (i - 1) * 2 buffer.writei16(b, pos, values[i...
luau-buffer-gen-00037
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 2 contiguous i32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 8 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 2 do local pos = offset + (i - 1) * 4 buffer.writei32(b, pos, values[i...
luau-buffer-gen-00038
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 3 contiguous f32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 12 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 3 do local pos = offset + (i - 1) * 4 buffer.writef32(b, pos, values[...
luau-buffer-gen-00039
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 4 contiguous f64 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 32 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 4 do local pos = offset + (i - 1) * 8 buffer.writef64(b, pos, values[...
luau-buffer-gen-00040
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 5 contiguous u8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 5 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 5 do local pos = offset + (i - 1) * 1 buffer.writeu8(b, pos, values[i]...
luau-buffer-gen-00041
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 6 contiguous u16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 12 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 6 do local pos = offset + (i - 1) * 2 buffer.writeu16(b, pos, values[...
luau-buffer-gen-00042
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 1 contiguous u32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 4 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 1 do local pos = offset + (i - 1) * 4 buffer.writeu32(b, pos, values[i...
luau-buffer-gen-00043
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 2 contiguous i8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 2 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 2 do local pos = offset + (i - 1) * 1 buffer.writei8(b, pos, values[i]...
luau-buffer-gen-00044
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 3 contiguous i16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 6 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 3 do local pos = offset + (i - 1) * 2 buffer.writei16(b, pos, values[i...
luau-buffer-gen-00045
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 4 contiguous i32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 16 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 4 do local pos = offset + (i - 1) * 4 buffer.writei32(b, pos, values[...
luau-buffer-gen-00046
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 5 contiguous f32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 20 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 5 do local pos = offset + (i - 1) * 4 buffer.writef32(b, pos, values[...
luau-buffer-gen-00047
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 6 contiguous f64 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 48 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 6 do local pos = offset + (i - 1) * 8 buffer.writef64(b, pos, values[...
luau-buffer-gen-00048
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 1 contiguous u8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 1 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 1 do local pos = offset + (i - 1) * 1 buffer.writeu8(b, pos, values[i]...
luau-buffer-gen-00049
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 2 contiguous u16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 4 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 2 do local pos = offset + (i - 1) * 2 buffer.writeu16(b, pos, values[i...
luau-buffer-gen-00050
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 3 contiguous u32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 12 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 3 do local pos = offset + (i - 1) * 4 buffer.writeu32(b, pos, values[...
luau-buffer-gen-00051
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 4 contiguous i8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 4 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 4 do local pos = offset + (i - 1) * 1 buffer.writei8(b, pos, values[i]...
luau-buffer-gen-00052
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 5 contiguous i16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 10 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 5 do local pos = offset + (i - 1) * 2 buffer.writei16(b, pos, values[...
luau-buffer-gen-00053
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 6 contiguous i32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 24 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 6 do local pos = offset + (i - 1) * 4 buffer.writei32(b, pos, values[...
luau-buffer-gen-00054
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 1 contiguous f32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 4 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 1 do local pos = offset + (i - 1) * 4 buffer.writef32(b, pos, values[i...
luau-buffer-gen-00055
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 2 contiguous f64 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 16 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 2 do local pos = offset + (i - 1) * 8 buffer.writef64(b, pos, values[...
luau-buffer-gen-00056
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 3 contiguous u8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 3 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 3 do local pos = offset + (i - 1) * 1 buffer.writeu8(b, pos, values[i]...
luau-buffer-gen-00057
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 4 contiguous u16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 8 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 4 do local pos = offset + (i - 1) * 2 buffer.writeu16(b, pos, values[i...
luau-buffer-gen-00058
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 5 contiguous u32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 20 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 5 do local pos = offset + (i - 1) * 4 buffer.writeu32(b, pos, values[...
luau-buffer-gen-00059
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 6 contiguous i8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 6 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 6 do local pos = offset + (i - 1) * 1 buffer.writei8(b, pos, values[i]...
luau-buffer-gen-00060
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 1 contiguous i16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 2 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 1 do local pos = offset + (i - 1) * 2 buffer.writei16(b, pos, values[i...
luau-buffer-gen-00061
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 2 contiguous i32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 8 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 2 do local pos = offset + (i - 1) * 4 buffer.writei32(b, pos, values[i...
luau-buffer-gen-00062
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 3 contiguous f32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 12 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 3 do local pos = offset + (i - 1) * 4 buffer.writef32(b, pos, values[...
luau-buffer-gen-00063
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 4 contiguous f64 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 32 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 4 do local pos = offset + (i - 1) * 8 buffer.writef64(b, pos, values[...
luau-buffer-gen-00064
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 5 contiguous u8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 5 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 5 do local pos = offset + (i - 1) * 1 buffer.writeu8(b, pos, values[i]...
luau-buffer-gen-00065
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 6 contiguous u16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 12 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 6 do local pos = offset + (i - 1) * 2 buffer.writeu16(b, pos, values[...
luau-buffer-gen-00066
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 1 contiguous u32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 4 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 1 do local pos = offset + (i - 1) * 4 buffer.writeu32(b, pos, values[i...
luau-buffer-gen-00067
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 2 contiguous i8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 2 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 2 do local pos = offset + (i - 1) * 1 buffer.writei8(b, pos, values[i]...
luau-buffer-gen-00068
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 3 contiguous i16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 6 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 3 do local pos = offset + (i - 1) * 2 buffer.writei16(b, pos, values[i...
luau-buffer-gen-00069
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 4 contiguous i32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 16 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 4 do local pos = offset + (i - 1) * 4 buffer.writei32(b, pos, values[...
luau-buffer-gen-00070
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 5 contiguous f32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 20 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 5 do local pos = offset + (i - 1) * 4 buffer.writef32(b, pos, values[...
luau-buffer-gen-00071
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 6 contiguous f64 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 48 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 6 do local pos = offset + (i - 1) * 8 buffer.writef64(b, pos, values[...
luau-buffer-gen-00072
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 1 contiguous u8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 1 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 1 do local pos = offset + (i - 1) * 1 buffer.writeu8(b, pos, values[i]...
luau-buffer-gen-00073
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 2 contiguous u16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 4 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 2 do local pos = offset + (i - 1) * 2 buffer.writeu16(b, pos, values[i...
luau-buffer-gen-00074
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 3 contiguous u32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 12 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 3 do local pos = offset + (i - 1) * 4 buffer.writeu32(b, pos, values[...
luau-buffer-gen-00075
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 4 contiguous i8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 4 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 4 do local pos = offset + (i - 1) * 1 buffer.writei8(b, pos, values[i]...
luau-buffer-gen-00076
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 5 contiguous i16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 10 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 5 do local pos = offset + (i - 1) * 2 buffer.writei16(b, pos, values[...
luau-buffer-gen-00077
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 6 contiguous i32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 24 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 6 do local pos = offset + (i - 1) * 4 buffer.writei32(b, pos, values[...
luau-buffer-gen-00078
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 1 contiguous f32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 4 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 1 do local pos = offset + (i - 1) * 4 buffer.writef32(b, pos, values[i...
luau-buffer-gen-00079
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 2 contiguous f64 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 16 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 2 do local pos = offset + (i - 1) * 8 buffer.writef64(b, pos, values[...
luau-buffer-gen-00080
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 3 contiguous u8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 3 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 3 do local pos = offset + (i - 1) * 1 buffer.writeu8(b, pos, values[i]...
luau-buffer-gen-00081
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 4 contiguous u16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 8 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 4 do local pos = offset + (i - 1) * 2 buffer.writeu16(b, pos, values[i...
luau-buffer-gen-00082
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 5 contiguous u32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 20 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 5 do local pos = offset + (i - 1) * 4 buffer.writeu32(b, pos, values[...
luau-buffer-gen-00083
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 6 contiguous i8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 6 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 6 do local pos = offset + (i - 1) * 1 buffer.writei8(b, pos, values[i]...
luau-buffer-gen-00084
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 1 contiguous i16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 2 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 1 do local pos = offset + (i - 1) * 2 buffer.writei16(b, pos, values[i...
luau-buffer-gen-00085
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 2 contiguous i32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 8 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 2 do local pos = offset + (i - 1) * 4 buffer.writei32(b, pos, values[i...
luau-buffer-gen-00086
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 3 contiguous f32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 12 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 3 do local pos = offset + (i - 1) * 4 buffer.writef32(b, pos, values[...
luau-buffer-gen-00087
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 4 contiguous f64 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 32 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 4 do local pos = offset + (i - 1) * 8 buffer.writef64(b, pos, values[...
luau-buffer-gen-00088
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 5 contiguous u8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 5 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 5 do local pos = offset + (i - 1) * 1 buffer.writeu8(b, pos, values[i]...
luau-buffer-gen-00089
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 6 contiguous u16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 12 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 6 do local pos = offset + (i - 1) * 2 buffer.writeu16(b, pos, values[...
luau-buffer-gen-00090
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 1 contiguous u32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 4 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 1 do local pos = offset + (i - 1) * 4 buffer.writeu32(b, pos, values[i...
luau-buffer-gen-00091
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 2 contiguous i8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 2 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 2 do local pos = offset + (i - 1) * 1 buffer.writei8(b, pos, values[i]...
luau-buffer-gen-00092
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 3 contiguous i16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 6 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 3 do local pos = offset + (i - 1) * 2 buffer.writei16(b, pos, values[i...
luau-buffer-gen-00093
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 4 contiguous i32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 16 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 4 do local pos = offset + (i - 1) * 4 buffer.writei32(b, pos, values[...
luau-buffer-gen-00094
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 5 contiguous f32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 20 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 5 do local pos = offset + (i - 1) * 4 buffer.writef32(b, pos, values[...
luau-buffer-gen-00095
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 6 contiguous f64 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 48 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 6 do local pos = offset + (i - 1) * 8 buffer.writef64(b, pos, values[...
luau-buffer-gen-00096
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 1 contiguous u8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 1 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 1 do local pos = offset + (i - 1) * 1 buffer.writeu8(b, pos, values[i]...
luau-buffer-gen-00097
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 2 contiguous u16 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 4 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 2 do local pos = offset + (i - 1) * 2 buffer.writeu16(b, pos, values[i...
luau-buffer-gen-00098
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 3 contiguous u32 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 12 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 3 do local pos = offset + (i - 1) * 4 buffer.writeu32(b, pos, values[...
luau-buffer-gen-00099
luau-lang/luau
binary
Implement a Luau strict serialization module for packing and unpacking 4 contiguous i8 elements into a buffer.
--!strict local PacketCodec = {} local STRIDE = 4 function PacketCodec.writePacket(b: buffer, offset: number, values: { number }): () assert(buffer.len(b) >= offset + STRIDE, "Buffer overflow: insufficient space") for i = 1, 4 do local pos = offset + (i - 1) * 1 buffer.writei8(b, pos, values[i]...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
40