Changed genNone to return ByteBuffer instead of byte[]