Hi Is there a way I can handle {packet, PacketType} for little-endian where Packet = <<Length:32/little-signed,Message/binary>> Length=4+byte_size(Message) I currently handle it manually but it'll be nice if gen_tcp could handle it for me the way {packet, PacketType} works for big-endian byte order. Thanks